public override void ExecuteCmdlet()
        {
            var circuit = ExpressRouteClient.NewAzureDedicatedCircuit(CircuitName, Bandwidth, Location,
                                                                      ServiceProviderName);

            WriteObject(circuit);
        }
Beispiel #2
0
 public override void ExecuteCmdlet()
 {
     ConfirmAction(
         Force.IsPresent,
         string.Format(Resources.NewAzureDedicatedCircuitWarning, CircuitName, ServiceProviderName),
         string.Format(Resources.NewAzureDedicatedCircuitMessage, CircuitName, ServiceProviderName),
         CircuitName + " " + ServiceProviderName,
         () =>
     {
         var circuit = ExpressRouteClient.NewAzureDedicatedCircuit(CircuitName, Bandwidth, Location,
                                                                   ServiceProviderName, Sku, BillingType);
         WriteVerboseWithTimestamp(Resources.NewAzureDedicatedCircuitSucceeded);
         WriteObject(circuit);
     });
 }