Skip to content

Commit ee0abd3

Browse files
committed
Change Set-AzureStorageServiceProperty to Update-AzureStorageServiceProperty, and fix help
1 parent e7acd29 commit ee0abd3

File tree

6 files changed

+25
-12
lines changed

6 files changed

+25
-12
lines changed

src/Storage/Azure.Storage.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ CmdletsToExport = 'Get-AzureStorageTable', 'New-AzureStorageTableSASToken',
116116
'Start-AzureStorageBlobCopy',
117117
'Start-AzureStorageBlobIncrementalCopy',
118118
'Stop-AzureStorageBlobCopy',
119-
'Set-AzureStorageServiceProperty',
119+
'Update-AzureStorageServiceProperty',
120120
'Get-AzureStorageServiceProperty'
121121

122122
# Variables to export from this module

src/Storage/ChangeLog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
## Current Release
2121
* Add cmdlets to get and set Storage service properties
2222
- Get-AzureStorageServiceProperty
23-
- Set-AzureStorageServiceProperty
23+
- Update-AzureStorageServiceProperty
2424

2525
## Version 4.0.2
2626
* Upgrade to Azure Storage Client Library 8.6.0 and Azure Storage DataMovement Library 0.6.5

src/Storage/Commands.Storage/Common/Cmdlet/SetAzureStorageServiceProperties.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ namespace Microsoft.WindowsAzure.Commands.Storage.Common.Cmdlet
2323
/// <summary>
2424
/// Modify Azure Storage service properties
2525
/// </summary>
26-
[Cmdlet(VerbsCommon.Set, StorageNouns.StorageServiceProperty, SupportsShouldProcess = true), OutputType(typeof(PSSeriviceProperties))]
27-
public class SetAzureStorageServicePropertyCommand : StorageCloudBlobCmdletBase
26+
[Cmdlet(VerbsData.Update, StorageNouns.StorageServiceProperty, SupportsShouldProcess = true), OutputType(typeof(PSSeriviceProperties))]
27+
public class UpdateAzureStorageServicePropertyCommand : StorageCloudBlobCmdletBase
2828
{
2929
[Parameter(Mandatory = true, Position = 0, HelpMessage = GetAzureStorageServiceLoggingCommand.ServiceTypeHelpMessage)]
3030
public StorageServiceType ServiceType { get; set; }
@@ -41,7 +41,7 @@ public class SetAzureStorageServicePropertyCommand : StorageCloudBlobCmdletBase
4141
public override int? ClientTimeoutPerRequest { get; set; }
4242
public override int? ConcurrentTaskCount { get; set; }
4343

44-
public SetAzureStorageServicePropertyCommand()
44+
public UpdateAzureStorageServicePropertyCommand()
4545
{
4646
EnableMultiThread = false;
4747
}

src/Storage/Commands.Storage/help/Azure.Storage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,6 @@ Modifies logging for Azure Storage services.
176176
### [Set-AzureStorageServiceMetricsProperty](Set-AzureStorageServiceMetricsProperty.md)
177177
Modifies metrics properties for the Azure Storage service.
178178

179-
### [Set-AzureStorageServiceProperty](Set-AzureStorageServiceProperty.md)
180-
Modifies the properties for the Azure Storage service.
181-
182179
### [Set-AzureStorageShareQuota](Set-AzureStorageShareQuota.md)
183180
Sets the storage capacity for a share.
184181

@@ -203,3 +200,6 @@ Stops a copy operation.
203200
### [Stop-AzureStorageFileCopy](Stop-AzureStorageFileCopy.md)
204201
Stops a copy operation to the specified destination file.
205202

203+
### [Update-AzureStorageServiceProperty](Update-AzureStorageServiceProperty.md)
204+
Modifies the properties for the Azure Storage service.
205+

src/Storage/Commands.Storage/help/Get-AzureStorageServiceProperty.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ The **Get-AzureStorageServiceProperty** cmdlet gets the properties for Azure Sto
2525
### Example 1: Get Azure Storage services property of the Blob service
2626
```
2727
C:\PS>Get-AzureStorageServiceProperty -ServiceType Blob
28+
29+
Logging.Version : 1.0
30+
Logging.LoggingOperations : Read, Write
31+
Logging.RetentionDays :
32+
HourMetrics.Version : 1.0
33+
HourMetrics.MetricsLevel : ServiceAndApi
34+
HourMetrics.RetentionDays : 7
35+
MinuteMetrics.Version : 1.0
36+
MinuteMetrics.MetricsLevel : None
37+
MinuteMetrics.RetentionDays :
38+
Cors :
39+
DefaultServiceVersion : 2017-04-17
40+
2841
```
2942

3043
This command gets DefaultServiceVersion property of the Blob service.

src/Storage/Commands.Storage/help/Set-AzureStorageServiceProperty.md renamed to src/Storage/Commands.Storage/help/Update-AzureStorageServiceProperty.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@ online version:
55
schema: 2.0.0
66
---
77

8-
# Set-AzureStorageServiceProperty
8+
# Update-AzureStorageServiceProperty
99

1010
## SYNOPSIS
1111
Modifies the properties for the Azure Storage service.
1212

1313
## SYNTAX
1414

1515
```
16-
Set-AzureStorageServiceProperty [-ServiceType] <StorageServiceType> [-DefaultServiceVersion <String>]
16+
Update-AzureStorageServiceProperty [-ServiceType] <StorageServiceType> [-DefaultServiceVersion <String>]
1717
[-PassThru] [-Context <IStorageContext>] [-WhatIf] [-Confirm] [<CommonParameters>]
1818
```
1919

2020
## DESCRIPTION
21-
The **Set-AzureStorageServiceProperty** cmdlet modifies the properties for the Azure Storage service.
21+
The **Update-AzureStorageServiceProperty** cmdlet modifies the properties for the Azure Storage service.
2222

2323
## EXAMPLES
2424

2525
### Example 1: Set Blob Service DefaultServiceVersion to 2017-04-17
2626
```
27-
C:\PS>Set-AzureStorageServiceProperty -ServiceType Blob -DefaultServiceVersion 2017-04-17
27+
C:\PS>Update-AzureStorageServiceProperty -ServiceType Blob -DefaultServiceVersion 2017-04-17
2828
```
2929

3030
This command Set the DefaultServiceVersion of Blob Service to 2017-04-17

0 commit comments

Comments
 (0)