Last active
July 11, 2021 05:59
-
-
Save subhendu-de/5ec383d35edeecc845ce6a1ef27821ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Use az cli version 2.14.0 | |
REM Log in to Azure and authenticate interactively | |
az login | |
REM Create the Azure linux vm with default public key id_rsa.pub | |
REM The resource group myResourceGroups should exists else create it | |
az vm create ^ | |
--resource-group myResourceGroups ^ | |
--name ubuntu-vm-20102020 ^ | |
--image UbuntuLTS ^ | |
--admin-username azureuser ^ | |
--ssh-key-values .ssh\id_rsa.pub | |
REM Create the Azure linux vm with specific public key ubuntu.pub | |
REM The resource group myResourceGroups should exists else create it | |
az vm create ^ | |
--resource-group myResourceGroups ^ | |
--name ubuntu-vm-20102020 ^ | |
--image UbuntuLTS ^ | |
--admin-username azureuser ^ | |
--ssh-key-values .ssh\ubuntu.pub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment