Create a PolicyAssignments.
Reference to the service client.
Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group.
The scope of the policy assignment.
The name of the policy assignment.
Parameters for the policy assignment.
Promise<Models.PolicyAssignmentsCreateResponse>
The scope of the policy assignment.
The name of the policy assignment.
Parameters for the policy assignment.
The callback
The scope of the policy assignment.
The name of the policy assignment.
Parameters for the policy assignment.
The optional parameters
The callback
Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group. When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources.
The ID of the policy assignment to create. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'.
Parameters for policy assignment.
Promise<Models.PolicyAssignmentsCreateByIdResponse>
The ID of the policy assignment to create. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'.
Parameters for policy assignment.
The callback
The ID of the policy assignment to create. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'.
Parameters for policy assignment.
The optional parameters
The callback
When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources.
The ID of the policy assignment to delete. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'.
Promise<Models.PolicyAssignmentsDeleteByIdResponse>
The ID of the policy assignment to delete. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'.
The callback
The ID of the policy assignment to delete. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'.
The optional parameters
The callback
Deletes a policy assignment.
The scope of the policy assignment.
The name of the policy assignment to delete.
Promise<Models.PolicyAssignmentsDeleteMethodResponse>
The scope of the policy assignment.
The name of the policy assignment to delete.
The callback
The scope of the policy assignment.
The name of the policy assignment to delete.
The optional parameters
The callback
Gets a policy assignment.
The scope of the policy assignment.
The name of the policy assignment to get.
Promise<Models.PolicyAssignmentsGetResponse>
The scope of the policy assignment.
The name of the policy assignment to get.
The callback
The scope of the policy assignment.
The name of the policy assignment to get.
The optional parameters
The callback
When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources.
The ID of the policy assignment to get. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'.
Promise<Models.PolicyAssignmentsGetByIdResponse>
The ID of the policy assignment to get. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'.
The callback
The ID of the policy assignment to get. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'.
The optional parameters
The callback
Gets all the policy assignments for a subscription.
Promise<Models.PolicyAssignmentsListResponse>
The callback
The optional parameters
The callback
Gets policy assignments for a resource.
The name of the resource group containing the resource. The name is case insensitive.
The namespace of the resource provider.
The parent resource path.
The resource type.
The name of the resource with policy assignments.
Promise<Models.PolicyAssignmentsListForResourceResponse>
The name of the resource group containing the resource. The name is case insensitive.
The namespace of the resource provider.
The parent resource path.
The resource type.
The name of the resource with policy assignments.
The callback
The name of the resource group containing the resource. The name is case insensitive.
The namespace of the resource provider.
The parent resource path.
The resource type.
The name of the resource with policy assignments.
The optional parameters
The callback
Gets policy assignments for the resource group.
The name of the resource group that contains policy assignments.
Promise<Models.PolicyAssignmentsListForResourceGroupResponse>
The name of the resource group that contains policy assignments.
The callback
The name of the resource group that contains policy assignments.
The optional parameters
The callback
Gets policy assignments for the resource group.
The NextLink from the previous successful call to List operation.
Promise<Models.PolicyAssignmentsListForResourceGroupNextResponse>
The NextLink from the previous successful call to List operation.
The callback
The NextLink from the previous successful call to List operation.
The optional parameters
The callback
Gets policy assignments for a resource.
The NextLink from the previous successful call to List operation.
Promise<Models.PolicyAssignmentsListForResourceNextResponse>
The NextLink from the previous successful call to List operation.
The callback
The NextLink from the previous successful call to List operation.
The optional parameters
The callback
Gets all the policy assignments for a subscription.
The NextLink from the previous successful call to List operation.
Promise<Models.PolicyAssignmentsListNextResponse>
The NextLink from the previous successful call to List operation.
The callback
The NextLink from the previous successful call to List operation.
The optional parameters
The callback
Generated using TypeDoc
Class representing a PolicyAssignments.