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

Bug in the new version: 1.15, while provisioning Scaleset it's asking os.profile.admin_password when "disable_password_authentication = true" #1956

Closed
vijayakrishnarg1 opened this issue Sep 20, 2018 · 5 comments · Fixed by #1958
Assignees
Labels
bug service/vmss Virtual Machine Scale Sets
Milestone

Comments

@vijayakrishnarg1
Copy link

os_profile {
computer_name_prefix = "testcompute"
admin_username = "${var.user["name"]}"
admin_password = ""
}

os_profile_linux_config {
disable_password_authentication = true
ssh_keys {
path = "/home/${var.user["name"]}/.ssh/authorized_keys"
key_data = "${var.user["sshcert"]}"
}
}

@vijayakrishnarg1
Copy link
Author

Error: azurerm_virtual_machine_scale_set.virtual_machine_scale_set: os_profile.0.admin_password must not be empty

@vijayakrishnarg1
Copy link
Author

When we explicitly mention provider version = 1.14 it works.

provider "azurerm" {
subscription_id = "${var.arm_subscription_id}"
client_id = "${var.arm_client_id}"
client_secret = "${var.arm_client_secret}"
tenant_id = "${var.arm_tenant_id}"
version = "1.14"
}

@katbyte
Copy link
Collaborator

katbyte commented Sep 20, 2018

Hi @vijayakrishnarg1,

I have opened a PR #1958 making this property optional for release in 1.16. Until then you I believe you should be able to just put in any password and still have password auth disabled.

@tombuildsstuff
Copy link
Contributor

hey @vijayakrishnarg1

Just to let you know that this fix has now been released in v1.16 of the AzureRM Provider (here's the full changelog](https://github.com/terraform-providers/terraform-provider-azurerm/blob/v1.16.0/CHANGELOG.md)). You can upgrade to to this version by specifying it in your provider block:

provider "azurerm" {
  version = "=1.16.0"
}

... and then running terraform init -upgrade :)

Thanks!

@ghost
Copy link

ghost commented Mar 6, 2019

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 and limited conversation to collaborators Mar 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug service/vmss Virtual Machine Scale Sets
Projects
None yet
3 participants