diff --git a/src/EventGrid/EventGrid.Test/EventGrid.Test.csproj b/src/EventGrid/EventGrid.Test/EventGrid.Test.csproj index 750cd107578c..252845bb3ea2 100644 --- a/src/EventGrid/EventGrid.Test/EventGrid.Test.csproj +++ b/src/EventGrid/EventGrid.Test/EventGrid.Test.csproj @@ -15,7 +15,7 @@ - + \ No newline at end of file diff --git a/src/Storage/Storage.Management.Test/Storage.Management.Test.csproj b/src/Storage/Storage.Management.Test/Storage.Management.Test.csproj index b4d6f07a65f0..4535fd375b5c 100644 --- a/src/Storage/Storage.Management.Test/Storage.Management.Test.csproj +++ b/src/Storage/Storage.Management.Test/Storage.Management.Test.csproj @@ -11,7 +11,7 @@ - + \ No newline at end of file diff --git a/src/Storage/Storage.Management/ChangeLog.md b/src/Storage/Storage.Management/ChangeLog.md index b47c2e8c5467..cc4351fcc881 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -24,10 +24,12 @@ - New-AzStorageBlobSASToken * Support revoke Storage Account User Delegation Keys, so all Idenity SAS tokens are revoked - Revoke-AzStorageAccountUserDelegationKeys -* Upgrade to Microsoft.Azure.Management.Storage 14.1.0, to support new API version 2019-06-01. -* Support Share QuotaGiB more than 5120, in Management plane File Share cmdlets +* Upgrade to Microsoft.Azure.Management.Storage 14.2.0, to support new API version 2019-06-01. +* Support Share QuotaGiB more than 5120 in Management plane File Share cmdlets, and add parameter alias "Quota" to parameter "QuotaGiB" - New-AzRmStorageShare - Update-AzRmStorageShare +* Add parameter alias "QuotaGiB" to parameter "Quota" + - Set-AzStorageShareQuota * Fix the issue that Set-AzStorageContainerAcl can clean up the stored Access Policy - Set-AzStorageContainerAcl diff --git a/src/Storage/Storage.Management/File/NewAzureStorageShare.cs b/src/Storage/Storage.Management/File/NewAzureStorageShare.cs index 11ffbd1a552b..bf3f07ae09c2 100644 --- a/src/Storage/Storage.Management/File/NewAzureStorageShare.cs +++ b/src/Storage/Storage.Management/File/NewAzureStorageShare.cs @@ -66,6 +66,7 @@ public class NewAzureStorageShareCommand : StorageFileBaseCmdlet [ValidateNotNullOrEmpty] public string Name { get; set; } + [Alias("Quota")] [Parameter(Mandatory = false, HelpMessage = "Share Quota in Gibibyte.")] public int QuotaGiB diff --git a/src/Storage/Storage.Management/File/UpdateAzureStorageShare.cs b/src/Storage/Storage.Management/File/UpdateAzureStorageShare.cs index 6a3e161da19e..9e9434f35a3a 100644 --- a/src/Storage/Storage.Management/File/UpdateAzureStorageShare.cs +++ b/src/Storage/Storage.Management/File/UpdateAzureStorageShare.cs @@ -97,6 +97,7 @@ public class UpdateAzureStorageShareCommand : StorageFileBaseCmdlet [ValidateNotNullOrEmpty] public PSShare InputObject { get; set; } + [Alias("Quota")] [Parameter(Mandatory = false, HelpMessage = "Share Quota in Gibibyte.")] public int QuotaGiB diff --git a/src/Storage/Storage.Management/Storage.Management.csproj b/src/Storage/Storage.Management/Storage.Management.csproj index 6af3ba1c3e09..f018627f2afe 100644 --- a/src/Storage/Storage.Management/Storage.Management.csproj +++ b/src/Storage/Storage.Management/Storage.Management.csproj @@ -14,7 +14,7 @@ $(LegacyAssemblyPrefix)$(PsModuleName) - + diff --git a/src/Storage/Storage.Management/help/Get-AzRmStorageShare.md b/src/Storage/Storage.Management/help/Get-AzRmStorageShare.md index c3613366c464..c3478636537a 100644 --- a/src/Storage/Storage.Management/help/Get-AzRmStorageShare.md +++ b/src/Storage/Storage.Management/help/Get-AzRmStorageShare.md @@ -97,7 +97,7 @@ Aliases: N, ShareName Required: False Position: Named Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -112,7 +112,7 @@ Aliases: Required: True Position: 0 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -142,7 +142,7 @@ Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) +Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` @@ -157,7 +157,7 @@ Aliases: AccountName Required: True Position: 1 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Storage/Storage.Management/help/New-AzRmStorageShare.md b/src/Storage/Storage.Management/help/New-AzRmStorageShare.md index 62908fc7b282..6cd0a5c1be7a 100644 --- a/src/Storage/Storage.Management/help/New-AzRmStorageShare.md +++ b/src/Storage/Storage.Management/help/New-AzRmStorageShare.md @@ -36,7 +36,7 @@ PS C:\>New-AzRmStorageShare -ResourceGroupName "myResourceGroup" -StorageAccount Name StorageAccountName ResourceGroupName Etag QuotaGiB LastModifiedTime ---- ------------------ ----------------- ---- -------- ---------------- -myshare myStorageAccount myResourceGroup +myshare myStorageAccount myResourceGroup ``` This command creates a Storage file share with metadata and share quota as 100 GiB. @@ -47,7 +47,7 @@ Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -StorageAccountName "m Name StorageAccountName ResourceGroupName Etag QuotaGiB LastModifiedTime ---- ------------------ ----------------- ---- -------- ---------------- -myshare myStorageAccount myResourceGroup +myshare myStorageAccount myResourceGroup ``` This command creates a Storage file share with Storage account object and share name. @@ -95,7 +95,7 @@ Aliases: N, ShareName Required: True Position: Named Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -105,7 +105,7 @@ Share Quota in Gibibyte. ```yaml Type: System.Int32 Parameter Sets: (All) -Aliases: +Aliases: Quota Required: False Position: Named @@ -125,7 +125,7 @@ Aliases: Required: True Position: 0 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -140,7 +140,7 @@ Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) +Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` @@ -155,7 +155,7 @@ Aliases: AccountName Required: True Position: 1 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Storage/Storage.Management/help/Remove-AzRmStorageShare.md b/src/Storage/Storage.Management/help/Remove-AzRmStorageShare.md index 3a8b3daae712..155edbfcc2ef 100644 --- a/src/Storage/Storage.Management/help/Remove-AzRmStorageShare.md +++ b/src/Storage/Storage.Management/help/Remove-AzRmStorageShare.md @@ -106,7 +106,7 @@ Aliases: Share Required: True Position: Named Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) +Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` @@ -121,7 +121,7 @@ Aliases: N, ShareName Required: True Position: Named Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -152,7 +152,7 @@ Aliases: Required: True Position: 0 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -182,7 +182,7 @@ Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) +Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` @@ -197,7 +197,7 @@ Aliases: AccountName Required: True Position: 1 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Storage/Storage.Management/help/Set-AzStorageShareQuota.md b/src/Storage/Storage.Management/help/Set-AzStorageShareQuota.md index 6e45d30e796f..d492b5d3d8a8 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageShareQuota.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageShareQuota.md @@ -115,7 +115,7 @@ See the quota limitation in https://docs.microsoft.com/en-us/azure/azure-subscri ```yaml Type: System.Int32 Parameter Sets: (All) -Aliases: +Aliases: QuotaGiB Required: True Position: 1 diff --git a/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md b/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md index 3679b6ed7289..7b40e4a2ac85 100644 --- a/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md +++ b/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md @@ -110,7 +110,7 @@ Aliases: Share Required: True Position: Named Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) +Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` @@ -140,7 +140,7 @@ Aliases: N, ShareName Required: True Position: Named Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -150,7 +150,7 @@ Share Quota in Gibibyte. ```yaml Type: System.Int32 Parameter Sets: (All) -Aliases: +Aliases: Quota Required: False Position: Named @@ -170,7 +170,7 @@ Aliases: Required: True Position: 0 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -200,7 +200,7 @@ Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByPropertyName, ByValue) +Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` @@ -215,7 +215,7 @@ Aliases: AccountName Required: True Position: 1 Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/src/Storage/Storage/File/Cmdlet/SetAzureStorageShareQuota.cs b/src/Storage/Storage/File/Cmdlet/SetAzureStorageShareQuota.cs index 8a9dc303fe4f..85d30801d3cf 100644 --- a/src/Storage/Storage/File/Cmdlet/SetAzureStorageShareQuota.cs +++ b/src/Storage/Storage/File/Cmdlet/SetAzureStorageShareQuota.cs @@ -41,6 +41,7 @@ public class SetAzureStorageShareQuota : AzureStorageFileCmdletBase [ValidateNotNull] public CloudFileShare Share { get; set; } + [Alias("QuotaGiB")] [Parameter(Position = 1, Mandatory = true, HelpMessage = "Share Quota")] public int Quota { get; set; }