AndrewG
AndrewG

Reputation: 1429

How can I change region for role after initial deployment at Azure?

How can I change region for role after initial deployment? I can't find any option to do this. It's only available first time at initial upload.

thanks in advance.

Upvotes: 0

Views: 479

Answers (2)

BrentDaCodeMonkey
BrentDaCodeMonkey

Reputation: 5513

When you create the service namespace, you associate it with a specific region. The only way to reassociated it currently is to delete and recreate it. Keep in mind it takes a bit for a namespace to be fully purged and subsequently available for reassignment. And anyone can grab that namespace if its available, so there's no guarantee you'll get it again.

In these situations, what I normally direct people to do is first set up a c-name forwarded for the existing service namespace, then change all external endpoints to redirect to this new forwarding address. Next, deploy a new instance of the service to a new namespace and smoke test it to ensure its working properly. Lastly, change the forwarded to point to the new namespace and remove the old one once you're certain its no longer receiving any traffic.

Upvotes: 4

Tom
Tom

Reputation: 1611

Another option would be to setup a c-name forward as Brent mentioned, but use the Azure Traffic Manager and then you can host in multiple data centers and have traffic directed to the closest one based on where the client is coming in from.

Upvotes: 0

Related Questions