When you initially install Tanzu Operations Manager and Tanzu Application Services, you’ll be asked to define the availability zones (AZs) for the installation.
These dictate where the platform will place Virtual machines (VMs) on your IaaS. After you perform the initial installation, Ops Manager will lock these fields, and it won’t let you make changes to them. For additional information on locked fields see the docs .
This article describes the process to go through if you need to change your availability zone configuration after the initial install.
Before making any changes, it’s important to realize that there are some limitations in what you can do.
In order to make changes to your Availability Zone configuration in Operations (Ops) Manager, you will need to follow procedures for modified lock on deploy fields. First you must enable Advanced mode in Operations Manager following the instructions in this article or see below Modify AZ configurations using Operations Manager API. When Operations Manager is in Advanced mode ( otherwise known as unlocked ) there are limitations as to which fields can be edited in the UI and API. Below explains the limitations of each.
We recommend using the UI for all AZ migration changes.
Ideally used only when making modifications to vSphere cluster configurations within AZs. This method is an advanced procedure which can result in unknown consequences if not used as intended.
export OM_TARGET=OPSMAN_HOSTNAME export OM_USERNAME=admin export OM_SKIP_SSL_VALIDATION=true export OM_PASSWORD=PASSWORD
om curl -p /api/v0/staged/infrastructure/locked -x PUT --data '{"locked" : "false"}' -H "Content-Type: application/json"
om curl -p /api/v0/staged/director/availability_zones > azs.json
om curl -p "/api/v0/staged/director/availability_zones" -x PUT -H "Content-Type: application/json" -d @azs.json
om curl -p /api/v0/staged/infrastructure/locked -x PUT --data '{"locked" : "true"}' -H "Content-Type: application/json"
om curl -p /api/v0/staged/infrastructure/locked