PolicyAssignmentsOperationsExtensions.DeleteById Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deletes a policy assignment.
public static Microsoft.Azure.Management.ResourceManager.Models.PolicyAssignment DeleteById (this Microsoft.Azure.Management.ResourceManager.IPolicyAssignmentsOperations operations, string policyAssignmentId);
static member DeleteById : Microsoft.Azure.Management.ResourceManager.IPolicyAssignmentsOperations * string -> Microsoft.Azure.Management.ResourceManager.Models.PolicyAssignment
<Extension()>
Public Function DeleteById (operations As IPolicyAssignmentsOperations, policyAssignmentId As String) As PolicyAssignment
Parameters
- operations
- IPolicyAssignmentsOperations
The operations group for this extension method.
- policyAssignmentId
- String
The ID of the policy assignment to delete. Use the format '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.
Returns
Remarks
This operation deletes the policy with the given ID. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid formats for {scope} are: '/providers/Microsoft.Management/managementGroups/{managementGroup}' (management group), '/subscriptions/{subscriptionId}' (subscription), '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' (resource group), or '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' (resource).
Applies to
Azure SDK for .NET