Skip to content

Instantly share code, notes, and snippets.

@wznpp1
Created August 23, 2020 01:43
Show Gist options
  • Save wznpp1/b1190bd8b9e9c99d30ee77556cc9ac18 to your computer and use it in GitHub Desktop.
Save wznpp1/b1190bd8b9e9c99d30ee77556cc9ac18 to your computer and use it in GitHub Desktop.
#!/bin/bash
az network nic ip-config delete -g wznpp1_group -n ipconfig2 --nic-name myVMNic
az network public-ip delete -g wznpp1_group -n myPublicIP2
az network public-ip create --resource-group wznpp1_group --location eastasia --name myPublicIP2 --dns-name wznpp10 --allocation-method Static
az network nic ip-config create --resource-group wznpp1_group --nic-name myVMNic --name ipconfig2 --private-ip-address 10.0.0.5 --public-ip myPublicIP2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment