-
-
Save andreaswasita/cdbbb668f4530f9e5dec 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
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