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

Validation of windowsProfile password breaks on existing clusters with shorter passwords #10815

Closed
feliperoveran opened this issue Mar 3, 2021 · 2 comments · Fixed by #10816

Comments

@feliperoveran
Copy link
Contributor

The validation introduced by #10452 breaks updates on existing clusters.

Also, changing the windows password is not supported by AKS, so clusters created with shorter password cannot be updated with when using azurerm > 2.46

Error message when running terraform plan on an existing cluster:

expected length of windows_profile.0.admin_password to be in the range (14 - 123), got <the-actual-password>

When trying to update the password:

Error: updating Managed Kubernetes Cluster "felipe-k8s" (Resource Group "felipe-aks-rg"): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="PropertyChangeNotAllowed" Message="Changing property 'windowsProfile.adminPassword' is not allowed." Target="windowsProfile.adminPassword"
@feliperoveran feliperoveran changed the title Validation of windowsProfile password breaks for existing clusters Validation of windowsProfile password breaks on existing clusters with shorter passwords Mar 3, 2021
@katbyte katbyte added this to the v2.50.0 milestone Mar 4, 2021
@ghost
Copy link

ghost commented Mar 5, 2021

This has been released in version 2.50.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.50.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Apr 3, 2021

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 ghost locked as resolved and limited conversation to collaborators Apr 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants