Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to update SSH key on VMSS

See original GitHub issue

After 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/\"}"

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:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

boumenotcommented, Dec 18, 2017

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.

agolomoodysaadacommented, Dec 18, 2017

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found