public override void Execute()
{
base.Execute();
WriteWarning("The output object type of this cmdlet will be modified in a future release.");
var present = this.IsVirtualNetworkGatewayConnectionPresent(this.ResourceGroupName, this.Name);
ConfirmAction(
Force.IsPresent,
string.Format(Microsoft.Azure.Commands.Network.Properties.Resources.OverwritingResource, Name),
Microsoft.Azure.Commands.Network.Properties.Resources.OverwritingResourceMessage,
Name,
() =>
{
var virtualNetworkGatewayConnection = CreateVirtualNetworkGatewayConnection();
WriteObject(virtualNetworkGatewayConnection);
},
() => present);
}