protected override void ProcessRecord() { Name = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName; this.WriteObject( ResourcesClient.FilterResourceGroups(name: this.Name, tag: null, detailed: false, location: this.Location), true); }
public override void ExecuteCmdlet() { Name = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName; this.WriteObject( ResourceManagerSdkClient.FilterResourceGroups(name: this.Name, tag: this.Tag, detailed: false, location: this.Location), true); }
public override void ExecuteCmdlet() { 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."); Name = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName; this.WriteObject( ResourcesClient.FilterResourceGroups(name: this.Name, tag: null, detailed: false, location: this.Location), true); }
protected override void ProcessRecord() { UpdatePSResourceGroupParameters parameters = new UpdatePSResourceGroupParameters { ResourceGroupName = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName, Tag = Tag, }; WriteObject(ResourcesClient.UpdatePSResourceGroup(parameters)); }
public override void ExecuteCmdlet() { Name = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName; ConfirmAction( Force.IsPresent, string.Format(ProjectResources.RemovingResourceGroup, Name), ProjectResources.RemoveResourceGroupMessage, Name, () => ResourcesClient.DeleteResourceGroup(Name)); }
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)); }
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(ProjectResources.WarnOnTags); PSUpdateResourceGroupParameters parameters = new PSUpdateResourceGroupParameters { ResourceGroupName = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName, Tag = Tag, }; WriteObject(ResourceManagerSdkClient.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)); }
protected override void OnProcessRecord() { Name = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName; ConfirmAction( Force.IsPresent, string.Format(ProjectResources.RemovingResourceGroup, Name), ProjectResources.RemoveResourceGroupMessage, Name, () => ResourceManagerSdkClient.DeleteResourceGroup(Name)); WriteObject(true); }
public override void ExecuteCmdlet() { PSUpdateResourceGroupParameters parameters = new PSUpdateResourceGroupParameters { ResourceGroupName = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName, Tag = Tag, }; var resourceGroup = ResourceManagerSdkClient.UpdatePSResourceGroup(parameters); if (resourceGroup != null) { WriteObject(resourceGroup); } }
protected override void OnProcessRecord() { PSUpdateResourceGroupParameters parameters = new PSUpdateResourceGroupParameters { ResourceGroupName = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName, Tag = Tag, }; var resourceGroup = ResourceManagerSdkClient.UpdatePSResourceGroup(parameters); if (resourceGroup != null) { WriteObject(resourceGroup); } }