Azure / Azure/azure-quickstart-templates

linuxVM-ssh-invalid Key

Open
#4,169 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

[linuxVM-ssh-invalid Key

### Issue Details
Error: Error applying plan:

1 error(s) occurred:

* azurerm_virtual_machine.demoterraformvm: 1 error(s) occurred:

* azurerm_virtual_machine.demoterraformvm: compute.VirtualMachinesClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidParameter" Message="The value of parameter linuxConfiguration.ssh.publicKeys.keyData is invalid."

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named. Start at the azurerm_virtual_machine.demoterraformvm create/update entry point and inspect the linuxConfiguration.ssh.publicKeys.keyData value reported by Azure; done means the plan applies without the InvalidParameter error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, linux, terraform
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.