Skip to content

Instantly share code, notes, and snippets.

Created October 31, 2019 05:38
What would you like to do?
cURL command to assign a Blueprint to Azure Management Group
# Below is the cURL command to create or update a Blueprint in Azure
# According to documentation,
# the particulat REST endpoint can accept either a subscription or a management group as the scope.
# The below was written to accept a management group
curl '' -X PUT -H 'Authorization: Bearer [TOKEN]' -H 'DNT: 1' -H 'Content-Type: application/json' --data-binary $'{\n\u0009identity: {"type" : "SystemAssigned"},\n\u0009location: "southeastasia",\n\u0009properties:{"blueprintId":"providers/Microsoft.Management/managementGroups/Kloudynet/providers/Microsoft.Blueprint/blueprints/BP1", "parameters":{}, "resourceGroups":{}}\n}' --compressed
# But this throws a 404 HTTP response
# Error message - The requested resource was not found, is not supported at the requested scope, or an unsupported HTTP verb was used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment