You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* azurerm_kubernetes_cluster.main: Error creating/updating Managed Kubernetes Cluster "myCluster" (Resource Group "myResourceGroup"): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="LinkedInvalidPropertyId" Message="Property id '' at path 'properties.addonProfiles.omsagent.config.logAnalyticsWorkspaceResourceID' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'."
Steps to Reproduce
Create cluster with terraform
Go to Azure Portal, change your service principal client secret
Run terraform plan and try to apply it.
I have mentioned this in my other issue here #2993 and also in AKS github issue #3239 where the author got the same error performing a different operation.
The text was updated successfully, but these errors were encountered:
I don't believe the error you're seeing @guitmz is related to the actual issue.
Currently both service_principal's client_id and client_secret have ForceNew set to True since previously AKS didn't allow for updating the SP - however now one can (see below), and the azurerm provider should be updated to support this as well.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
Mar 29, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform (and AzureRM Provider) Version
terraform
v0.11.7azurerm
1.25.0Affected Resource(s)
azurerm_kubernetes_cluster
Terraform Configuration Files
Expected Behavior
Client secret should be changed. I imagine terraform should do something equivalent to this: https://docs.microsoft.com/en-us/azure/aks/update-credentials#update-aks-cluster-with-new-credentials
By the way, following the steps in the link above and changing the service principal secret using the CLI works fine.
Actual Behavior
Terraform tries change the service principal secret
And fails with:
Steps to Reproduce
terraform plan
and try to apply it.I have mentioned this in my other issue here #2993 and also in AKS github issue #3239 where the author got the same error performing a different operation.
The text was updated successfully, but these errors were encountered: