-
-
Save johnlokerse/84556347bf7722649e2206a2e372b7a3 to your computer and use it in GitHub Desktop.
This file contains 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
[string] $virtualMachineName = "vm-euw-blogpost-webserver01"; | |
[string] $resourceGroupName = "rg-blogpost" | |
az vm open-port --name $virtualMachineName | |
--port 22 | |
--priority 150 | |
--nsg-name nsg-blogpost | |
--resource-group $resourceGroupName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment