Partilhar via


Remove-AdminPowerAppRoleAssignment

Deletes the specified role of an app.

Syntax

Default (Default)

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 "00000000-0000-0000-0000-000000000000" -EnvironmentName 00000000-0000-0000-0000-000000000000 -AppName 00001111-aaaa-2222-bbbb-3333cccc4444

Removes the role with the ID 00000000-0000-0000-0000-000000000000 from environment with the ID 00000000-0000-0000-0000-000000000000 related to app ID 00001111-aaaa-2222-bbbb-3333cccc4444.

Parameters

-ApiVersion

The api version to call with.

Parameter properties

Type:String
Default value:2016-11-01
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AppName

Specifies the app ID.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-EnvironmentName

The environment ID where the role is located.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-RoleId

Specifies the role assignment ID. Remove-AdminPowerAppRoleAssignment -RoleId "00000000-0000-0000-0000-000000000000" -EnvironmentName "Default-22223333-cccc-4444-dddd-5555eeee6666" -AppName "11112222-bbbb-3333-cccc-4444dddd5555" Deletes the role named 00000000-0000-0000-0000-000000000000 for app id 11112222-bbbb-3333-cccc-4444dddd5555 in Environment Default-22223333-cccc-4444-dddd-5555eeee6666

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.