Hi,
I get an error message when trying to do a lab in Cloud shell.
Task 2: Create a resource group and virtual machine.
In this task, we will use PowerShell to create a resource group and a virtual machine.
- Ensure PowerShell is selected in the upper-left drop-down menu of the Cloud Shell pane.
- Verify your new resource group by running the following command in the Powershell window. Press Enter to run the command.
- Create a virtual machine by pasting the following command into the terminal window.
PS /home/nafizur> New-AzVm `
> -ResourceGroupName "myRGPS" > -Name "myVMPS"
> -Location "East US" > -VirtualNetworkName "myVnetPS"
> -SubnetName "mySubnetPS" > -SecurityGroupName "myNSGPS"
> -PublicIpAddressName "myPublicIpPS"
cmdlet New-AzVM at command pipeline position 1
Supply values for the following parameters:
Credential
User: azureuser
Password for user azureuser: ************
No Size value has been provided. The VM will be created with the default size Standard_D2s_v3.
New-AzVM: 'VMCustomization' is not enabled for the Subscription. Please register the Subscription for 'Microsoft.Compute/VMCustomizationPreview' to use the feature.
PS /home/nafizur>
I am using Azure Pass to teach students.
Kindest regards,
Ahmed Nafizur Rahman