Skip to content

Instantly share code, notes, and snippets.

@andreaswasita
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreaswasita/cdbbb668f4530f9e5dec to your computer and use it in GitHub Desktop.
Save andreaswasita/cdbbb668f4530f9e5dec to your computer and use it in GitHub Desktop.
Import-module Azure
$subscription = Read-Host -Prompt 'Microsoft Azure Subscription:'
Select-azuresubscription -Default -SubscriptionName $subscription
$service = Read-Host -Prompt 'Azure Service Name:'
$name = Read-Host -Prompt 'Azure VM Name:'
$ip = Read-Host -Prompt 'Azure Internal IP Address:'
Get-AzureVM -ServiceName $service -Name $vm | Set-AzureStaticVNetIP -IPAddress $ip | Update-AzureVM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment