Difference between revisions of "Az cli"

From UVOO Tech Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
# install
 +
https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt
 +
```
 +
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
 +
```
 +
 
https://docs.microsoft.com/en-us/cli/azure/use-cli-effectively
 
https://docs.microsoft.com/en-us/cli/azure/use-cli-effectively
  
Line 8: Line 14:
 
# Disk
 
# Disk
 
- https://stackoverflow.com/questions/67578747/will-i-lose-the-data-from-my-disk-if-i-switch-from-ssd-to-hdd-in-a-azure-vm
 
- https://stackoverflow.com/questions/67578747/will-i-lose-the-data-from-my-disk-if-i-switch-from-ssd-to-hdd-in-a-azure-vm
 +
 +
 +
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
 +
```
 +
- https://docs.microsoft.com/en-us/cli/azure/vm/user?view=azure-cli-latest#az-vm-user-update

Latest revision as of 20:10, 16 May 2023