Compartir a través de


Remove-AdminPowerAppRoleAssignment

Deletes the specified role of an app.

Syntax

Remove-AdminPowerAppRoleAssignment
      -RoleId <String>
      -EnvironmentName <String>
      -AppName <String>
      [-ApiVersion <String>]
      [<CommonParameters>]

Description

The Remove-AdminPowerAppRoleAssignment cmdlet deletes the specified role of an app. Use Get-Help Remove-AdminPowerAppRoleAssignment -Examples for more detail.

Examples

Example 1

Remove-AdminPowerAppRoleAssignment -RoleId "4d1f7648-ad60-4871-91cb-b77d7ef3c239" -EnvironmentName 3c2f7648-ad60-4871-91cb-b77d7ef3c239 -AppName fc947231-728a-4a74-a654-64b0f22a0d71

Removes the role with the ID 4d1f7648-ad60-4871-91cb-b77d7ef3c239 from environment with the ID 3c2f7648-ad60-4871-91cb-b77d7ef3c239 related to app ID fc947231-728a-4a74-a654-64b0f22a0d71.

Parameters

-ApiVersion

The api version to call with.

Type:String
Position:Named
Default value:2016-11-01
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-AppName

Specifies the app ID.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-EnvironmentName

The environment ID where the role is located.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-RoleId

Specifies the role assignment ID. Remove-AdminPowerAppRoleAssignment -RoleId "4d1f7648-ad60-4871-91cb-b77d7ef3c239" -EnvironmentName "Default-55abc7e5-2812-4d73-9d2f-8d9017f8c877" -AppName "73691d1f-0ff5-442c-87ce-1e3e2fba58dc" Deletes the role named 4d1f7648-ad60-4871-91cb-b77d7ef3c239 for app id 73691d1f-0ff5-442c-87ce-1e3e2fba58dc in Environment Default-55abc7e5-2812-4d73-9d2f-8d9017f8c877

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False