Windows Azure Virtual Machine (30) modifies the subnet of an Azure VM

Source: Internet
Author: User

Windows Azure Platform Family of articles Catalog

  When I use Azure virtual machine VMS, I often use them in conjunction with the virtual network.

But sometimes, we deploy in the virtual network subnet subnet information is wrong, I want to modify this virtual machine belongs to the subnet, how should I modify?

Let me briefly introduce you here.

  

1. First, we have a virtual network vnet with 2 subnet subnets. Such as:

  

  

2. We have an Azure VM virtual machine that is added to a virtual network Subnet-1. Such as:

  

3. We are now going to implement this VM's subnet and modify it into Subnet-2.

4. We run Azure PowerShell as an administrator

# in the pop-up interface, enter your azure China user name and password Add-azureaccount-Environment Azurechinacloud# Select Current subscription select-azuresubscription-  Subscriptionname ' [subscriptionname] '# Modify the subnet of the virtual machineget-

5.Azure PowerShell execution results are as follows:

  

6. The results of the implementation are as follows:

  

Windows Azure Virtual Machine (30) modifies the subnet of an Azure VM

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.