I'm following the following to use Azure CLI to open ports
https://docs.microsoft.com/en-us/azure/virtual-machines/linux/nsg-quickstart
I.e., the command,
az vm open-port --resource-group myResourceGroup --name myVM --port 80
works fine. However, when I try to open up the next port, 21, I got this:
Security rule open-port-80 conflicts with rule open-port-21. Rules cannot have the same Priority and Direction.
So
- how do I open a bunch of ports (not just one) to my VM using Azure CLI?
- how do I add more ports to the already opened set of ports to my VM using Azure CLI?
thx