Skip to content

Commit

Permalink
Terraform | Azure VMSS | support 'empty password'
Browse files Browse the repository at this point in the history
  • Loading branch information
chkp-yairra authored Aug 21, 2023
1 parent 54bc4b0 commit 18240a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion terraform/azure/vmss-existing-vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module "common" {
source = "../modules/common"
resource_group_name = var.resource_group_name
location = var.location
admin_password = var.admin_password
admin_password = var.authentication_type == "SSH Public Key" ? random_id.random_id.hex : var.admin_password
installation_type = var.installation_type
template_name = var.template_name
template_version = var.template_version
Expand Down
2 changes: 1 addition & 1 deletion terraform/azure/vmss-new-vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module "common" {
source = "../modules/common"
resource_group_name = var.resource_group_name
location = var.location
admin_password = var.admin_password
admin_password = var.authentication_type == "SSH Public Key" ? random_id.random_id.hex : var.admin_password
installation_type = var.installation_type
template_name = var.template_name
template_version = var.template_version
Expand Down

0 comments on commit 18240a8

Please sign in to comment.