protected override void Execute() { string confirmString; TableServiceWritableSettings settings = Tools.ToSettingsObject <SetTableService, TableServiceWritableSettings>(this, out confirmString); if (ShouldProcess( Resources.SetServiceDescription.FormatInvariantCulture(Resources.TableService, confirmString), Resources.SetServiceWarning.FormatInvariantCulture(Resources.TableService, confirmString), Resources.ShouldProcessCaption)) { TableServiceGetResponse result = Client.TableService.Patch(ResourceGroupName, FarmName, new TableServicePatchParameters { TableService = new TableServiceRequest { Settings = settings } }); WriteObject(new TableServiceResponse(result.Resource)); } }
protected override void Execute() { TableServiceGetResponse result = Client.TableService.Get(ResourceGroupName, FarmName); WriteObject(new TableServiceResponse(result.Resource)); }