Share via

Azure VM tutorial not working.

Alejandro Archuleta 21 Reputation points
2022-06-10T16:13:19.95+00:00

Upon typing this code :

$vmParams = @{
ResourceGroupName = 'TutorialResources'
Name = 'TutorialVM1'
Location = 'eastus'
ImageName = 'Win2016Datacenter'
PublicIpAddressName = 'tutorialPublicIp'
Credential = $cred
OpenPorts = 3389
Size = 'Standard_D2s_v3'
}
$newVM1 = New-AzVM @vmParams

Followed by this Command:

$newVM1 = New-AzVM @vmParams

This error pops up:

New-AzVM: The requested size for resource '/subscriptions/confidential/resourceGroups/TutorialResources/providers/Microsoft.Compute/virtualMachines/TutorialVM1' is currently not available in location 'eastus' zones '' for subscription 'confidential'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.

Not sure if I did something wrong or need to try another size?

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

0 comments No comments

Answer accepted by question author

Bjoern Peters 8,921 Reputation points
2022-06-10T16:30:39.507+00:00

Actually, Microsoft is experiencing some capacity issues in the US regions, so it might happen that they are cutting available resources for sponsored subscriptions.

So this is why you are getting that error... please change the region to something different... as this is "just" a tutorial... you might use a region on a different continent.

You did nothing wrong, your script should work like you expect.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.