Skip to content

Commit

Permalink
Fix length of Windows Profile password
Browse files Browse the repository at this point in the history
  • Loading branch information
Aris van Ommeren committed Feb 3, 2021
1 parent 93f8876 commit acc5547
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ resource "azurerm_kubernetes_cluster" "test" {
windows_profile {
admin_username = "azureuser"
admin_password = "P@55W0rd1234!"
admin_password = "P@55W0rd1234!h@2h1C0rP"
}
# the default node pool /has/ to be Linux agents - Windows agents can be added via the node pools resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ func resourceKubernetesCluster() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Sensitive: true,
ValidateFunc: validation.StringIsNotEmpty,
ValidateFunc: validation.StringLenBetween(14, 123),
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/kubernetes_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ A `windows_profile` block supports the following:

* `admin_username` - (Required) The Admin Username for Windows VMs.

* `admin_password` - (Required) The Admin Password for Windows VMs.
* `admin_password` - (Required) The Admin Password for Windows VMs. Length must be between 14 and 123 characters.


## Attributes Reference
Expand Down

0 comments on commit acc5547

Please sign in to comment.