PolicyDefinitions

Creates or updates a policy definition in a subscription.

This operation creates or updates a policy definition in the given subscription with the given name.

put/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}

Path parameters

policyDefinitionNamestring required

The name of the policy definition to create.

subscriptionIdstring required

The ID of the target subscription.

Query parameters

api-versionstring required

The API version to use for the operation.

Request body

idstring

The ID of the policy definition.

namestring

The name of the policy definition.

typestring

The type of the resource (Microsoft.Authorization/policyDefinitions).

Response

Created - Returns information about the policy definition.

idstring

The ID of the policy definition.

namestring

The name of the policy definition.

typestring

The type of the resource (Microsoft.Authorization/policyDefinitions).

Changes

No recorded changes to this endpoint across all 1 revision of this API.