|
| 1 | +--- |
| 2 | +external help file: Microsoft.Graph.Applications-help.xml |
| 3 | +Module Name: Microsoft.Graph.Applications |
| 4 | +online version: https://learn.microsoft.com/powershell/module/microsoft.graph.applications/Remove-MgApplicationAppManagementPolicyByRef |
| 5 | +schema: 2.0.0 |
| 6 | +ms.subservice: entra-sign-in |
| 7 | +--- |
| 8 | + |
| 9 | +# Remove-MgApplicationAppManagementPolicyByRef |
| 10 | + |
| 11 | +## SYNOPSIS |
| 12 | +Remove an appManagementPolicy policy object from an application or service principal object. |
| 13 | +When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. |
| 14 | + |
| 15 | +> [!NOTE] |
| 16 | +> To view the beta release of this cmdlet, view [Remove-MgBetaApplicationAppManagementPolicyAppManagementPolicyByRef](/powershell/module/Microsoft.Graph.Beta.Applications/Remove-MgBetaApplicationAppManagementPolicyAppManagementPolicyByRef?view=graph-powershell-beta) |
| 17 | +
|
| 18 | +## SYNTAX |
| 19 | + |
| 20 | +### Delete (Default) |
| 21 | +``` |
| 22 | +Remove-MgApplicationAppManagementPolicyByRef -AppManagementPolicyId <String> |
| 23 | + -ApplicationId <String> [-IfMatch <String>] [-ResponseHeadersVariable <String>] [-Headers <IDictionary>] |
| 24 | + [-PassThru] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>] |
| 25 | +``` |
| 26 | + |
| 27 | +### DeleteViaIdentity |
| 28 | +``` |
| 29 | +Remove-MgApplicationAppManagementPolicyByRef -InputObject <IApplicationsIdentity> |
| 30 | + [-IfMatch <String>] [-ResponseHeadersVariable <String>] [-Headers <IDictionary>] [-PassThru] |
| 31 | + [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>] |
| 32 | +``` |
| 33 | + |
| 34 | +## DESCRIPTION |
| 35 | +Remove an appManagementPolicy policy object from an application or service principal object. |
| 36 | +When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. |
| 37 | + |
| 38 | +**Permissions** |
| 39 | +[!INCLUDE [permissions-table](~/../graphref/api-reference/v1.0/includes/permissions/appmanagementpolicy-delete-appliesto-permissions.md)] |
| 40 | + |
| 41 | +## EXAMPLES |
| 42 | +### Example 1: Code snippet |
| 43 | + |
| 44 | +```powershell |
| 45 | +
|
| 46 | +Import-Module Microsoft.Graph.Applications |
| 47 | +
|
| 48 | +Remove-MgApplicationAppManagementPolicyByRef -ApplicationId $applicationId -AppManagementPolicyId $appManagementPolicyId |
| 49 | +
|
| 50 | +``` |
| 51 | +This example shows how to use the Remove-MgApplicationAppManagementPolicyByRef Cmdlet. |
| 52 | + |
| 53 | + |
| 54 | +## PARAMETERS |
| 55 | + |
| 56 | +### -ApplicationId |
| 57 | +The unique identifier of application |
| 58 | + |
| 59 | +```yaml |
| 60 | +Type: String |
| 61 | +Parameter Sets: Delete |
| 62 | +Aliases: |
| 63 | + |
| 64 | +Required: True |
| 65 | +Position: Named |
| 66 | +Default value: None |
| 67 | +Accept pipeline input: False |
| 68 | +Accept wildcard characters: False |
| 69 | +``` |
| 70 | +
|
| 71 | +### -AppManagementPolicyId |
| 72 | +The unique identifier of appManagementPolicy |
| 73 | +
|
| 74 | +```yaml |
| 75 | +Type: String |
| 76 | +Parameter Sets: Delete |
| 77 | +Aliases: |
| 78 | + |
| 79 | +Required: True |
| 80 | +Position: Named |
| 81 | +Default value: None |
| 82 | +Accept pipeline input: False |
| 83 | +Accept wildcard characters: False |
| 84 | +``` |
| 85 | +
|
| 86 | +### -Headers |
| 87 | +Optional headers that will be added to the request. |
| 88 | +
|
| 89 | +```yaml |
| 90 | +Type: IDictionary |
| 91 | +Parameter Sets: (All) |
| 92 | +Aliases: |
| 93 | + |
| 94 | +Required: False |
| 95 | +Position: Named |
| 96 | +Default value: None |
| 97 | +Accept pipeline input: True (ByValue) |
| 98 | +Accept wildcard characters: False |
| 99 | +``` |
| 100 | +
|
| 101 | +### -IfMatch |
| 102 | +ETag |
| 103 | +
|
| 104 | +```yaml |
| 105 | +Type: String |
| 106 | +Parameter Sets: (All) |
| 107 | +Aliases: |
| 108 | + |
| 109 | +Required: False |
| 110 | +Position: Named |
| 111 | +Default value: None |
| 112 | +Accept pipeline input: False |
| 113 | +Accept wildcard characters: False |
| 114 | +``` |
| 115 | +
|
| 116 | +### -InputObject |
| 117 | +Identity Parameter |
| 118 | +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. |
| 119 | +
|
| 120 | +```yaml |
| 121 | +Type: IApplicationsIdentity |
| 122 | +Parameter Sets: DeleteViaIdentity |
| 123 | +Aliases: |
| 124 | + |
| 125 | +Required: True |
| 126 | +Position: Named |
| 127 | +Default value: None |
| 128 | +Accept pipeline input: True (ByValue) |
| 129 | +Accept wildcard characters: False |
| 130 | +``` |
| 131 | +
|
| 132 | +### -PassThru |
| 133 | +Returns true when the command succeeds |
| 134 | +
|
| 135 | +```yaml |
| 136 | +Type: SwitchParameter |
| 137 | +Parameter Sets: (All) |
| 138 | +Aliases: |
| 139 | + |
| 140 | +Required: False |
| 141 | +Position: Named |
| 142 | +Default value: False |
| 143 | +Accept pipeline input: False |
| 144 | +Accept wildcard characters: False |
| 145 | +``` |
| 146 | +
|
| 147 | +### -ProgressAction |
| 148 | +{{ Fill ProgressAction Description }} |
| 149 | +
|
| 150 | +```yaml |
| 151 | +Type: ActionPreference |
| 152 | +Parameter Sets: (All) |
| 153 | +Aliases: proga |
| 154 | + |
| 155 | +Required: False |
| 156 | +Position: Named |
| 157 | +Default value: None |
| 158 | +Accept pipeline input: False |
| 159 | +Accept wildcard characters: False |
| 160 | +``` |
| 161 | +
|
| 162 | +### -ResponseHeadersVariable |
| 163 | +Optional Response Headers Variable. |
| 164 | +
|
| 165 | +```yaml |
| 166 | +Type: String |
| 167 | +Parameter Sets: (All) |
| 168 | +Aliases: RHV |
| 169 | + |
| 170 | +Required: False |
| 171 | +Position: Named |
| 172 | +Default value: None |
| 173 | +Accept pipeline input: False |
| 174 | +Accept wildcard characters: False |
| 175 | +``` |
| 176 | +
|
| 177 | +### -Confirm |
| 178 | +Prompts you for confirmation before running the cmdlet. |
| 179 | +
|
| 180 | +```yaml |
| 181 | +Type: SwitchParameter |
| 182 | +Parameter Sets: (All) |
| 183 | +Aliases: cf |
| 184 | + |
| 185 | +Required: False |
| 186 | +Position: Named |
| 187 | +Default value: None |
| 188 | +Accept pipeline input: False |
| 189 | +Accept wildcard characters: False |
| 190 | +``` |
| 191 | +
|
| 192 | +### -WhatIf |
| 193 | +Shows what would happen if the cmdlet runs. |
| 194 | +The cmdlet is not run. |
| 195 | +
|
| 196 | +```yaml |
| 197 | +Type: SwitchParameter |
| 198 | +Parameter Sets: (All) |
| 199 | +Aliases: wi |
| 200 | + |
| 201 | +Required: False |
| 202 | +Position: Named |
| 203 | +Default value: None |
| 204 | +Accept pipeline input: False |
| 205 | +Accept wildcard characters: False |
| 206 | +``` |
| 207 | +
|
| 208 | +### CommonParameters |
| 209 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). |
| 210 | +
|
| 211 | +## INPUTS |
| 212 | +
|
| 213 | +### Microsoft.Graph.PowerShell.Models.IApplicationsIdentity |
| 214 | +### System.Collections.IDictionary |
| 215 | +## OUTPUTS |
| 216 | +
|
| 217 | +### System.Boolean |
| 218 | +## NOTES |
| 219 | +COMPLEX PARAMETER PROPERTIES |
| 220 | +
|
| 221 | +To create the parameters described below, construct a hash table containing the appropriate properties. |
| 222 | +For information on hash tables, run Get-Help about_Hash_Tables. |
| 223 | +
|
| 224 | +INPUTOBJECT `<IApplicationsIdentity>`: Identity Parameter |
| 225 | + - `[AppId <String>]`: Alternate key of application |
| 226 | + - `[AppManagementPolicyId <String>]`: The unique identifier of appManagementPolicy |
| 227 | + - `[AppRoleAssignmentId <String>]`: The unique identifier of appRoleAssignment |
| 228 | + - `[ApplicationId <String>]`: The unique identifier of application |
| 229 | + - `[ApplicationTemplateId <String>]`: The unique identifier of applicationTemplate |
| 230 | + - `[ClaimsMappingPolicyId <String>]`: The unique identifier of claimsMappingPolicy |
| 231 | + - `[DelegatedPermissionClassificationId <String>]`: The unique identifier of delegatedPermissionClassification |
| 232 | + - `[DirectoryDefinitionId <String>]`: The unique identifier of directoryDefinition |
| 233 | + - `[DirectoryObjectId <String>]`: The unique identifier of directoryObject |
| 234 | + - `[EndpointId <String>]`: The unique identifier of endpoint |
| 235 | + - `[ExtensionPropertyId <String>]`: The unique identifier of extensionProperty |
| 236 | + - `[FederatedIdentityCredentialId <String>]`: The unique identifier of federatedIdentityCredential |
| 237 | + - `[GroupId <String>]`: The unique identifier of group |
| 238 | + - `[HomeRealmDiscoveryPolicyId <String>]`: The unique identifier of homeRealmDiscoveryPolicy |
| 239 | + - `[Name <String>]`: Alternate key of federatedIdentityCredential |
| 240 | + - `[OAuth2PermissionGrantId <String>]`: The unique identifier of oAuth2PermissionGrant |
| 241 | + - `[ServicePrincipalId <String>]`: The unique identifier of servicePrincipal |
| 242 | + - `[SynchronizationJobId <String>]`: The unique identifier of synchronizationJob |
| 243 | + - `[SynchronizationTemplateId <String>]`: The unique identifier of synchronizationTemplate |
| 244 | + - `[TargetDeviceGroupId <String>]`: The unique identifier of targetDeviceGroup |
| 245 | + - `[TokenIssuancePolicyId <String>]`: The unique identifier of tokenIssuancePolicy |
| 246 | + - `[TokenLifetimePolicyId <String>]`: The unique identifier of tokenLifetimePolicy |
| 247 | + - `[UniqueName <String>]`: Alternate key of application |
| 248 | + - `[UserId <String>]`: The unique identifier of user |
| 249 | + |
| 250 | +## RELATED LINKS |
| 251 | + |
| 252 | +[https://learn.microsoft.com/powershell/module/microsoft.graph.applications/Remove-MgApplicationAppManagementPolicyByRef](https://learn.microsoft.com/powershell/module/microsoft.graph.applications/Remove-MgApplicationAppManagementPolicyByRef) |
| 253 | + |
| 254 | +[https://learn.microsoft.com/graph/api/appmanagementpolicy-delete-appliesto?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/appmanagementpolicy-delete-appliesto?view=graph-rest-1.0) |
| 255 | + |
| 256 | + |
| 257 | + |
| 258 | + |
0 commit comments