Difference between revisions of "Az cli"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
``` | ``` | ||
az vm user update -u myuser -p mypass -n myvm -g $RG | az vm user update -u myuser -p mypass -n myvm -g $RG | ||
+ | az vm user update -u username --ssh-key-value "$(< ~/.ssh/id_rsa.pub)" -n MyVm -g MyResourceGroup | ||
``` | ``` | ||
+ | - https://docs.microsoft.com/en-us/cli/azure/vm/user?view=azure-cli-latest#az-vm-user-update |
Revision as of 20:18, 14 February 2022
https://docs.microsoft.com/en-us/cli/azure/use-cli-effectively
az disk list --resource-group
https://docs.microsoft.com/en-us/azure/virtual-machines/disks-incremental-snapshots?tabs=azure-cli
Disk
One Liners
az vm user update -u myuser -p mypass -n myvm -g $RG az vm user update -u username --ssh-key-value "$(< ~/.ssh/id_rsa.pub)" -n MyVm -g MyResourceGroup