Workload cluster creation failure due to missing Azure Tenant ID
Bug description I am creating management and workload clusters on Azure. Management cluster created successfully (meaning the Azure tenant, client and secret are ok). Configuring a Workload Cluster With an Object Spec File is failing due to missing Azure Tenant ID
Expected behavior Generated valid Object Spec yaml including Azure Tenant ID (as it was populated in legacy Configuration File)
Steps to reproduce the bug / Relevant debug output
- Create management cluster on Azure (using valid Azure tenant, client and secret)
- Using Configuration File as described in Azure template
- populating the property AZURE_TENANT_ID
- Running
tanzu cluster create my-cluster --file my-cluster-config.yaml --dry-run > my-cluster-spec.yamlwith legacy Configuration File yaml - Running
tanzu cluster create --filewith the generated Object Spec File yaml Getting the following messageError: workload cluster configuration validation failed: Azure config validation failed: failed to initialize Azure client: failed to get Azure Tenant ID
As a workaround running tanzu config set features.cluster.auto-apply-generated-clusterclass-based-configuration true
And running the same above legacy Configuration File and the deployment is working fine.
It seems like the generated Object Spec File is missing Azure Tenant ID property although it was populated in the legacy Configuration File.
Output of tanzu version
version: v0.28.0
buildDate: 2023-01-20
sha: 3c34115bc-dirty
Environment where the bug was observed (cloud, OS, etc) I am usign Ubuntu 22.04.1 LTS and deploying into Azure
Hey @devozs! Thanks for opening your first issue. We appreciate your contribution and welcome you to our community! We are glad to have you here and to have your input on Tanzu Framework.
Thanks @devozs. Issues pertaining to the CLI for version v0.28.0 is still being tracked in this repository.