Hi, I am unable to complete exercise, M02-Unit 3 Create and configure a virtual network gateway.

Singay Wangchuk 5 Reputation points
2025-08-30T03:49:16.47+00:00

I am trying to run the following command in step 3 of exercise: https://microsoftlearning.github.io/AZ-700-Designing-and-Implementing-Microsoft-Azure-Networking-Solutions/Instructions/Exercises/M02-Unit%203%20Create%20and%

$RGName = "ContosoResourceGroup" New-AzResourceGroupDeployment -ResourceGroupName $RGName -TemplateFile CoreServicesVMazuredeploy.json -TemplateParameterFile CoreServicesVMazuredeploy.parameters.json

Following error message:

New-AzResourceGroupDeployment: 3:38:07 AM - Error: Code=InvalidTemplateDeployment; Message=The template deployment 'CoreServicesVMazuredeploy' is not valid according to the validation procedure. The tracking id is '387c61c5-1ff5-4ade-a21a-bb0a4a703b60'. See inner errors for details.

New-AzResourceGroupDeployment: 3:38:07 AM - Error: Code=SkuNotAvailable; Message=The requested VM size for resource 'Following SKUs have failed for Capacity Restrictions: Standard_DS1_v2' is currently not available in location 'eastus'. Please try another size or deploy to a different location or different zone. See https://aka.ms/azureskunotavailable for details.

New-AzResourceGroupDeployment: The deployment validation failed

What is possible solution for this? Should I change the SKU capacity or change location?

Awaiting your kind feedback.

Thanks.

SW

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vinodh247 39,376 Reputation points MVP Volunteer Moderator
    2025-08-30T06:43:26.7666667+00:00

    Hi ,

    Thanks for reaching out to Microsoft Q&A.

    Option 1: Change the VM SKU

    If you want to keep the region as East US, you need to pick a different VM size that is available in that region. Steps:

    1. Run this command to see which sizes are available: Get-AzVMSize -Location eastus

    Pick a similar size, such as Standard_B2s or Standard_DS2_v2, and update the CoreServicesVMazuredeploy.parameters.json file to use the new size.

    Option 2: Change the Region

    If you want to keep the same SKU (Standard_DS1_v2), deploy to another region where the SKU is available. Steps:

    1. Check available regions for the SKU: az vm list-skus --size Standard_DS1_v2 --location eastus --output table (OR) az vm list-skus --size Standard_DS1_v2 --output table

    Update your deployment command and template parameters to use a region like eastus2, centralus, or westus.

    For the lab, the simplest solution is to switch the region to eastus2 or centralus in your parameters file and re-run the deployment.

    Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.