0
0
Azurecloud~10 mins

Blueprint for environment setup in Azure - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define a blueprint artifact type.

Azure
artifact = {
  'type': '[1]'
}
Drag options to blanks, or click blank then click option'
AroleAssignment
BpolicyAssignment
Ctemplate
DresourceGroup
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'template' instead of 'policyAssignment'.
2fill in blank
medium

Complete the code to assign a role in the blueprint definition.

Azure
role_assignment = {
  'type': 'roleAssignment',
  'roleDefinitionId': '[1]'
}
Drag options to blanks, or click blank then click option'
A/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/{roleId}
B/subscriptions/{subscriptionId}/resourceGroups/{rgName}
C/providers/Microsoft.Blueprint/blueprints/{blueprintName}
D/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}
Attempts:
3 left
💡 Hint
Common Mistakes
Using resource group or deployment paths instead of role definition ID.
3fill in blank
hard

Fix the error in the blueprint assignment command to specify the correct scope.

Azure
az blueprint assignment create --name myAssignment --blueprint-name myBlueprint --subscription [1]
Drag options to blanks, or click blank then click option'
AmyResourceGroup
BmyTenantId
CmySubscriptionId
DmyManagementGroup
Attempts:
3 left
💡 Hint
Common Mistakes
Using resource group name instead of subscription ID.
4fill in blank
hard

Fill both blanks to define a blueprint artifact with a resource group and a template.

Azure
{
  'artifacts': [
    {
      'name': 'storageRG',
      'type': '[1]',
      'resourceGroup': {
        'name': '[2]'
      }
    }
  ]
}
Drag options to blanks, or click blank then click option'
AresourceGroup
BpolicyAssignment
CstorageAccount
Dtemplate
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing artifact type with resource names.
5fill in blank
hard

Fill all three blanks to create a blueprint assignment with a name, location, and subscription scope.

Azure
az blueprint assignment create --name [1] --location [2] --subscription [3] --blueprint-name myBlueprint
Drag options to blanks, or click blank then click option'
AprodAssignment
Beastus
C12345678-1234-1234-1234-123456789abc
Dwestus
Attempts:
3 left
💡 Hint
Common Mistakes
Using region names for subscription or vice versa.