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

AKS Subnet is not available in output #7498

Closed
aristosvo opened this issue Feb 22, 2020 · 3 comments
Closed

AKS Subnet is not available in output #7498

aristosvo opened this issue Feb 22, 2020 · 3 comments
Labels
AKS customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library.

Comments

@aristosvo
Copy link

Bug Report

  • path: /services/containerservice/mgmt/2019-10-01/containerservice
  • SDK version: v39.2.0
  • What happened?
    Subnet ID is not exposed
  • What did you expect or want to happen?
    I expected to have a Subnet ID exposed if I request my AKS cluster state
  • How can we reproduce it?
    az aks list or terraform:
data "azurerm_kubernetes_cluster" "aks" {
  name                = "aks"
  resource_group_name = aks-rg
}

output "subnet" {
    value = data.azurerm_kubernetes_cluster.aks.agent_pool_profile.0.vnet_subnet_id
}
  • Anything we should know about your environment.
@ArcturusZhang ArcturusZhang added customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. labels Feb 24, 2020
@ArcturusZhang
Copy link
Member

Hi @aristosvo thanks for this issue.
I assume you are talking about the Get method of ManagedClustersClient?
It would help a lot if you can paste the log of terraform, or just append a --debug parameter to your azure cli command, to check whether the actual rest api response contains the field you want.
The management plane of go SDK is auto-generated from the rest api specs, if the rest api will not return the value you wanted, I could not help you from the SDK side.

@ArcturusZhang
Copy link
Member

After a brief search, would these two meet your requirement?

  1. VnetSubnetID *string `json:"vnetSubnetID,omitempty"`
  2. VnetSubnetID *string `json:"vnetSubnetID,omitempty"`

@aristosvo
Copy link
Author

Yes, it meets my requirements, if these were always filled. I've opened an issue here to check why these fields are not filled in the latest AKS clusters I created

@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
AKS customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

No branches or pull requests

2 participants