Is there a way to setup power platform environment with the database's security group from CLI? I didn't see any command on pac cli nor in powershell side.
Thanks,
Sanjeev
Yes you can 😁
https://docs.microsoft.com/en-us/powershell/module/microsoft.powerapps.administration.powershell/new...
The Powerapps administration powershell module has the following command:
New-AdminPowerAppEnvironment
Which takes as inputs:
[-DisplayName <String>]
-LocationName <String>
-EnvironmentSku <String>
[-ProvisionDatabase]
[-CurrencyName <String>]
[-LanguageName <String>]
[-Templates <String[]>]
[-SecurityGroupId <String>]
[-DomainName <String>]
[-WaitUntilFinished <Boolean>]
[-ApiVersion <String>]
[<CommonParameters>]
so you can actually pas the Azure security group ID!
Thank you. It seems like you can only do that while creating new instance. Do you know if that can be done while resetting the instance too?
Not sure if you can actually reset and assign a security group in one call, but you have options in that module to add security groups. It is also possible to do via REST api, so there are some options, might require combining some actions.
can you provide me rest api info?
I don't have the documentation at hand right now, but you could reverse engineer the Power Automate action 😉
User | Count |
---|---|
11 | |
4 | |
3 | |
1 | |
1 |
User | Count |
---|---|
14 | |
8 | |
7 | |
3 | |
2 |