Microsoft Azure Series VI How to assign a reserved IP address to an Azure cloud service

Source: Internet
Author: User

Azure virtual machines are paid for on-demand, self-service, and are used by users.

When we need to deactivate a virtual machine for a while, we should turn off the virtual machine instead of clicking the Shut Down button on the virtual machine (the compute service is still charged).

Turn off the virtual machine status of stopped (deallocated).

650) this.width=650; "title=" clip_image002 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image002 "src=" http://s3.51cto.com/wyfs02/M00/80/43/wKiom1c8JuTj4LAsAAAVaLvI-DA728.jpg "height=" "/>"

When the virtual machine, the calculation of resources to stop charging, storage resources still need to charge.

However, when all services in a cloud service are turned off, the public IP address of the cloud services is automatically reclaimed and the next time it is turned on, a new IP address may be assigned. How do I set a reserved IP address for a cloud service?

Implementation process:

1. New Cloud Service

NEW-compute-cloud services-Custom creation

650) this.width=650; "title=" clip_image004 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image004 "src=" http://s3.51cto.com/wyfs02/M02/80/40/wKioL1c8J86h3TNbAABFNJ_NJYs452.jpg "height=" 286 "/>

Next

Set up a cloud service name and region

650) this.width=650; "title=" clip_image006 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image006 "src=" http://s3.51cto.com/wyfs02/M00/80/40/wKioL1c8J8_DmrUoAAAv2RECZ1c358.jpg "height=" 345 "/>

Complete.

2. Create a new reserved IP address

Use Azure PowerShell to create a new reserved IP address with the name RIP1

650) this.width=650; "title=" clip_image008 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image008 "src=" http://s3.51cto.com/wyfs02/M01/80/43/wKiom1c8JuWTH11VAABA4QRAycw248.jpg "height="/>

3. Associate the reserved IP address for the cloud service

Then use Set-azurereservedipassociation–reservedipname rip1–servicename shnycs01

650) this.width=650; "title=" clip_image010 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image010 "src=" http://s3.51cto.com/wyfs02/M02/80/43/wKiom1c8JuaCQ6hSAABQiw0xhFo838.jpg "height="/>

The results show that the current cloud service does not have a resource deployed and the association fails.

After deploying some resources, execute the above command again.

650) this.width=650; "title=" clip_image012 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image012 "src=" http://s3.51cto.com/wyfs02/M02/80/43/wKiom1c8Juag0QxgAABMak3jwtE093.jpg "height=" 104 "/>

Command completed successfully.

Microsoft Azure Series VI How to assign a reserved IP address to an Azure cloud service

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.