Created
December 3, 2014 17:01
-
-
Save pcgeek86/36b3cb2a710c0f1193ab to your computer and use it in GitHub Desktop.
Create a Microsoft Azure virtual network high performance gateway
This file contains hidden or 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
# Authenticate to Microsoft Azure and import subscription details | |
$Username = '[email protected]'; | |
$GetCredential = @{ | |
Username = $Username; | |
Message = 'Please enter your Microsoft Azure password.'; | |
} | |
$AzureCredential = Get-Credential @GetCredential; | |
Add-AzureAccount -Credential $AzureCredential; | |
# Select the appropriate Microsoft Azure subscription | |
$SubscriptionName = 'Visual Studio Ultimate with MSDN'; | |
Select-AzureSubscription -SubscriptionName $SubscriptionName; | |
# Create the Microsoft Azure virtual network high performance gateway | |
$VNetGateway = @{ | |
VNetName = 'Trevor'; | |
GatewayType = 'DynamicRouting'; | |
GatewaySKU = 'HighPerformance'; | |
}; | |
New-AzureVNetGateway @VNetGateway; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment