Skip to content

Commit

Permalink
allow password authentication
Browse files Browse the repository at this point in the history
Co-authored-by: Franz, Felix (UIT) <[email protected]>
  • Loading branch information
Felix-Franz and Franz, Felix (UIT) authored Jun 20, 2023
1 parent 465409e commit 8e66781
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vmss.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ resource "azurerm_linux_virtual_machine_scale_set" "this" {
location = var.resource_group.location
sku = var.vmss_sku

instances = var.vmss_instances
admin_username = var.admin_username
admin_password = var.admin_password
instances = var.vmss_instances
admin_username = var.admin_username
admin_password = var.admin_password
disable_password_authentication = var.admin_password == null

dynamic "admin_ssh_key" {
for_each = var.admin_public_key != null ? [0] : []
Expand Down

0 comments on commit 8e66781

Please sign in to comment.