Created
November 26, 2018 18:40
-
-
Save briglx/d93716010f84da0def5ea3a135131969 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
try { | |
$null = Get-AzureRmSubscription | |
} | |
catch { | |
Login-AzureRmAccount | |
} | |
try { | |
$null = Get-AzureSubscription | |
} | |
catch { | |
Login-AzureAccount | |
} | |
$subid = <YOUR SUBSCRIPTIONID> | |
Select-AzureSubscription -SubscriptionId $subid | |
Select-AzureRmSubscription -SubscriptionId $subid | |
$xml = Get-AzureVNetConfig | |
$xml.XMLConfiguration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment