v3

latestSwagger 2.0raw.githubusercontent.com2018-12-1013621.6 KB
PolicyAssignments

Creates a policy assignment.

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.

put/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}

Path parameters

scopestring required

The scope of the policy assignment.

policyAssignmentNamestring required

The name of the policy assignment.

Query parameters

api-versionstring required

The API version to use for the operation.

Request body

idstring

The ID of the policy assignment.

typestring

The type of the policy assignment.

namestring

The name of the policy assignment.

Response

Created - Returns information about the new policy assignment.

idstring

The ID of the policy assignment.

typestring

The type of the policy assignment.

namestring

The name of the policy assignment.