Platform automation for Azure VMware Solution enterprise-scale scenario
The enterprise-scale landing zone uses a series of best practices for automation and DevOps. These best practices can assist with the deployment of an Azure VMware Solution private cloud. This guide provides an overview of deployment considerations for the initial deployment of Azure VMware Solution. It also provides guidance for operational automation. This implementation follows the architecture and best practices of the Cloud Adoption Framework, focused on designing for scale.
This solution is made up of two key parts. The first part is guidance around deployment and automation practices for Azure VMware Solution. The second part is a set of open-source artifacts that can be adapted to help with the deployment of your private cloud. While this solution aims to start an end-to-end automation journey, your organization can decide what components to deploy manually based on the considerations in this article.
Azure VMware Solution landing zone accelerator automation is designed to help you get started deploying Azure VMware Solution using the templates and scripts within this repository. Before you deploy, we recommend reviewing the templates to understand the resources that are deployed and the associated costs.
This article covers considerations and recommendations in the following areas:
- Deployment options for Azure VMware Solution, including manual and automated.
- Automated scale considerations and implementation details.
- Considerations for VMware SDDC-level automation within a private cloud.
- Recommendations on automation approaches extended from an enterprise landing zone.
- Considerations on automation technologies to use for deployment and management, like Azure CLI, Azure Resource Manager, Bicep, and PowerShell.
Azure VMware Solution can be deployed manually or using curated automated toolings.
You can configure and deploy an Azure VMware Solution private cloud graphically through the Azure portal. This option is suitable for smaller-scale deployments. If you want to deploy large-scale Azure VMware Solution topologies in a repeatable manner, consider an automated deployment. You can also configure connectivity to the private cloud, and then scale it manually via the Azure portal.
Considerations:
- You can use manual deployments for initial pilots and small-scale environments. You can also use them where you don't have an existing automation or infrastructure-as-code practice in place.
- When you deploy Azure VMware Solution via the Azure portal, Azure CLI, or Azure PowerShell modules, you see a series of terms and conditions about data protection in the solution. If you're using the Azure Resource Manager APIs directly or deploying via an Azure Resource Manager or Bicep template, consider reviewing these terms and conditions before deploying automation.
- For on-demand environments that are spun-up as required, consider automating the Azure VMware Solution private cloud creation process to limit the amount of manual interaction.
- You can use the deployments blade of the target resource group within the Azure portal to monitor the private cloud creation process. Once you've deployed the private cloud, confirm that it's in the Succeeded status before proceeding. If the private cloud shows a Failed status, you might be unable to connect to vCenter Server. Removal and redeployment of the private cloud might be required.
Recommendations:
- If you choose a manual deployment method, it's important to document the configuration you use to provision the private cloud. Once deployed, download the deployment template you used for documentation purposes. This template artifact contains the ARM template used to deploy the private cloud. The template artifact also has a parameters file that contains the configuration you selected.
- If you're going to interact with the private cloud in the Azure portal regularly, we recommend placing a resource lock to restrict resource deletion. You can also use read-only resource locks to restrict scale operations.
You can use automated deployments to deploy Azure VMware Solution environments in a repeatable fashion. You can then design and deploy the environments on-demand. This usage leads to an efficient deployment mechanism to roll out multiple environments and regions at scale. They also provide for a low-risk, on-demand, and repeatable deployment process.
Considerations:
- An Azure VMware Solution private cloud deployment might take several hours to complete. Consider monitoring this process by using the Azure Resource Manager deployment status or the status property on the private cloud. You might use a deployment pipeline or programmatically deploy via PowerShell or the Azure CLI. If so, ensure that appropriate timeout values are selected to accommodate the private cloud provisioning process.
- You can pre-allocate address ranges for private clouds and workload networks ahead of time per the recommendations in Network topology and connectivity. Then, add them into environment configuration or parameter files. The address range overlap isn't validated at deploy time. This lack of validation can lead to issues if two private clouds have the same address range. Issues can also happen if the range overlaps with existing networks within Azure or on-premises.
- You can use service principals for deployment to provide least privileged access. You can also use Azure role-based access control (RBAC) to limit access for the deployment process.
- You can use a DevOps strategy for private cloud deployment, using pipelines for automated and repeatable deployments without relying on local tools.
Recommendations:
- Deploy a minimal private cloud and then scale as required.
- Request host quota or capacity ahead of time to ensure a successful deployment.
- Monitor both the private cloud deployment process and the status of the private cloud before deploying subresources. Further configuration updates to the private cloud can only be processed once the private cloud is in a Succeeded status. For private clouds that are in a Failed status, we recommend you stop any further operations and raise a support ticket to resolve.
- Include relevant resource locks within the automated deployment or ensure they're applied via policy.
Once you deploy the Azure VMware Solution private cloud, you can set up connectivity via ExpressRoute. There are two critical paths for network connectivity described within this construction set:
- Connectivity to a virtual network or an Azure Virtual WAN via a virtual network gateway.
- Connectivity between Azure VMware Solution and an existing ExpressRoute via Global Reach.
For more information about recommended network topologies, see Network topology and connectivity.
Considerations:
- You can connect an Azure VMware Solution private cloud to an Azure virtual network or an existing ExpressRoute. This connection automatically advertises routes from both the management networks and workload networks within the private cloud. As there are no overlap checks in place, consider validating advertised networks before connecting.
- You can align the names of ExpressRoute authorization keys with existing naming schemes for the resources they connect to. This alignment provides easy identification of related resources.
- ExpressRoute virtual network gateways and ExpressRoute circuits might live in a different subscription than the Azure VMware Solution private cloud. Decide whether you want a single service principal to have access to all of these resources or if you want to keep them separate.
- The NSX-T Data Center workload networking via the Azure portal can deploy essential network resources into a private cloud, but NSX-T Manager gives more control over NSX-T Data Center components. It's worth considering what level of control you require over the network segments.
- Use the NSX-T Data Center workload networking within the Azure portal to set up Domain Name System (DNS) zones for private DNS integration.
- For network topologies that only require a single tier-one gateway, use NSX-T Data Center workload networking within the Azure portal.
- For advanced configurations, you can use NSX-T Manager directly.
- Consider the level of skill of your network administrators. If your network administrators have little or no knowledge of VMware NSX-T Data Center, consider using the Azure portal instead to reduce risk for network operations.
Recommendations:
- If you're using separate service principals for Azure VMware Solution deployment instead of ExpressRoute configuration, use Azure Key Vault or a similar secret store to pass authorization keys between deployments if necessary.
- There are limits to the number of parallel operations that can be done over an Azure VMware Solution private cloud at any moment. For templates that define many Azure VMware Solution private cloud subresources, we recommend using dependencies to deploy in a serial fashion.
By default, an Azure VMware Solution cluster has a fixed number of hosts defined by the scale of the cluster. You can programmatically modify per-cluster scaling, so that you can scale in and out via automation. This automation might be on-demand, on a schedule, or in reaction to Azure Monitor alerts.
Considerations:
- Automated scale-out can provide more capacity on-demand, but it's important to consider the cost of more hosts. This cost is limited to the quota that's provided to the subscription, but manual limits should be in place.
- Before you automate the scale-in, consider the impact on running workloads and storage policies applied within the cluster. For example, workloads that have RAID-5 assigned can't be scaled in to a three-node cluster. It's also important to consider memory and storage use, as this usage might block a scale-in operation.
- Only one single-scale operation can be done at a time, so it's important to consider the orchestration of scale operations between multiple clusters.
- An Azure VMware Solution scale operation isn't instantaneous, and you must consider the time it takes to add another node to an existing cluster.
- Third-party solutions and integrations might not expect hosts to be continuously removed and added. Consider validating the behavior of all third-party products. This validation ensures more steps aren't required to refresh or reconfigure the product when hosts are added or removed.
Recommendations:
- Put hard limits in place for both scale-in and scale-out operations outside of quota.
- Request quota ahead of time so it doesn't affect a scale operation. Quota isn't a guarantee for capacity, but rather the ability to deploy up to a specific limit. Review the quota limit regularly to ensure there's always headroom.
- Ensure any automated scaling system is monitored and that it alerts you when a scale operation is done. This alert ensures there are no unexpected scale events.
- Use Azure Monitor Metrics to confirm cluster capacity before scale-in operations to ensure there's adequate headroom. Pay attention to CPU, memory, and storage before, during, and after any scale operations. This attention to capacity ensures that it doesn't affect the service-level agreement (SLA).
An Azure VMware Solution private cloud can also use several different Azure native services. You can include these services within the Azure VMware Solution deployment or deployed as separate components. When outside the scope of the article, we recommend that you use the existing patterns within the enterprise-scale landing zone architecture to integrate with these services.
Considerations:
Consider the deployment lifecycle of each component you plan to automate. Group components tightly bound by their lifecycle should be grouped together, allowing for deployment as a single unit. Separate components with different lifecycles.
An Azure VMware Solution private cloud exists as a resource within the Azure Resource Manager, providing interaction via several different automation tools. First-party Microsoft tooling generated from the Azure Resource Manager specifications tends to support features shortly after being released. From an automation perspective, the considerations in this article are provided in a way that can be applied across different toolsets.
Considerations:
- Use declarative tooling like Azure Resource Manager and Bicep templates so that you can define configuration as a single artifact. Command-line and script-based tooling like Azure CLI and PowerShell requires a step-by-step approach to execution that's more in line with manual deployment.
- You can use third-party automation tooling like Terraform to deploy Azure VMware Solution and Azure native services. It's important to make sure that the features you want to use within Azure VMware Solution are currently included within the available resources.
- When taking a script-based approach to deployment, always consider the implications of failure-to-deploy and monitor appropriately. For Azure VMware Solution specifically, consider monitoring both the deployment and the private cloud status. For more information on monitoring Azure VMware Solution, see Management and monitoring for Azure VMware Solution.
Recommendations:
- Use Azure CLI, PowerShell, or a declarative template like Azure Resource Manager or Bicep to deploy Azure VMware Solution in an automated manner.
- Where possible, use what-if to confirm changes before execution, pausing on resource deletion for verification.
You should implement Azure VMware Solution deployment automation as a series of repeatable steps, ideally via a workflow or pipeline. It's important to scope out the required steps that you plan to include within the deployment. These steps might include:
- Private cloud deployment.
- ExpressRoute gateway connectivity.
- Global Reach connectivity.
- Simplified NSX-T Data Center DHCP, DNS, and segment creation.
After you deploy your private cloud, you can deploy resources within the private cloud. For more information, see VMware SDDC platform automation.
Considerations:
- You might have an existing automation practice, or you built a DevOps strategy as part of the enterprise-scale landing zone. If so, consider reusing the same patterns for Azure VMware Solution deployments to keep a consistent automation style across the board.
- For more information, see the enterprise-scale landing zone platform automation and DevOps documentation.
Within an Azure VMware Solution private cloud, you might also choose to automate the creation of resources within vCenter Server and NSX-T Manager. The following series of considerations are listed to help design VMware SDDC-level automation.
Considerations:
- Use PowerCLI to create and configure virtual machines (VMs), resource pools, and VM templates, giving you full programmatic control over vCenter Server.
- As vCenter Server is only available through private connectivity, or private IP, you must run PowerCLI on a machine that has line of sight to the Azure VMware Solution management networks. Consider using a self-hosted agent for your pipeline execution. With this agent, you can run PowerCLI on a VM within a virtual network or NSX-T Data Center segment.
- You might not have access to do certain operations, as you're limited by the CloudAdmin role. Consider mapping out required permissions for the automation you plan to implement and validate it against the CloudAdmin permissions.
- For least privilege access, consider using a service account for vCenter Server level automation via Active Directory integration.
Considerations:
- In an Azure VMware Solution private cloud, the admin user has administrative access to NSX-T Data Center by default. Because of this default access, consider the impact of changes made via PowerCLI or the NSX-T Data Center APIs directly. Making modifications to Microsoft-managed components like the transport zone and tier-zero gateway aren't permitted, and caution is advised.
- Private connectivity is required from the VM running PowerCLI to the Azure VMware Solution private cloud to interact with NSX-T Data Center.
- You can control workload networking via Azure Resource Manager. This control enables a subset of operations to be done via the Azure Resource Manager API, which then enables operations via Azure CLI and PowerShell using Azure RBAC instead of NSX-T Data Center identity.
Considerations:
- You can use vSphere and NSX-T Data Center providers for Terraform to deploy resources. These resources are deployed within the scope of the private cloud in a declarative fashion.
- As Terraform needs to talk to the API endpoints within vCenter Server and NSX-T Manager, it needs to have private connectivity to the private cloud management network. Consider deploying from an Azure virtual machine that can route to the private cloud.
Considerations:
- You can use vRealize Automation similarly to an on-premises environment, so that you can automate the provisioning of virtual machines within Azure VMware Solution.
- There are limitations to the deployment models supported on Azure VMware Solution. Consider using vRealize Cloud Management, or hosting the vRealize Automation appliances on-premises.
- As with PowerCLI, private connectivity to Azure VMware Solution is required from the environment where the vRealize Automation and vRealize Operations appliances is.
Within individual workloads on Azure VMware Solution, you can choose to set up automation on a per-VM level. This automation is achieved in the same way as on-premises and is out of scope for this article. Examples of this automation include Microsoft Configuration Manager, Chef, Puppet, and Ansible. You can also use Azure Automation for VM-level configuration using the on-premises agent.
Now that you've read through the design areas, learn about the architectural approach and implementation for Azure VMware Solution in an enterprise-scale scenario.