DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Power of Azure B Series Virtual Machines
  • Utilizing Apache Spark for Azure Network Security Group Management
  • Azure Virtual Machines
  • Keep Your Application Secrets Secret

Trending

  • Log Analysis Using grep
  • Software Verification and Validation With Simple Examples
  • Next.js vs. Gatsby: A Comprehensive Comparison
  • AI for Web Devs: Project Introduction and Setup
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. Moving a Microsoft Azure VM to a Different Subnet Within a Virtual Network

Moving a Microsoft Azure VM to a Different Subnet Within a Virtual Network

Yung Chou user avatar by
Yung Chou
·
May. 06, 14 · Interview
Like (0)
Save
Tweet
Share
7.33K Views

Join the DZone community and get the full member experience.

Join For Free

in microsoft azure, an administrator can now use powershell to migrate a vm from one subnet to another within the same virtual network. this offers an opportunity to reorganize an application topology for better managing subnet capacity and grouping. for instance, when an existing subnet, abc, is running out of ip addresses, customers can move  the associated vms to a different and perhaps larger subnet. at this time, subnet abc can then be deleted to recover the ip address space.

the logical process to carry out a subnet migration is to:

  1. migrate a vm from one subnet to another, followed by
  2. update the vm configuration which will restart the vm

the msdn documentation at http://msdn.microsoft.com/en-us/library/azure/dn643636.aspx offers a sample powershell statement as below.

get-azurevm –name <a target vm name> –servicename <the associated service name> `
| set-azuresubnet –subnetnames <a target subnet to migrate to> `
| update-azurevm

and i am here providing a sample scenario of moving a vm from a dev subnet to a test one as illustrated below.

image

a virtual network, foonet, has three subnets: ad, dev, and test, while each subnet is configured with a specific ip address range as shown.

image the intent is to move the vm, app1, currently in dev to the subnet, test.
image the vm, app1, is deployed to the service, foo-devtest, i.e. http://foo-devtest.cloudapp.net.
image an ise session is connecting to the microsoft azure subscription account and has successfully moved the vm to the target subnet, test.

for those who are not familiar with microsoft azure powershell, a self-training tool called quick start kit (qsk) is available at http://yungchou.wordpress.com/2014/01/21/announcing-windows-azure-iaas-quick-start-kit-qsk-at-http-aka-ms-qsk/ .
image the vm now resides in the subnet, test.
azure Virtual Machine Network

Published at DZone with permission of Yung Chou, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Power of Azure B Series Virtual Machines
  • Utilizing Apache Spark for Azure Network Security Group Management
  • Azure Virtual Machines
  • Keep Your Application Secrets Secret

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: