microsoft / bedrock

Automation for Production Kubernetes Clusters with a GitOps Workflow
MIT License
129 stars 12 forks source link

Invalid length of admin password #1452

Closed amit1411 closed 3 years ago

amit1411 commented 3 years ago

containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="WindowsProfilePasswordInvalid" Message="Invalid adminPassword. Error: Length of password is invalid. Required length: [14, 123]. Minimum password length required by AKS for AzSecPack is longer. Please see https://docs.microsoft.com/en-us/rest/api/compute/virtualmachinescalesets/createorupdate#virtualmachinescalesetosprofile

To Reproduce:

Deploy the cluster using the bedrock templates

Expected behavior:

The cluster should be deployed

Screenshots:

Additional context:

Does this require updates to documentation?:

cannibal-kush commented 3 years ago

I can confirm I am having this exact issue too :(

amit1411 commented 3 years ago

I can confirm I am having this exact issue too :(

For a workaround i changed the admin password to more than 14 characters in main.tf and it worked but yes a change in code needs to be done.

timfpark commented 3 years ago

I was able to repro this. Looking at fix.

timfpark commented 3 years ago

Fixed in 3c74110207c095173fba42bfbb3ec0b82615a0b0.

timfpark commented 3 years ago

Windows profile block is now unnecessary, so removed it in 724861cb0a66084da788f562b7ad14801882ec7a