Skip to content

Instantly share code, notes, and snippets.

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 pcgeek86/36b3cb2a710c0f1193ab to your computer and use it in GitHub Desktop.
Save pcgeek86/36b3cb2a710c0f1193ab to your computer and use it in GitHub Desktop.
Create a Microsoft Azure virtual network high performance gateway
# Authenticate to Microsoft Azure and import subscription details
$Username = 'trevor@trevorsullivan.net';
$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