public override void ExecuteCmdlet()
 {
     UpdatePSResourceGroupParameters parameters = new UpdatePSResourceGroupParameters
     {
         ResourceGroupName = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName,
         Tag = Tag,
     };
     WriteObject(ResourcesClient.UpdatePSResourceGroup(parameters));
 }
示例#2
0
        public override void ExecuteCmdlet()
        {
            UpdatePSResourceGroupParameters parameters = new UpdatePSResourceGroupParameters
            {
                ResourceGroupName = Name,
                Tag = Tag
            };

            WriteObject(ResourcesClient.UpdatePSResourceGroup(parameters));
        }
        protected override void ProcessRecord()
        {
            UpdatePSResourceGroupParameters parameters = new UpdatePSResourceGroupParameters
            {
                ResourceGroupName = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName,
                Tag = Tag,
            };

            WriteObject(ResourcesClient.UpdatePSResourceGroup(parameters));
        }
        protected override void ProcessRecord()
        {
            UpdatePSResourceGroupParameters parameters = new UpdatePSResourceGroupParameters
            {
                ResourceGroupName = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName,
                Tag = Tag,
            };

            WriteWarning("The output object of this cmdlet will be modified in a future release.");
            WriteObject(ResourcesClient.UpdatePSResourceGroup(parameters));
        }
示例#5
0
        public override void ExecuteCmdlet()
        {
            UpdatePSResourceGroupParameters parameters = new UpdatePSResourceGroupParameters
            {
                ResourceGroupName = Name,
                Tag = Tag
            };

            WriteWarning("The output object of this cmdlet will be modified in a future release.");
            WriteObject(ResourcesClient.UpdatePSResourceGroup(parameters));
        }
        public override void ExecuteCmdlet()
        {
            WriteWarning("The output object type of this cmdlet will be modified in a future release.");
            UpdatePSResourceGroupParameters parameters = new UpdatePSResourceGroupParameters
            {
                ResourceGroupName = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName,
                Tag = Tag,
            };

            WriteObject(ResourcesClient.UpdatePSResourceGroup(parameters));
        }
        public override void ExecuteCmdlet()
        {
            WriteWarning("The output object type of this cmdlet will be modified in a future release. Also, the usability of Tag parameter in this cmdlet will be modified in a future release. This will impact creating, updating and appending tags for Azure resources. For more details about the change, please visit https://github.com/Azure/azure-powershell/issues/726#issuecomment-213545494");
            UpdatePSResourceGroupParameters parameters = new UpdatePSResourceGroupParameters
            {
                ResourceGroupName = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName,
                Tag = Tag,
            };

            WriteObject(ResourcesClient.UpdatePSResourceGroup(parameters));
        }