Unable to update SSH key on VMSS
See original GitHub issueAfter running
az vmss extension set \
--vmss-name myvmss \
-g myresourcegroup \
-n VMAccessForLinux \
--publisher Microsoft.OSTCExtensions \
--version 1.4 \
--protected-settings "{\"username\":\"myuser\", \"ssh_key\":\"$(cat ~/.ssh/mykey.pub)\"}"
The command stalls at - Running
indefinitely without ever returning. I was able to reproduce this on several VMSSs.
P.S. I do not have access to the VMs in the vmss so I cannot retrieve contents of the files:
- /var/log/azure/custom-script/handler.log
- /var/log/waagent.log
This used to work just fine. Any idea why the extension doesn’t work anymore?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Troubleshoot SSH connection issues to an Azure VM
How to troubleshoot issues such as 'SSH connection failed' or ... Specify the username and an SSH key or new password, then select...
Read more >Trying to Update ssh key to existing user in azure linux vm ...
I am trying to use Add-AzVMSshPublicKey cmdlet to update ssh key on existing Azure linux VM , command executed without an issue but...
Read more >Azure Linux VM SSH Error - Permission denied (publickey)
In the above section, you were able to discover which SSH public key the VM is ... az vm user update \ --resource-group...
Read more >How To RDP/SSH Into Azure VMSS VM Instances - ochzhen
To be able to connect to the VMSS we need to check that inbound NAT rules and network security group are configured correctly....
Read more >Generating an SSH Key and Using it on Azure
SSH KEYS allow us to connect to VMs without using passwords but by passing a private key that can be managed by you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The request hanging is a failure. If you cannot capture logs then I am sorry, but I cannot help you based on the information you have provided. Please reactivate if you are able to get logs.
We’re not failing. We’re just not getting any feedback whatsoever. The request is just hanging. We’re running an Ubuntu VMSS supported distro. I can’t get logs from a blackbox. Isn’t this project owned by Azure? Why go through a different channel of communication if the extension isn’t working? Does this extension for anything other than VMSSs?