Azure/CLI: Difference between revisions
< Azure
(Die Seite wurde neu angelegt: „Category:Cloud/Azure“) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Installation of Azure CLI under Linux == | |||
<pre> | |||
sudo apt-get update | |||
sudo apt-get install curl apt-transport-https lsb-release gpg | |||
curl -sL https://packages.microsoft.com/keys/microsoft.asc | \ | |||
gpg --dearmor | \ | |||
sudo tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg > /dev/null | |||
AZ_REPO=$(lsb_release -cs) | |||
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \ | |||
sudo tee /etc/apt/sources.list.d/azure-cli.list | |||
sudo apt-get update | |||
sudo apt-get install azure-cli | |||
</pre> | |||
* testing | |||
*:<pre>az login</pre> | |||
== Snippets == | |||
* List available VM images | |||
*:<pre>az vm image list --output table</pre> | |||
* List available SKUs | |||
*:<pre>az vm image list-skus -l northurope -f Ubuntu</pre> | |||
* Disk types | |||
*:<pre>Premium_LRS, StandardSSD_LRS, Standard_LRS, UltraSSD_LRS</pre> | |||
[[Category:Cloud/Azure]] | [[Category:Cloud/Azure]] |
Latest revision as of 06:47, 18 May 2019
Installation of Azure CLI under Linux
sudo apt-get update sudo apt-get install curl apt-transport-https lsb-release gpg curl -sL https://packages.microsoft.com/keys/microsoft.asc | \ gpg --dearmor | \ sudo tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg > /dev/null AZ_REPO=$(lsb_release -cs) echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \ sudo tee /etc/apt/sources.list.d/azure-cli.list sudo apt-get update sudo apt-get install azure-cli
- testing
az login
Snippets
- List available VM images
az vm image list --output table
- List available SKUs
az vm image list-skus -l northurope -f Ubuntu
- Disk types
Premium_LRS, StandardSSD_LRS, Standard_LRS, UltraSSD_LRS