Azure Day 2 challenge is not completing

I am trying to create a virtual machine as per the prescribed instructions, which require selecting the B1s VM size. However, it is showing a request quota error, and because of this, I am unable to complete the Day 2 task. Kindly resolve this issue at the earliest.

I am faing the same issue as well. only D2s_v3 is available

1 Like

Am facing the similar issue too, where the mentioned SKU is not allowed for the region. Tried using different SKUs, still its failing. Please have a look at the error below and assist in proceeding with the task.

az vm create
–resource-group kml_rg_main-2b732461ecc84fb8
–name devops-vm
–location westus
–image Ubuntu2204
–size Standard_B1ls
–admin-username devops
–generate-ssh-keys
–os-disk-size-gb 30
–storage-sku Standard_LRS
(AuthorizationFailed) The client ‘kk_lab_user_main-b6462f7d91ff4cbb@azurefreekmlprod7.onmicrosoft.com’ with object id ‘fe650693-beae-4fe9-9087-6ac92ecd929c’ does not have authorization to perform action ‘Microsoft.Network/virtualNetworks/read’ over scope ‘/subscriptions/63828282-77d5-4979-924e-647a074ce8ae/resourceGroups/kml_rg_main-2b732461ecc84fb8/providers/Microsoft.Network’ or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client ‘kk_lab_user_main-b6462f7d91ff4cbb@azurefreekmlprod7.onmicrosoft.com’ with object id ‘fe650693-beae-4fe9-9087-6ac92ecd929c’ does not have authorization to perform action ‘Microsoft.Network/virtualNetworks/read’ over scope ‘/subscriptions/63828282-77d5-4979-924e-647a074ce8ae/resourceGroups/kml_rg_main-2b732461ecc84fb8/providers/Microsoft.Network’ or the scope is invalid. If access was recently granted, please refresh your credentials.

~ :heavy_multiplication_x: az group list
[
{
“id”: “/subscriptions/63828282-77d5-4979-924e-647a074ce8ae/resourceGroups/kml_rg_main-b6462f7d91ff4cbb”,
“location”: “westus”,
“managedBy”: null,
“name”: “kml_rg_main-b6462f7d91ff4cbb”,
“properties”: {
“provisioningState”: “Succeeded”
},
“tags”: null,
“type”: “Microsoft.Resources/resourceGroups”
}
]

~ ➜ az vm create --resource-group kml_rg_main-b6462f7d91ff4cbb --name nautilus-vm --location westus --image Ubuntu2204 --size Standard_B1ls --a
dmin-username devops --generate-ssh-keys --os-disk-size-gb 30 --storage-
sku Standard_LRS
SSH key files ‘/root/.ssh/id_rsa’ and ‘/root/.ssh/id_rsa.pub’ have been generated under ~/.ssh to allow SSH access to the VM. If using machines without permanent storage, back up your keys to a safe location.
{“error”:{“code”:“InvalidTemplateDeployment”,“message”:“The template deployment failed because of policy violation. Please see details for more information.”,“details”:[{“code”:“RequestDisallowedByPolicy”,“target”:“nautilus-vm”,“message”:“Resource ‘nautilus-vm’ was disallowed by policy. Reasons: ‘Global: This virtual machine SKU is not allowed. Please use one of the approved SKUs. Allowed SKUs [ ‘Standard_D2s_v3’, ‘Standard_B2s’, ‘Standard_B1s’, ‘Standard_DS1_v2’]’. See error details for policy resource IDs.”,“additionalInfo”:[{“type”:“PolicyViolation”,“info”:{“evaluationDetails”:{“evaluatedExpressions”:[{“result”:“True”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.Compute/virtualMachines”,“targetValue”:“Microsoft.Compute/virtualMachines”,“operator”:“Equals”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“Microsoft.Compute/virtualMachines/sku.name”,“path”:“properties.hardwareProfile.vmSize”,“expressionValue”:“Standard_B1ls”,“targetValue”:[“Standard_D2s_v3”,“Standard_B2s”,“Standard_B1s”,“Standard_DS1_v2”],“operator”:“In”}],“reason”:“Global: This virtual machine SKU is not allowed. Please use one of the approved SKUs. Allowed SKUs [ ‘Standard_D2s_v3’, ‘Standard_B2s’, ‘Standard_B1s’, ‘Standard_DS1_v2’]”},“policyDefinitionId”:“/subscriptions/63828282-77d5-4979-924e-647a074ce8ae/providers/Microsoft.Authorization/policyDefinitions/vm-kml”,“policySetDefinitionId”:“/subscriptions/63828282-77d5-4979-924e-647a074ce8ae/providers/Microsoft.Authorization/policySetDefinitions/global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policyDefinitionReferenceId”:“vm-kml_ref”,“policySetDefinitionName”:“global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policySetDefinitionDisplayName”:“global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policySetDefinitionVersion”:“1.0.0”,“policyDefinitionName”:“vm-kml”,“policyDefinitionDisplayName”:“vm-kml”,“policyDefinitionVersion”:“1.0.0”,“policyDefinitionEffect”:“deny”,“policyAssignmentId”:“/subscriptions/63828282-77d5-4979-924e-647a074ce8ae/providers/Microsoft.Authorization/policyAssignments/global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policyAssignmentName”:“global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policyAssignmentDisplayName”:“global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policyAssignmentScope”:“/subscriptions/63828282-77d5-4979-924e-647a074ce8ae”,“policyAssignmentParameters”:{},“policyExemptionIds”:[],“policyEnrollmentIds”:[]}}]}]}}

~ :heavy_multiplication_x: az vm create --resource-group kml_rg_main-b6462f7d91ff4cbb --name nautilus-vm --location westus --image Ubuntu2204 --size Standard_B1ls --admin-username devops --generate-ssh-keys --os-disk-size-gb 30 --storage-sku Standard_D2s_v3
{“error”:{“code”:“InvalidTemplateDeployment”,“message”:“The template deployment failed because of policy violation. Please see details for more information.”,“details”:[{“code”:“RequestDisallowedByPolicy”,“target”:“nautilus-vm”,“message”:“Resource ‘nautilus-vm’ was disallowed by policy. Reasons: ‘Global: This virtual machine SKU is not allowed. Please use one of the approved SKUs. Allowed SKUs [ ‘Standard_D2s_v3’, ‘Standard_B2s’, ‘Standard_B1s’, ‘Standard_DS1_v2’]’. See error details for policy resource IDs.”,“additionalInfo”:[{“type”:“PolicyViolation”,“info”:{“evaluationDetails”:{“evaluatedExpressions”:[{“result”:“True”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.Compute/virtualMachines”,“targetValue”:“Microsoft.Compute/virtualMachines”,“operator”:“Equals”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“Microsoft.Compute/virtualMachines/sku.name”,“path”:“properties.hardwareProfile.vmSize”,“expressionValue”:“Standard_B1ls”,“targetValue”:[“Standard_D2s_v3”,“Standard_B2s”,“Standard_B1s”,“Standard_DS1_v2”],“operator”:“In”}],“reason”:“Global: This virtual machine SKU is not allowed. Please use one of the approved SKUs. Allowed SKUs [ ‘Standard_D2s_v3’, ‘Standard_B2s’, ‘Standard_B1s’, ‘Standard_DS1_v2’]”},“policyDefinitionId”:“/subscriptions/63828282-77d5-4979-924e-647a074ce8ae/providers/Microsoft.Authorization/policyDefinitions/vm-kml”,“policySetDefinitionId”:“/subscriptions/63828282-77d5-4979-924e-647a074ce8ae/providers/Microsoft.Authorization/policySetDefinitions/global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policyDefinitionReferenceId”:“vm-kml_ref”,“policySetDefinitionName”:“global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policySetDefinitionDisplayName”:“global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policySetDefinitionVersion”:“1.0.0”,“policyDefinitionName”:“vm-kml”,“policyDefinitionDisplayName”:“vm-kml”,“policyDefinitionVersion”:“1.0.0”,“policyDefinitionEffect”:“deny”,“policyAssignmentId”:“/subscriptions/63828282-77d5-4979-924e-647a074ce8ae/providers/Microsoft.Authorization/policyAssignments/global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policyAssignmentName”:“global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policyAssignmentDisplayName”:“global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policyAssignmentScope”:“/subscriptions/63828282-77d5-4979-924e-647a074ce8ae”,“policyAssignmentParameters”:{},“policyExemptionIds”:[],“policyEnrollmentIds”:[]}}]}]}}

~ :heavy_multiplication_x: az vm create --resource-group kml_rg_main-b6462f7d91ff4cbb --name nautilus-vm --location westus --image Ubuntu2204 --size Standard_B1ls --admin-username devops --generate-ssh-keys --os-disk-size-gb 30 --storage-sku Standard_B1s
{“error”:{“code”:“InvalidTemplateDeployment”,“message”:“The template deployment failed because of policy violation. Please see details for more information.”,“details”:[{“code”:“RequestDisallowedByPolicy”,“target”:“nautilus-vm”,“message”:“Resource ‘nautilus-vm’ was disallowed by policy. Reasons: ‘Global: This virtual machine SKU is not allowed. Please use one of the approved SKUs. Allowed SKUs [ ‘Standard_D2s_v3’, ‘Standard_B2s’, ‘Standard_B1s’, ‘Standard_DS1_v2’]’. See error details for policy resource IDs.”,“additionalInfo”:[{“type”:“PolicyViolation”,“info”:{“evaluationDetails”:{“evaluatedExpressions”:[{“result”:“True”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.Compute/virtualMachines”,“targetValue”:“Microsoft.Compute/virtualMachines”,“operator”:“Equals”},{“result”:“False”,“expressionKind”:“Field”,“expression”:“Microsoft.Compute/virtualMachines/sku.name”,“path”:“properties.hardwareProfile.vmSize”,“expressionValue”:“Standard_B1ls”,“targetValue”:[“Standard_D2s_v3”,“Standard_B2s”,“Standard_B1s”,“Standard_DS1_v2”],“operator”:“In”}],“reason”:“Global: This virtual machine SKU is not allowed. Please use one of the approved SKUs. Allowed SKUs [ ‘Standard_D2s_v3’, ‘Standard_B2s’, ‘Standard_B1s’, ‘Standard_DS1_v2’]”},“policyDefinitionId”:“/subscriptions/63828282-77d5-4979-924e-647a074ce8ae/providers/Microsoft.Authorization/policyDefinitions/vm-kml”,“policySetDefinitionId”:“/subscriptions/63828282-77d5-4979-924e-647a074ce8ae/providers/Microsoft.Authorization/policySetDefinitions/global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policyDefinitionReferenceId”:“vm-kml_ref”,“policySetDefinitionName”:“global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policySetDefinitionDisplayName”:“global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policySetDefinitionVersion”:“1.0.0”,“policyDefinitionName”:“vm-kml”,“policyDefinitionDisplayName”:“vm-kml”,“policyDefinitionVersion”:“1.0.0”,“policyDefinitionEffect”:“deny”,“policyAssignmentId”:“/subscriptions/63828282-77d5-4979-924e-647a074ce8ae/providers/Microsoft.Authorization/policyAssignments/global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policyAssignmentName”:“global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policyAssignmentDisplayName”:“global-limits_63828282-77d5-4979-924e-647a074ce8ae-kml”,“policyAssignmentScope”:“/subscriptions/63828282-77d5-4979-924e-647a074ce8ae”,“policyAssignmentParameters”:{},“policyExemptionIds”:[],“policyEnrollmentIds”:[]}}]}]}}

I too, am facing the same issue. I have turned in a bug report for the last 2 days and still no resolution. Hopefully they will get this fixed soon. Already 2 days behind now.

I am also experiencing similar issue

same issue for me unable move further

i am also facing same issue.

Well seems that issue was fixed as of this morning but now there are 2 problems with adding the disk. First, Azure will not allow me to create a disk of less than 32GB and the exercise requires a 30GB drive, and secondly, I get an error that says:

Resource ‘devops-vm_disk1_2f91685cb2244563b72c0567d082d5ae’ was disallowed by policy. Reasons: ‘Global: This storage configuration is not allowed. Ensure the disk size is 128 GB or less and the SKU is not Premium for Compute disks. For Storage accounts, use Standard_LRS or Standard_RAGRS SKUs.’. See error details for policy resource IDs. Target: ‘/subscriptions/f0c3bcdd-5ce2-4fa0-8cf3-41559747512b/resourceGroups/kml_rg_main-66bbc39d50014863/providers/Microsoft.Compute/disks/devops-vm_disk1_2f91685cb2244563b72c0567d082d5ae’.Learn more about common virtual machine error codes.

Problem is that the disk was created (Standard HDD as required) but it will not attach to the VM either initially or as “add an existing disk”.

also facing same issue. any resolution for us??