Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Developer Plan Scripting

(0) ShareShare
ReportReport
Posted on by 39

Is it possible to create and manage Developer Environments using PowerShell or C#. Ideally, I would like to update and create these environments using automation rather then leave up to each developer. Also, would need to be able to clone, pull and push code and solutions to these environments.

Categories:
  • Verified answer
    klanguedoc Profile Picture
    klanguedoc 39 on at
    Re: Developer Plan Scripting

    Hello,

     

    pac admin create `
    --name "display name" `
    --type Developer `
    --domain some_domain`
    --region canada

     

    This will create a developer environment

     

    You can then assign it to another user using the following. The down side is you can only create 3 developer environments, even if you assign the environment to another user. As a DevOps Engineer and admin, I need to have the possibility of creating multiple (n) of developer environments for specific users

     

    pac admin assign-user `
    --environment 00000000-00000-00000-0000-00000000000`
    --user "developer@some_domain.aaa" `
    --role "supported role"

     

    I anyone knows who has a workaround using either pac cli, or powershell or C#, please let me know

  • klanguedoc Profile Picture
    klanguedoc 39 on at
    Re: Developer Plan Scripting

    After further investigation of the API, PowerShell and PP CLI, I realize that these existing APIs or tools dont support Developer env.. However, if the Developer Plan environments are being created through a web page, it is logical that a script exists to do it. Does anybody have an example using either a scripting tool language or C#, or other to create Developer Plan environment programmatically?

  • Verified answer
    SebS Profile Picture
    SebS 4,141 on at
    Re: Developer Plan Scripting

    Hello @klanguedoc 

     

    Look in to this:

     

    https://learn.microsoft.com/en-us/power-platform/admin/powerapps-powershell

     

    hope it helps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard