Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
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
languagebash
az vm open-port  --name myVM --resource-group 5ed7b505-285d-4597-a427-95b0791e4df0 --port 80



...

Related Articles

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@3be2a6f
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "AZURE"
labelskb-how-to-article

...