Skip to Content
Learning Microsoft Azure Storage
book

Learning Microsoft Azure Storage

by Mohamed Waly
November 2017
Intermediate to advanced
276 pages
7h 6m
English
Packt Publishing
Content preview from Learning Microsoft Azure Storage

Creating an Azure VM using the Azure CLI 2.0

Creating an Azure VM using the Azure CLI 2.0 is pretty easy, and is only one command, shown as follows:

az vm create --resource-group PacktPub --name PacktPubVMCLI --location westeurope --size Standard_DS2 --image win2016datacenter --storage-account packtpubsacli --use-unmanaged-disk --vnet-name PacktPubvNet --vnet-address-prefix 10.0.0.0/8 --subnet PacktPubSubnet --subnet-address-prefix 10.0.1.0/24 --admin-username pbuser --admin-password P@cktPub@2017
To get the available sizes of Azure VMs, run the following command: az vm list-sizes -l "the location in which you want to build your VM on".
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft Azure Storage - The Complete Guide

Microsoft Azure Storage - The Complete Guide

Vijay Saini
Learning Microsoft Azure

Learning Microsoft Azure

Jonah Carrio Andersson

Publisher Resources

ISBN: 9781785884917Other