Complete the code to define a blueprint artifact type.
artifact = {
'type': '[1]'
}The 'policyAssignment' type is used to add policy artifacts in an Azure Blueprint.
Complete the code to assign a role in the blueprint definition.
role_assignment = {
'type': 'roleAssignment',
'roleDefinitionId': '[1]'
}The 'roleDefinitionId' must point to a role definition resource ID to assign permissions.
Fix the error in the blueprint assignment command to specify the correct scope.
az blueprint assignment create --name myAssignment --blueprint-name myBlueprint --subscription [1]The '--subscription' parameter requires the subscription ID, not a resource group or management group name.
Fill both blanks to define a blueprint artifact with a resource group and a template.
{
'artifacts': [
{
'name': 'storageRG',
'type': '[1]',
'resourceGroup': {
'name': '[2]'
}
}
]
}The artifact type for creating a resource group is 'resourceGroup'. The resource group name is the value for 'name' inside the resourceGroup object.
Fill all three blanks to create a blueprint assignment with a name, location, and subscription scope.
az blueprint assignment create --name [1] --location [2] --subscription [3] --blueprint-name myBlueprint
The assignment name is 'prodAssignment', the location is 'eastus', and the subscription ID is a GUID string.