Azure Resource Manager: Policy Assignments
To manage and control access to your resources, you can define customized policies and assign them at a scope.
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
To manage and control access to your resources, you can define customized policies and assign them at a scope.
Endpoints 12
PolicyAssignments
- GETRetrieves a policy assignment.
/:scope/providers/Microsoft.Authorization/policyAssignments/:policyAssignmentName?$expand=stringThis operation retrieves a single policy assignment, given its name and the scope it was created at. - PUTCreates or updates a policy assignment.
/:scope/providers/Microsoft.Authorization/policyAssignments/:policyAssignmentNameThis operation creates or updates a policy assignment with the given scope and name. Policy assignments apply to all resources contained within their scope.… - DELETEDeletes a policy assignment.
/:scope/providers/Microsoft.Authorization/policyAssignments/:policyAssignmentNameThis operation deletes a policy assignment, given its name and the scope it was created in. The scope of a policy assignment is the part of its ID preceding… - PATCHUpdates a policy assignment.
/:scope/providers/Microsoft.Authorization/policyAssignments/:policyAssignmentNameThis operation updates a policy assignment with the given scope and name. Policy assignments apply to all resources contained within their scope. For example,… - GETRetrieves all policy assignments that apply to a resource group.
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Authorization/policyAssignments?$filter=string&$expand=string&$top=1This operation retrieves the list of all policy assignments associated with the given resource group in the given subscription that match the optional given… - GETRetrieves all policy assignments that apply to a resource.
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/:resourceProviderNamespace/:parentResourcePath/:resourceType/:resourceName/providers/Microsoft.Authorization/policyAssignments?$filter=string&$expand=string&$top=1This operation retrieves the list of all policy assignments associated with the specified resource in the given resource group and subscription that match the… - GETRetrieves all policy assignments that apply to a management group.
/providers/Microsoft.Management/managementGroups/:managementGroupId/providers/Microsoft.Authorization/policyAssignments?$filter=string&$expand=string&$top=1This operation retrieves the list of all policy assignments applicable to the management group that match the given $filter. Valid values for $filter are:… - GETRetrieves all policy assignments that apply to a subscription.
/subscriptions/:subscriptionId/providers/Microsoft.Authorization/policyAssignments?$filter=string&$expand=string&$top=1This operation retrieves the list of all policy assignments associated with the given subscription that match the optional given $filter. Valid values for… - GETRetrieves the policy assignment with the given ID.
/:policyAssignmentIdThe operation retrieves the policy assignment with the given ID. Policy assignment IDs have this format:… - PUTCreates or updates a policy assignment.
/:policyAssignmentIdThis operation creates or updates the policy assignment with the given ID. Policy assignments made on a scope apply to all resources contained in that scope.… - DELETEDeletes a policy assignment.
/:policyAssignmentIdThis operation deletes the policy with the given ID. Policy assignment IDs have this format:… - PATCHUpdates a policy assignment.
/:policyAssignmentIdThis operation updates the policy assignment with the given ID. Policy assignments made on a scope apply to all resources contained in that scope. For…
API details
- Base URL
https://management.azure.com- Authentication
- OAuth 2.0 (implicit flow) with 1 scope
- Operations
- 12 operations on 6 pathsGET 6PUT 2PATCH 2DELETE 2
- Main resources
- PolicyAssignments 12
- Response formats
application/json- Description format
- Swagger 2.0, API version
2025-01-01 - Links
- OpenAPI document
How to test the Azure Resource Manager: Policy Assignments in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Azure Resource Manager: Policy Assignments collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (implicit flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Retrieves a policy assignment.” (GET /:scope/providers/Microsoft.Authorization/policyAssignments/:policyAssignmentName?$expand=string), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Azure Resource Manager: Policy Assignments?
To manage and control access to your resources, you can define customized policies and assign them at a scope. It is listed under Developer tools and has 12 endpoints.
Who publishes the Azure Resource Manager: Policy Assignments?
It is listed from Microsoft Azure's public API description (an OpenAPI document), not published by Microsoft Azure on Swastik Codes. Anyone who controls azure.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Azure Resource Manager: Policy Assignments?
Requests go to https://management.azure.com. Endpoint paths are added to this base URL.
How do I authenticate with the Azure Resource Manager: Policy Assignments?
With OAuth 2.0 (implicit flow) with 1 scope.
How many endpoints does the Azure Resource Manager: Policy Assignments have?
12 operations on 6 paths (6 GET, 2 PUT, 2 PATCH, 2 DELETE). The largest groups are PolicyAssignments.
Is forking the Azure Resource Manager: Policy Assignments free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.