Table of Contents |
---|
...
Intro
...
...
Create VM
Code Block | ||
---|---|---|
| ||
az vm create --name myVM --resource-group 5ed7b505-285d-4597-a427-95b0791e4df0 --image Win2016Datacenter --size Standard_DS2_v2 --location eastus --admin-username azureuser |
...
Installing RDP / GUI In Linux VMs
...
Programmatically
...
VM Extensions
Learn
- Nicolas Prigent's "Azure and Windows PowerShell: Using VM Extensions"
...
Execute Script To Turn On IIS
From MS' learning program this command downloads and execute a PowerShell script to enable IIS: Introduction to Azure
Code Block | ||
---|---|---|
| ||
az vm extension set --resource-group 5ed7b505-285d-4597-a427-95b0791e4df0 --vm-name myVM --name CustomScriptExtension --publisher Microsoft.Compute \
--settings '{"fileUris":["https://raw.githubusercontent.com/MicrosoftDocs/mslearn-welcome-to-azure/master/configure-iis.ps1"]}' \
--protected-settings '{"commandToExecute": "powershell -ExecutionPolicy Unrestricted -File configure-iis.ps1"}' |
Open port 80 in the VM
Code Block | ||
---|---|---|
| ||
az vm open-port --name myVM --resource-group 5ed7b505-285d-4597-a427-95b0791e4df0 --port 80 |
...
Resize VM
Code Block | ||
---|---|---|
| ||
az vm resize --resource-group 5ed7b505-285d-4597-a427-95b0791e4df0 --name myVM --size Standard_DS3_v2 |
...
Related Articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...