public override void ExecuteCmdlet()
 {
     ConfirmAction(
         Force.IsPresent,
         string.Format(Resources.RemoveNetworkSecurityRuleWarning, Name, NetworkSecurityGroup.GetInstance().Name),
         Resources.RemoveNetworkSecurityRuleWarning,
         Name,
         () =>
     {
         Client.RemoveNetworkSecurityRule(NetworkSecurityGroup.GetInstance().Name, Name);
         WriteObject(Client.GetNetworkSecurityGroup(NetworkSecurityGroup.GetInstance().Name, true));
     });
 }
        public override void ExecuteCmdlet()
        {
            Client.SetNetworkSecurityRule(
                NetworkSecurityGroup.GetInstance().Name,
                Name,
                Type,
                Priority,
                Action,
                SourceAddressPrefix,
                SourcePortRange,
                DestinationAddressPrefix,
                DestinationPortRange,
                Protocol);

            WriteObject(Client.GetNetworkSecurityGroup(NetworkSecurityGroup.GetInstance().Name, true));
        }