Before the first apply against VCF 9.1, a team has to settle which tool writes each class of object, which identity each Terraform state runs under, and what happens when an administrator changes a Terraform-owned object in vCenter, NSX or VCF Operations. The baseline here is VCF 9.1.1 with the October 12, 2026, patches, among them VCF Installer and SDDC Manager 9.1.1.0200, build 258010711 and the provider versions named below.
Four inputs change the answer: whether the domains already exist, whether workload domains share an NSX Manager, whether VCF Automation consumes NSX VPCs, and whether clusters use vSphere Configuration Profiles. Our recommendation is one writer per class of object, a dedicated identity per state, and drift detection running before any domain is managed from Terraform.
Four providers on four APIs
The vcf provider is configured with SDDC Manager and VCF Installer endpoints, and its resources cover bring-up (vcf_instance), host commissioning, network pools, workload domains, clusters, cluster personalities, edge clusters, certificates, SSO user roles and credentials2. Its support table starts VCF 9.1.1 at v0.19.0, excludes VCF on Dell VxRail and asks for Terraform 1.4 or later. Version 0.19.0, of October 7, 2026, adapted the domain and instance resources for 9.1.13.
The vsphere provider 2.17.1 works against vCenter and is supported with vSphere 9.x and 8.x4. Beyond virtual machines, it reaches objects VCF also manages: host configuration profiles, a Supervisor resource, vSphere Zones, and vCenter Single Sign-On users and groups5. The nsxt provider 3.12.1 supports NSX 9.1.1, 9.1.0 and 9.0.06 and has VPC resources7.
The vcfa provider 1.2.3 lists VCF Automation 9.1 as its supported version, without naming 9.1.1, and its changelog has required 9.1 or later since 1.1.189. It manages organizations, regions, region quotas, content libraries, Supervisor namespaces and VKS clusters, and on the provider side the vCenter instances registered in VCF Automation8.
Where the ownership line goes
Broadcom documents what each API can do, not which tool should be the system of record for which object. Our recommendation is to give every class of object exactly one writer and to draw Terraform state boundaries where VCF draws its management boundaries, as Figure 2 summarizes.
Domain and cluster lifecycle belongs either to the vcf provider or to VCF Operations, never to both. In 9.1, once a workload domain has been created or imported in VCF Operations, vSphere clusters and ESX hosts can be added to it or removed with the vSphere Client10. For a team that keeps vcf_domain and vcf_cluster in Terraform, our recommendation is an agreement that nobody uses that path for those clusters, no cluster declared both inside a domain and as a standalone vcf_cluster, and one state per VCF Instance, since every domain in it goes through the same SDDC Manager. The cluster resource adds its own rules: apply host additions and removals as separate changes, and when shrinking a cluster, remove the host from the cluster block and apply before removing the commissioned host resource11. Network pools need the same discipline, because IP changes made out of band on storage VMkernel adapters are not synchronized back to the SDDC Manager network pool12.
For the vsphere and nsxt providers, our recommendation is a state per domain for vCenter and a state per NSX Manager, because each workload domain has its own vCenter while its NSX Manager can be shared with other domains10.
Tenant networking is the exception. Broadcom says not to configure any VPCs intended for VCF Automation outside VCF Automation13, and cloud users of All Apps organizations should use the NSX UI or API only for troubleshooting14. nsxt VPC resources therefore belong only to VPCs that VCF Automation will never consume. Inside an organization, the writers are the vcfa provider and the VCF Automation portals, and our recommendation is to keep the provider team’s vcfa state apart from any automation an organization runs for itself. Organization design is covered in the VCF Automation design article. Blueprints and catalog items have no resources in the vcfa 1.2.3 documentation8, so their versions stay in VCF Automation.
SDDC Manager’s edge cluster operations are among the 21 SDDC Manager API operations deprecated in 9.115, and Broadcom asks operators to move off them before removal. The vcf provider still documents vcf_edge_cluster2, so our recommendation is to check which endpoint the resource calls, against the VCF API Specification16, before writing new edge automation on it. The vsphere configuration profile resource sets a cluster’s host configuration from a reference host or a JSON document. Deleting the resource leaves the cluster unchanged, and profile-based management cannot be turned off once enabled17. VCF Operations 9.1 can check clusters that use vSphere Configuration Profiles against configuration templates18. If Terraform applies the profile, our recommendation is to treat the VCF Operations template as a check of the same document rather than a second place to edit it.
The Supervisor resource in the vsphere provider does not yet support update or import19. A Supervisor created through it cannot be adjusted through Terraform afterward, so our recommendation is to decide before creating it who owns its later changes.
Identities for pipelines
Accounts that VCF components generate and use internally must not be rotated, changed or managed by external privileged access management tools, because that can break communication between components and lifecycle management20. Broadcom’s account recommendations add that credentials used through the API or by hand belong in an enterprise vault, which stays the source of truth21. A Terraform pipeline therefore needs identities of its own.
VCF 9.1 adds OAuth API clients. An administrator creates one in VCF Operations on the identity broker configured for VCF SSO, and assigns it roles with a validity period22. Each role is scoped either to all components configured with that identity broker or to one or more VCF Instances23. The API token lives for 30 days by default and its access tokens for 30 minutes, both capped by the fleet IAM settings, and the token cannot be retrieved once the dialog is closed22. An API client is bound to roles, not to a user, and its bearer token reaches vCenter, NSX, VCF Operations and its components, VCF Operations HCX and VCF Automation, but not SDDC Manager24.
VCF Automation has its own service accounts for non-interactive access. A service account obtains its refresh token through the OAuth device authorization grant, which a user with the Service Account: Manage right approves. The token reaches only the client that asked for it, and an unused refresh token never expires unless revoked25.
The vcf provider documents only a user name and password, for SDDC Manager and for the installer2, and its vcf_user page says it creates SSO users with a role, where a service user returns an API key26. The v0.19.0 code in resource_user.go takes no password and only adds an existing SSO account to SDDC Manager27. The vsphere provider requires a user name and password4, and the nsxt provider takes a user name and password or a client certificate registered with NSX Manager beforehand28. None of the three documents a VCF Operations API client token. The vcfa provider takes a user name and password, an API token or a service account token file8.
Our recommendation is to give each state an identity of its own, in the form its provider accepts: a dedicated SSO user for a vcf state, created first and then given its SDDC Manager role with vcf_user, a dedicated vCenter account for a vsphere state, a dedicated user or client certificate for an nsxt state, and a VCF Automation service account for each vcfa state. Keep API clients for scripts and tools that do their own token exchange, and remember that their roles cannot be scoped below a VCF Instance. One identity per state ties every change to one pipeline, at the cost of more identities to approve and renew.
State and plan files can hold passwords and API tokens, local state is a plaintext file, and values marked sensitive are still stored in both, hidden only from CLI output. Ephemeral input variables, from Terraform 1.10, stay out of state and plan files entirely29. In the vcf provider, vcf_credentials_rotate exposes the rotated password as a sensitive attribute30. Leave the internal service accounts to SDDC Manager and VCF Operations, which rotate several of them every 30 days by default20. Where vcf_credentials_rotate is used for other accounts, its state then holds the new password. Our recommendation is a state backend that encrypts at rest29 and supports locking, which stops two runs from writing the same state at once31.
When someone changes it in the UI
Terraform refreshes its state against the real objects before it plans. Running with -refresh=false skips that step and can produce an incomplete or incorrect plan. A refresh-only apply updates the state to match changes made outside Terraform without touching the objects, which is meant for deliberate changes such as an incident fix32. By default Terraform plans to bring any changed attribute back to the configured value. ignore_changes names attributes that another process is allowed to manage, and prevent_destroy rejects plans that would destroy the object, though not when the resource block itself is removed from the configuration33. Our recommendation is to set prevent_destroy on vcf_domain and vcf_cluster and have a second person read every plan that updates them. It does not cover everything: in the v0.19.0 code (resource_domain.go), removing a cluster block from a domain deletes that cluster through an update of the domain27. Our recommendation is to treat a refresh-only apply as a change record: whoever accepts the UI change into the state also changes the configuration to match, or the next normal plan proposes to revert it.
SDDC Manager keeps its own inventory. Changes made directly in vCenter or NSX Manager put it out of sync, and adding or removing hosts, stretching, unstretching and expanding clusters may then fail. VCF 9.1 tolerates distributed switch edits, datastore changes and manual upgrades in vCenter, and transport node and uplink profile edits in NSX. A synchronization workflow reconciles the whole domain inventory, and separate out-of-band storage workflows handle primary datastore changes and stretch state. Those storage workflows apply only to clusters created in SDDC Manager, while imported or converted clusters use the sync operation in VCF Operations. On clusters with out-of-band changes, hosts are still added and removed through VCF Operations or SDDC Manager, not in vCenter12.
Because the vcf provider drives the same day-N workflows, our recommendation is to run the domain sync before any apply that changes hosts or clusters in a domain where out-of-band work is known to have happened, on SDDC Manager 9.1.1.0200 or later, which fixed domain synchronization for imported domains whose hosts had individually configured NSX transport nodes1.
The third place is VCF Operations configuration management. Templates describe desired vCenter and cluster settings and can be versioned in a GitLab or GitHub repository34. This integration works with one repository and one branch, and its code review is on by default35. Broadcom recommends one template per object, drift detection scheduled with email notifications in Automation Central, a procedure for telling approved exceptions from unauthorized changes, and drift history kept longer than the 7-day default, up to the 30-day maximum36.
A drifted vCenter cannot be remediated from the VCF Operations console. The setting is reverted by hand in vCenter or the template is edited to match37. For a drifted cluster, VCF Operations offers a remediation JSON that contains the configuration template, which is applied in the vSphere Client as a vSphere Configuration Profiles draft and then remediated38. Where Terraform owns the cluster’s configuration profile, that route is an out-of-band change to a Terraform-owned object, and our recommendation is to remediate by applying the Terraform configuration, or to update the profile in Terraform to match the template. A setting covered by neither a template nor a state is checked by neither tool. Being in state is not enough either: at v0.19.0 the vcf cluster resource (resource_cluster.go) reads back only the primary datastore and the default and stretch flags, not host membership27.
Importing what exists, and recovering from half-finished runs
Terraform imports an object through an import block that names its ID and a matching resource block, and terraform plan with -generate-config-out can write the resource block39. The vcfa documentation gives import syntax per resource and notes that a plan right after the import shows every difference between the minimal configuration and the stored object40, while the vsphere Supervisor resource has no import yet19. The vcf resource pages describe no import, but the v0.19.0 code imports workload domains and clusters and rejects the management domain, in resource_domain.go and resource_cluster.go27. In an existing instance, the management domain therefore stays with SDDC Manager and VCF Operations. Our recommendation is to import a lab domain first and compare the imported domains, clusters and hosts with the SDDC Manager inventory.
Before 9.1.1.0200, a cluster whose creation failed before vCenter created the cluster object could not be removed, because the removal hung while searching for that object1. After a failed apply, the next plan knows only what the provider recorded, so the task state in SDDC Manager or VCF Operations is read first. If the state lock is still held, leave it to the run that holds it: HashiCorp reserves terraform force-unlock for releasing your own lock after automatic unlocking failed, since unlocking someone else’s can let two writers in31.
Checks before the first apply, and when to stop
The roles and evidence are our recommendation.
- Platform architect, ownership. Evidence: a signed-off ownership table naming one writer, one state and one identity per class of object, and an agreement that Terraform-owned domains get no clusters or hosts through the vSphere Client10.
- Platform engineer, versions. Evidence: every provider version pinned and listed for the running release in its support table, vcfa tested against VCF Automation 9.1.1, and the code behavior described here re-checked whenever the vcf provider version changes2468.
- Identity owner, credentials. Evidence: one vault entry per state identity21, none of them a VCF internal service account20.
- Platform engineer, state. Evidence: a backend with encryption at rest and locking, shown by a second concurrent run that waits for or fails on the lock2931.
- VCF administrator, inventory. Evidence: SDDC Manager on 9.1.1.02001, a clean domain sync after any known out-of-band work12, and no running or failed tasks.
- Operations owner, drift. Evidence: vCenter templates, and cluster templates where vSphere Configuration Profiles are used, in the Git repository, with scheduled drift detection and email notifications3436.
- Change approver, import. Evidence: a plan against the imported lab objects that shows no changes, and those objects matching the SDDC Manager inventory3940.
Our hold criteria, each a reason not to apply:
- Any checklist item above without its evidence.
- A plan that destroys or replaces a domain, cluster or host, removes a cluster block or host from one, or that
prevent_destroyrejects2733. - A plan that reverts a UI change nobody has classified as an approved exception or an unauthorized change3236.
- A VCF upgrade to a release that a pinned provider version does not list as supported2468.
- A running or failed SDDC Manager task, or out-of-band work without a completed domain sync12.
- A state lock held by another run31.
Our stopping point is an apply whose next plan shows no changes and whose hosts and clusters match SDDC Manager, one state at a time, with the vcf state before the vsphere and nsxt states of its domain. A retry needs the cause fixed and shown: the task completed or cleaned up in SDDC Manager or VCF Operations, a domain sync without errors, the lock released by its own run, and a fresh plan read by a second person. A failed workflow that SDDC Manager can neither retry nor remove is a case for the Broadcom support portal, under VMware ESXi and the VCF Terraform component, with the provider version and any GitHub issue41.
In the v0.19.0 code (resource_instance.go), updating or destroying vcf_instance does nothing to the deployed instance27, so our recommendation is to use it for day 0 only. Code behavior can change between provider releases. Some points stay open, among them which cluster attributes update in place. Broadcom does not say whether a VCF Operations template and a Terraform-applied configuration profile can describe the same cluster without conflict, or how the deprecated edge cluster operations map to the provider’s edge resource. Whether the vsphere and nsxt providers can use VCF SSO bearer tokens is not documented, and neither is a way to limit an API client to one workload domain. Our recommendation is to test each of these in a lab before the design depends on it.
The first production domain under Terraform should have an empty import plan and a clean domain sync. Every difference in that plan, whether another writer, an incomplete import or a provider default, is explained before the apply, not after it.
Sources
Show all 41 sources
- VCF Installer / SDDC Manager 9.1.1.0200 Release Notes
- Terraform Provider for VMware Cloud Foundation v0.19.0 Documentation
- Terraform Provider for VMware Cloud Foundation Changelog
- Terraform Provider for VMware vSphere v2.17.1 Documentation
- Terraform Provider for VMware vSphere Changelog
- Terraform Provider for VMware NSX README
- Terraform Provider for VMware NSX Changelog
- Terraform Provider for VMware Cloud Foundation Automation v1.2.3 Documentation
- Terraform Provider for VMware Cloud Foundation Automation Changelog
- Managing VCF Domains in VMware Cloud Foundation
- vcf_cluster (Resource)
- Configuration Drift and Out-of-Band Operations in VMware Cloud Foundation
- Understanding Workload Networking within VCF Automation
- Network Consumption Models
- Product Support Notes
- VCF API Specification
- vsphere_configuration_profile
- VCF Operations
- vsphere_supervisor_v2
- Accounts in VMware Cloud Foundation
- Recommendations for VCF Account and Password Management
- Create an API Client and Generate an API Token
- Create a Custom VCF Role and Assign Custom and Built-In VCF Roles
- OAuth Token Support for API and CLI Access
- Managing Service Accounts in VCF Automation
- vcf_user (Resource)
- Terraform Provider for VMware Cloud Foundation v0.19.0 Source Code
- Terraform Provider for VMware NSX v3.12.1 Documentation
- Manage sensitive data in your configuration
- vcf_credentials_rotate (Resource)
- State Locking
- terraform plan command reference
- lifecycle block reference
- Managing Configuration Templates with Source Control
- Template Management and Versioning
- Recommendations for VCF Configuration Management
- Configuration Management FAQ
- Viewing Drifts and Manual Remediation Steps for Clusters
- Import resources overview
- vcfa_content_library
- Terraform Provider for VMware Cloud Foundation README