In this step, you will finalize the setup of your production environment, by registering your production environment's IP address and associating it with your hostname, through a DNS service (e.g. CloudFlare, GoDaddy, etc.). By registering your domain you ensure that your domain doesn't change and your customers can always reach your product.
A. Retrieving the IP Address of your Production Environment
Deploy the production environment based on the production environment blueprint to deploy the blue production environment for the first time. The IP address of your production environment's load balancer will be available under the Quick Links of the production sandbox's Summary tab.
The next step will be to register the IP address and the hostname through a DNS service.
B. Register the hostname(s) and IP address(s)
Registering your domain through a DNS service, according to the way you chose to manage your domain:
- When using two distinct hostnames, through a DNS service, associate both hostnames to the IP address of your load balancer, meaning, the same IP address for both hostnames. For example:
- When using a single hostname with subdomains, through the DNS service, associate the hostname with the IP address of your load balancer. Make sure to register your domain using the asterisk symbol as the leftmost label of your domain name.
In both cases:
- When using the specific hostname of the green environment in a browser, the user will be redirected to the green environments.
- When using the application gateway's hostname, the user will be redirected to either the blue or the green environment, according to the current balance of traffic exposure between the two environments.