Go to the Azure portal to find an existing virtual machine. To add a network interface to your virtual machine: ToolĪdd a network interface to an existing VM Commandsīefore you create the VM, Create a network interface. Learn how to configure Linux or Windows for multiple network interfaces. If you create a VM with multiple network interfaces, you must also configure the operating system to use them properly after you create the VM. Be sure to familiarize yourself with the constraints. You can do both by using the CLI or PowerShell. You can't use the portal to add existing network interfaces to a new VM, or to create a VM with multiple network interfaces. When you create a virtual machine through the portal, the portal creates a network interface with default settings and attaches the network interface to the VM for you. Run az login to create a connection with Azure.Īdd existing network interfaces to a new VM If you need to install or upgrade, see Install Azure CLI. Run az -version to find the installed version. Use Azure CLI version 2.0.26 or later if you're running the Azure CLI locally. Run Connect-AzAccount to create a connection with Azure.Īzure CLI users: Run the commands via either the Azure Cloud Shell the Azure CLI running locally. If you need to upgrade, see Install Azure PowerShell module. ![]() Run Get-Module -ListAvailable Az.Network to find the installed version. If you're running PowerShell locally, use Azure PowerShell module version 1.0.0 or later. In the Azure Cloud Shell browser tab, find the Select environment dropdown list, then pick PowerShell if it isn't already selected. 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. PowerShell users: Either run the commands in the Azure Cloud Shell, or run PowerShell from your computer. Portal users: Sign in to the Azure portal with your Azure account. Complete one of these tasks before starting the remainder of this article: If you don't have one, set up an Azure account with an active subscription. To learn how to migrate to the Az PowerShell module, see Migrate Azure PowerShell from AzureRM to Az. See Install Azure PowerShell to get started. To interact with Azure, the Azure Az PowerShell module is recommended.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |