vmware / terraform-provider-vra

Terraform Provider for VMware Aria Automation
https://registry.terraform.io/providers/vmware/vra/
Mozilla Public License 2.0
103 stars 90 forks source link

Unable to apply tag block to Azure Cloud Account #443

Closed bohleadam closed 1 year ago

bohleadam commented 2 years ago

The creation of a "vra_cloud_account_azure" resource doesn't seem to be able to apply a tag block to the Cloud Account

resource "vra_cloud_account_azure" "azure_cloud_account" {
  name            = var.azure_account_name
  description     = var.azure_description
  subscription_id = var.azure_subscription_id
  tenant_id       = var.azure_tenant_id
  application_id  = var.azure_application_id
  application_key = var.azure_application_key
  regions         = var.azure_regions

  tags {
    key   = "cloud"
    value = "azure"
  }

}

running the above fails to assign the capability tags to the Cloud Account in Cloud Assembly. AWS and GCP Cloud Accounts don't have this issue

tenthirtyam commented 2 years ago

Interestingly, the r/vra_cloud_account_azure has the same inclusion of the tagsSchema in the resource schema

"tags": tagsSchema(),

as well as use in the resource creation...

Tags:               expandTags(d.Get("tags").(*schema.Set).List()),

as the other Cloud Account resources.

Ryan Johnson Staff II Solutions Architect | VMware, Inc.

frodenas commented 1 year ago

I just tested this use-case on a vRA 8.9.0 instance and I see the capability tags applied to my azure cloud account.

@bohleadam Which version of vRA are you using? do you have any debug logs so we can check the API calls?

github-actions[bot] commented 1 year ago

Marking this issue as stale due to inactivity. This helps us focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!