
Announcements
Hello,
I have a request to create a PowerShell script to do the following:
1- Create a new environment with and without Database.
2- Grant access to the Environment that has Database via security group.
The creation part is done, my question is if there any PowerShell command available to associate the security group with the environment access?.
Or if there is any other PowerShell script I can use to grant access to Environment that has Database?.
Thanks.
Try the following PowerShell command
Set-AdminPowerAppEnvironmentRoleAssignment
-EnvironmentName <String>
-RoleName <String>
-PrincipalType <String>
-PrincipalObjectId <String>
[-ApiVersion <String>]
[<CommonParameters>]
more useful cmdlets here
Hope it helps.
------------
If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.