Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_vmware_private_cloud does not export vcenter and nsx password when used as data #21993

Open
1 task done
khensler-msft opened this issue May 31, 2023 · 2 comments
Open
1 task done

Comments

@khensler-msft
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

latest

AzureRM Provider Version

latest

Affected Resource(s)/Data Source(s)

azurerm_vmware_private_cloud

Terraform Configuration Files

terraform {
  required_providers {
    vsphere = {
      source = "hashicorp/vsphere"    
    }
    azurerm = {
      source = "hashicorp/azurerm"
      version = ">2.69.0"
    }
}
}

provider "azurerm" {
  features {
    resource_group {
      prevent_deletion_if_contains_resources = false  
    }
  }
  subscription_id = "xxx-xx-xx"
}

data "azurerm_vmware_private_cloud" "avs-pc-01" {
  name                = "name"
  location            = "region"
  resource_group_name = "resource group name"
}

provider "vsphere" {
  user  = "cloudadmin@vsphere.local"
  password = data.azurerm_vmware_private_cloud.avs-pc-01.vcenter_password
  vsphere_server       = data.azurerm_vmware_private_cloud.avs-pc-01.vcsa_endpoint
  allow_unverified_ssl = true
  client_debug = false
  alias = "vc01"
}

data "vsphere_datacenter" "dc1" {
  provider = vsphere.vc01
}

Debug Output/Panic Output

│ Error: Unsupported attribute
│ 
│   on main.tf line 34, in provider "vsphere":
│   34:   password             = data.azurerm_vmware_private_cloud.avs-pc-01.vcenter_password

Expected Behaviour

the password should have been available

Actual Behaviour

the provider does not export this

Steps to Reproduce

terraform apply

Important Factoids

no

References

no

@jiaweitao001
Copy link
Contributor

Hi @khensler-msft , thanks for opening the issue.
Currently, azurerm_vmware_private_cloud does not have this vcenter_password as an output. We would like to provide it but there's some quota issue on our test node, so unfortunately, we do not have an ETA for this. We will keep you posted here. Thanks.

@khensler-msft
Copy link
Author

if you need access to a cloud or need help with quota feel free to reach out to me internally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants