The Azure marketplace includes many images that can be used to create a new VM. Type the username and password you created for the VM and then click OK. In the Windows Security window, select More choices and then Use a different account. When prompted, enter the credentials used when creating the VM. Replace the IP address with the publicIPAddress of your VM. Use the following command, on your local machine, to create a remote desktop session with the VM. ResourceGroupName "myResourceGroupVM" | Select IpAddress ![]() Take note of this IP Address so you can connect to it with your browser to test web connectivity in a future step. Run the following commands to return the public IP address of the VM. ![]() PublicIpAddressName "myPublicIpAddress" `Īfter the deployment has completed, create a remote desktop connection with the VM. SecurityGroupName "myNetworkSecurityGroup" ` Set the username and password needed for the administrator account on the VM with Get-Credential: $cred = Get-Credential This example creates a VM named myVM, running the default version of Windows Server 2016 Datacenter. When creating a VM, several options are available like operating system image, network configuration, and administrative credentials. The resource group is specified when creating or modifying a VM, which can be seen throughout this tutorial. In the following example, a resource group named myResourceGroupVM is created in the EastUS region: New-AzResourceGroup ` ![]() A resource group must be created before a virtual machine. Create resource groupĬreate a resource group with the New-AzResourceGroup command.Īn Azure resource group is a logical container into which Azure resources are deployed and managed. Select Copy to copy the blocks of code, paste it into the Cloud Shell, and press enter to run it. You can also launch Cloud Shell in a separate browser tab by going to. To open the Cloud Shell, just select Try it from the upper right corner of a code block. It has common Azure tools preinstalled and configured to use with your account. ![]() The Azure Cloud Shell is a free interactive shell that you can use to run the steps in this article.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |