public override void ExecuteCmdlet()
 {
     ConfirmAction(
         Force.IsPresent,
         string.Format(Resources.RemoveAzureBGPPeeringWarning, ServiceKey),
         Resources.RemoveAzureBGPPeeringMessage,
         ServiceKey.ToString(),
         () =>
     {
         if (PeerAddressType == BgpPeerAddressType.All || AccessType != BgpPeeringAccessType.Microsoft)
         {
             if (!ExpressRouteClient.RemoveAzureBGPPeering(ServiceKey, AccessType, BgpPeerAddressType.All))
             {
                 throw new Exception(Resources.RemoveAzureBGPPeeringFailed);
             }
             else
             {
                 WriteVerboseWithTimestamp(Resources.RemoveAzureBGPPeeringSucceeded, ServiceKey);
                 if (PassThru.IsPresent)
                 {
                     WriteObject(true);
                 }
             }
         }
         else
         {
             if (!ExpressRouteClient.RemoveAzureBGPPeering(ServiceKey, AccessType, (BgpPeerAddressType)PeerAddressType))
             {
                 throw new Exception(Resources.RemoveAzureBGPPeeringFailed);
             }
             else
             {
                 WriteVerboseWithTimestamp(Resources.RemoveAzureBGPPeeringFailed, ServiceKey);
                 if (PassThru.IsPresent)
                 {
                     WriteObject(true);
                 }
             }
         }
     });
 }