Change the Shared Resource Region
Overview
Azure onboarding creates one shared resource group, upwind-cs-rg-<org-id>, in your orchestrator subscription. Its region comes from the Terraform variable azure_cloudscanner_location, which defaults to westus for every tenant. If that default does not match where your data is meant to live, this page moves the shared resources to the region you want.
Azure cannot move a resource group between regions, so the move is a replacement: Terraform destroys the shared resources and recreates them in the new region. Your Upwind integration survives it. You do not offboard and re-onboard, the Entra service principal and client credentials are untouched, and the subscriptions you connected stay connected.
In an Outpost deployment, every Cloud Scanner in the organization has to be reinstalled before scanning resumes, and Upwind performs that reinstall. Plan the change with Upwind support rather than running it unannounced.
What Moves and What Does Not
The contents of the shared resource group depend on your deployment model.
| Deployment model | What the move replaces |
|---|---|
| Outpost | The org-wide Key Vault holding your Cloud Scanner credentials, the three user-assigned managed identities (upwind-cs-vmss-identity-<org-id>, upwind-cs-scaler-function-identity-<org-id>, upwind-cs-disk-encryption-identity-<org-id>) and the Key Vault Log Analytics workspace if you enabled logging |
| SaaS | The central snapshots resource group only. SaaS deployments have no customer-side Key Vault or managed identities |
Nothing else changes region. In particular, these are unaffected:
- The Entra service principal for Upwind's application, and the roles assigned to it.
- Your Upwind client credentials, and the connected subscription or management group scope.
- Each Cloud Scanner's own resource group,
upwind-cs-rg-<scanner-id>, and the per-scanner Key Vault inside it. These are separate from the org-wide resources and keep their own regions. - Where scans actually run. Cloud Scanner VMs and disk snapshots are created in the region of the subscription and disk being scanned. A resource group's region is a property of the resource group, not a constraint on what goes in it.
Before You Start
- Confirm the target region is supported - see Unsupported Regions.
- Confirm your Spot vCPU quota in the target region if you expect scanners there, as described in Prerequisites.
- Have the Terraform state and working directory you used for onboarding. The move is an edit to your existing configuration, not a fresh deployment.
- Run
terraform planonce before changing anything and confirm it reports no changes. Start the move from a clean state.
SaaS: Change the Region
A SaaS deployment keeps no Key Vault or managed identities in your tenant, so the move is a single apply with no Cloud Scanner reinstall.
-
Set the new region in your configuration:
module "upwind_onboarding" {
# ... existing configuration unchanged ...
azure_cloudscanner_location = "westeurope"
} -
Review and apply:
terraform plan -out tfplan
terraform apply tfplanThe plan replaces the snapshots resource group and the role assignments scoped to it.
Destroying the snapshots resource group deletes any snapshot currently inside it. Snapshots are transient scan artifacts that Upwind recreates on the next scan, but a scan in flight during the apply fails and is retried.
Outpost: Change the Region
Step 1. Tell Upwind support
Open a ticket with support@upwind.io before you begin, stating your organization ID, the current region and the target region. Upwind schedules the Cloud Scanner reinstall that has to follow your apply, and tracks the gap in scan coverage in the meantime.
Step 2. Choose a new resource suffix
This is the step that is easy to miss, and skipping it makes the apply fail.
The org-wide Key Vault's name is derived from your Upwind organization ID, not from the region, so recreating it in a new region would ask Azure for the same name again. The vault is created with soft delete and purge protection enabled, which means that once Terraform destroys it the name stays reserved across all of Azure for the 7 day retention period, and purge protection prevents releasing it early. The apply then either fails on the name, or recovers the old vault back into its original region.
Setting resource_suffix gives the new vault a name that is free. Choose up to 10 alphanumeric characters, for example a short form of the target region:
| Current name | resource_suffix | New name |
|---|---|---|
kv-a1b2c3d4e5f | euw1 | kv-a1b2c3d4e5feuw1 |
resource_suffix is also appended to the names of the custom role definitions that onboarding creates. Terraform updates those names in the same apply and recreates the role assignments that use them. That is expected, and Upwind continues to recognize the roles.
resource_suffix is not part of the Terraform that the onboarding flow generates. If you re-copy that snippet into main.tf at any point after this move, re-add the variable. Without it, the next apply tries to recreate the Key Vault under its old name and fails.
Step 3. Update the Terraform configuration
Set both variables together:
module "upwind_onboarding" {
# ... existing configuration unchanged ...
azure_cloudscanner_location = "westeurope"
resource_suffix = "euw1"
}
Step 4. Review the plan
terraform plan -out tfplan
Check the plan before applying. It should show:
- The shared resource group replaced, with
locationchanging to your target region. - The org-wide Key Vault replaced, and the planned name carrying your new suffix. If the plan still shows the old vault name,
resource_suffixhas not taken effect. Stop and fix it, because applying from here fails against the soft-deleted vault. - The three user-assigned managed identities replaced. They are recreated with new principal IDs, which is why the role assignments that reference them are replaced too.
- The custom role definitions renamed, and their role assignments replaced.
Step 5. Apply
terraform apply tfplan
The module waits between creating role definitions and assigning them, because Azure propagates role changes asynchronously. Expect this apply to take considerably longer than a routine one.
Step 6. Confirm the Key Vault secrets
In the default configuration Terraform writes upwind-client-id and upwind-client-secret into the new vault as part of the apply. Confirm both are present:
az keyvault secret list --vault-name <new-vault-name> --query "[].name" -o tsv
If you onboarded with key_vault_private_network = true, Terraform cannot reach the vault's data plane and does not write them. Add both secrets yourself now, exactly as you did during onboarding. Cloud Scanners cannot authenticate without them.
Step 7. Have Upwind reinstall the Cloud Scanners
Tell Upwind support the apply is complete.
Each Cloud Scanner deployment was created with the org-wide Key Vault name as a deployment parameter, and runs under the managed identities that have just been replaced. Until each one is reinstalled, it cannot read the credentials it needs. Upwind performs the reinstall for every Cloud Scanner in the organization, so there is nothing for you to run against the per-scanner resource groups.
Upwind locates the new Key Vault and identities by their Azure tags rather than by a stored name, which is why no reconfiguration is needed on the Upwind side. It also means the reinstall waits for the next inventory sync to see the new resources, so expect a delay between your apply finishing and the reinstall starting. During that window your connected subscriptions are left as they are, not removed.
Step 8. Verify
-
Confirm the resource group is in the target region:
az group show --name upwind-cs-rg-<org-id> --query location -o tsv -
In the Upwind Management Console, confirm the Cloud Scanners report healthy after the reinstall.
-
Confirm new scan results are arriving for the affected subscriptions.
Alternative: Keep the Existing Key Vault Name
If a naming policy requires the Key Vault to keep its current name, the only way to reuse that name is to leave it unused until Azure purges the soft-deleted vault automatically, which takes 7 days from the destroy. Scanning is down for that whole period, so treat this as a last resort and agree it with Upwind support first.
The sequence is to disable Cloud Scanner so Terraform destroys the shared resources, wait out the 7 day retention, then set the new region and re-enable. Do not attempt it in a deployment using key_vault_private_network, where disabling works differently.
In almost every case, taking the new suffix from Step 2 is the better trade: one apply, one reinstall, and the vault name is an internal detail that Upwind resolves by tag.
Troubleshooting
The apply fails with a message that a vault with the same name already exists in a deleted state.
resource_suffix was not set, or was set to its previous value. The old vault is soft-deleted and holds the name. Set a new suffix and re-run the plan. The name cannot be freed early, because purge protection is enabled on the vault.
The plan shows the Key Vault being recovered rather than created.
Same cause. The provider's recover_soft_deleted_key_vaults feature finds the soft-deleted vault and tries to restore it, which would put it back in its original region. Give the new vault a distinct name with resource_suffix.
Cloud Scanners stay unhealthy after the reinstall.
Check that upwind-client-id and upwind-client-secret both exist in the new vault, as in Step 6. In a private network deployment these are added manually and are the most common omission.
Scan results have not resumed. Upwind discovers the replaced resources through an inventory sync, so a delay after the apply is expected. If results have not resumed well beyond that, contact support@upwind.io with your organization ID and the time of the apply.
For anything not covered here, see Troubleshooting or contact support@upwind.io.