public override void ExecuteCmdlet() { if (String.IsNullOrEmpty(Name)) { return; } CloudQueue queue = Channel.GetQueueReference(Name); SharedAccessQueuePolicy policy = new SharedAccessQueuePolicy(); bool shouldSetExpiryTime = SasTokenHelper.ValidateQueueAccessPolicy(Channel, queue.Name, policy, accessPolicyIdentifier); SetupAccessPolicy(policy, shouldSetExpiryTime); string sasToken = queue.GetSharedAccessSignature(policy, accessPolicyIdentifier, Protocol, Util.SetupIPAddressOrRangeForSAS(IPAddressOrRange)); if (FullUri) { string fullUri = queue.Uri.ToString() + sasToken; WriteObject(fullUri); } else { WriteObject(sasToken); } }