Skip to content

Commit afb2e62

Browse files
committed
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
2 parents 75ae80d + ac71d7f commit afb2e62

File tree

152 files changed

+18800
-234
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+18800
-234
lines changed

ChangeLog.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
1-
## 2015.09.03 version 0.9.8
1+
## 2015.10.09 version 1.0 preview
2+
* Azure Resource Manager Management Cmdlets
3+
* New-AzureRmResourceGroup - Removed the template deployment parameters from this cmdlet. Template deployment will now be
4+
handled only through the New-AzureRmResourceGroupDeployment
5+
* Get-AzureRmResource - Will query directly against the Resource Provider. Removed parameters for tags from here. New cmdlets added for querying against the cache as listed below.
6+
* Get-AzureRmResourceGroup - Removed parameters for finding resources through tags. New cmdlet added for handling this
7+
functionality as mentioned below.
8+
* Find-AzureRmResource - Query against the cache.
9+
* Find-AzureRmResourceGroup - Tag parameter added for querying resource group containing specific tags.
10+
* Test-AzureResource - Cmdlet removed. Will be adding a better and reliable way to achieve this scenario which will be guaranteed to work against all Resource providers.
11+
* Test-AzureResourceGroup - Cmdlet removed. Will be adding a better and reliable way to achieve this scenario.
12+
* Get-AzureRmResourceProvider - This cmdlet has been renamed. Earlier it was called Get-AzureProvider. We have changed the output to include locations. Now you can use this to find out which providers and types are available for certain location.
13+
* Cmdlets added for policy
14+
* New-AzureRmPolicyDefinition, Get-AzureRmPolicyDefinition, Set-AzureRMPolicyDefinition, Remove-AzureRmPolicyDefinition
15+
* New-AzureRmPolicyAssignment, Get-AzureRmPolicyAssignment, Set-AzureRmPolicyAssignment, Remove-AzureRmPolicyAssignment
16+
* Consolidated Log cmdlets
17+
* Removed Get-AzureResourceLog, Get-AzureResourceGroupLog, Get-AzureProviderLog
18+
* Added new cmdlet Get-AzureLog which you can use to obtain logs at different scopes like resource group, resource, provider.
19+
* Removed Get-AzureLocation - the functionality is now provided through the Get-AzureRmResourceProvider
20+
21+
## 2015.09.03 version 0.9.8
222
* Azure Redis Cache cmdlets
323
* New-AzureRMRedisCache - 'RedisVersion' parameter is deprecated.
424
* Azure Compute (ARM) Cmdlets

build.proj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@
214214
<DelaySignedAssembliesToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\Microsoft*Azure*Commands*.dll" />
215215
<DelaySignedAssembliesToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\Microsoft.Azure.Common.Extensions.dll" />
216216
<ScriptsToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\*.ps1" />
217+
<ScriptsToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\*.psm1" />
218+
<ScriptsToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\*.ps1xml" />
217219
</ItemGroup>
218220

219221
<Message Importance="high" Text="$(LibrarySourceFolder)\Package\$(Configuration) does not contains any files to sign. Code sign will skip."

setup-powershellget/Setup/ShortcutStartup.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ To use Azure Service Management cmdlets please execute the following cmdlet:
9797
Install-Module Azure
9898
"@
9999
Write-Output $welcomeMessage
100-
101-
$VerbosePreference = "Continue"
102100
}
103101
}
104102
catch

setup-powershellget/azurecmd.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<?define sourceDir="$(var.SolutionDir)..\src\Package\$(var.Configuration)" ?>
66
<?define caSourceDir="$(var.SolutionDir)setup\bin\$(var.Configuration)" ?>
77

8-
<?define version="0.10.0" ?>
8+
<?define version="1.0.0" ?>
99
<?define versionedStartMenuFolder="Microsoft Azure" ?>
1010
<?define staleStartMenuFolder="Windows Azure" ?>
1111

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using System;
16+
using System.Collections.Generic;
17+
using System.Linq;
18+
using System.Text;
19+
using System.Threading.Tasks;
20+
using Microsoft.Azure.Common.Authentication.Models;
21+
22+
namespace Microsoft.WindowsAzure.Commands.Common
23+
{
24+
public static class AzureSubscriptionExtensions
25+
{
26+
27+
public static string GetStorageAccountName(this AzureSubscription subscription)
28+
{
29+
if (subscription == null || !subscription.IsPropertySet(AzureSubscription.Property.StorageAccount))
30+
{
31+
return null;
32+
}
33+
34+
var result = subscription.GetProperty(AzureSubscription.Property.StorageAccount);
35+
if (!string.IsNullOrWhiteSpace(result))
36+
{
37+
try
38+
{
39+
var pairs = result.Split(new char[]{';'}, StringSplitOptions.RemoveEmptyEntries);
40+
foreach (var pair in pairs)
41+
{
42+
var sides = pair.Split(new char[] {'='}, 2, StringSplitOptions.RemoveEmptyEntries);
43+
if (string.Equals("AccountName", sides[0].Trim(), StringComparison.OrdinalIgnoreCase))
44+
{
45+
result = sides[1].Trim();
46+
break;
47+
}
48+
}
49+
}
50+
catch
51+
{
52+
// if there are any errors, return the unchanged account name
53+
}
54+
}
55+
56+
return result;
57+
}
58+
59+
}
60+
}

src/Common/Commands.Common/Commands.Common.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
<Compile Include="AzurePowerShell.cs" />
149149
<Compile Include="AzureRmProfileProvider.cs" />
150150
<Compile Include="AzureSMProfileProvder.cs" />
151+
<Compile Include="AzureSubscriptionExtensions.cs" />
151152
<Compile Include="Constants.cs" />
152153
<Compile Include="ContextExtensions.cs" />
153154
<Compile Include="IProfileProvider.cs" />

src/Common/Commands.Common/GeneralUtilities.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,5 @@ public static void ClearCurrentStorageAccount(bool clearSMContext = false)
442442
}
443443
}
444444
}
445-
446445
}
447446
}

src/Common/Storage/Azure.Storage.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@{
1010

1111
# Version number of this module.
12-
ModuleVersion = '0.9.10'
12+
ModuleVersion = '0.10.1'
1313

1414
# ID used to uniquely identify this module
1515
GUID = '00612bca-fa22-401d-a671-9cc48b010e3b'
@@ -24,7 +24,7 @@ CompanyName = 'Microsoft Corporation'
2424
Copyright = 'Microsoft Corporation. All rights reserved.'
2525

2626
# Description of the functionality provided by this module
27-
Description = 'Microsoft Azure PowerShell - Storage'
27+
Description = 'Microsoft Azure PowerShell - Storage service cmdlets. Manages blobs, queues, tables and files in Microsoft Azure storage accounts'
2828

2929
# Minimum version of the Windows PowerShell engine required by this module
3030
PowerShellVersion = '3.0'
@@ -45,7 +45,7 @@ CLRVersion='4.0'
4545
ProcessorArchitecture = 'None'
4646

4747
# Modules that must be imported into the global environment prior to importing this module
48-
RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '0.9.10' })
48+
RequiredModules = @( @{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '0.10.0'})
4949

5050
# Assemblies that must be loaded prior to importing this module
5151
RequiredAssemblies = @()

src/Common/Storage/Commands.Storage/Blob/Cmdlet/GetAzureStorageContainer.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ public class GetAzureStorageContainerCommand : StorageCloudBlobCmdletBase
4444

4545
[Alias("N", "Container")]
4646
[Parameter(Position = 0, HelpMessage = "Container Name",
47-
ValueFromPipelineByPropertyName = true,
48-
ParameterSetName = NameParameterSet)]
47+
ValueFromPipeline = true,
48+
ValueFromPipelineByPropertyName = true,
49+
ParameterSetName = NameParameterSet)]
4950
public string Name { get; set; }
5051

5152
[Parameter(HelpMessage = "Container Prefix",

src/Common/Storage/Commands.Storage/Blob/Cmdlet/GetAzureStorageContainerStoredAccessPolicy.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public class GetAzureStorageContainerStoredAccessPolicyCommand : StorageCloudBlo
3232
[Alias("N", "Name")]
3333
[Parameter(Position = 0, Mandatory = true,
3434
HelpMessage = "Container name",
35+
ValueFromPipeline = true,
3536
ValueFromPipelineByPropertyName = true)]
3637
[ValidateNotNullOrEmpty]
3738
public string Container { get; set; }

src/Common/Storage/Commands.Storage/Blob/Cmdlet/NewAzureStorageContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class NewAzureStorageContainerCommand : StorageCloudBlobCmdletBase
3232
{
3333
[Alias("N", "Container")]
3434
[Parameter(Position = 0, Mandatory = true, HelpMessage = "Container name",
35-
ValueFromPipelineByPropertyName = true)]
35+
ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)]
3636
[ValidateNotNullOrEmpty]
3737
public string Name { get; set; }
3838

src/Common/Storage/Commands.Storage/Blob/Cmdlet/NewAzureStorageContainerSasToken.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class NewAzureStorageContainerSasTokenCommand : StorageCloudBlobCmdletBas
3737
[Alias("N", "Container")]
3838
[Parameter(Position = 0, Mandatory = true,
3939
HelpMessage = "Container Name",
40+
ValueFromPipeline = true,
4041
ValueFromPipelineByPropertyName = true)]
4142
[ValidateNotNullOrEmpty]
4243
public string Name { get; set; }

src/Common/Storage/Commands.Storage/Blob/Cmdlet/NewAzureStorageContainerStoredAccessPolicy.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class NewAzureStorageContainerStoredAccessPolicyCommand : StorageCloudBlo
3131
[Alias("N", "Name")]
3232
[Parameter(Position = 0, Mandatory = true,
3333
HelpMessage = "Container name",
34+
ValueFromPipeline = true,
3435
ValueFromPipelineByPropertyName = true)]
3536
[ValidateNotNullOrEmpty]
3637
public string Container { get; set; }

src/Common/Storage/Commands.Storage/Blob/Cmdlet/RemoveAzureStorageContainer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ public class RemoveAzureStorageContainerCommand : StorageCloudBlobCmdletBase
3333
[Alias("N", "Container")]
3434
[Parameter(Position = 0, Mandatory = true,
3535
HelpMessage = "Container Name",
36-
ValueFromPipelineByPropertyName = true)]
36+
ValueFromPipeline = true,
37+
ValueFromPipelineByPropertyName = true)]
3738
[ValidateNotNullOrEmpty]
3839
public string Name { get; set; }
3940

src/Common/Storage/Commands.Storage/Blob/Cmdlet/SetAzureStorageContainerAcl.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public class SetAzureStorageContainerAclCommand : StorageCloudBlobCmdletBase
3333
{
3434
[Alias("N", "Container")]
3535
[Parameter(Position = 0, Mandatory = true, HelpMessage = "Container Name",
36+
ValueFromPipeline = true,
3637
ValueFromPipelineByPropertyName = true)]
3738
public string Name { get; set; }
3839

src/Common/Storage/Commands.Storage/Blob/Cmdlet/SetAzureStorageContainerStoredAccessPolicy.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class SetAzureStorageContainerStoredAccessPolicyCommand : StorageCloudBlo
3131
[Alias("N", "Name")]
3232
[Parameter(Position = 0, Mandatory = true,
3333
HelpMessage = "Container name",
34+
ValueFromPipeline = true,
3435
ValueFromPipelineByPropertyName = true)]
3536
[ValidateNotNullOrEmpty]
3637
public string Container { get; set; }

src/Common/Storage/Commands.Storage/Common/StorageCloudCmdletBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class StorageCloudCmdletBase<T> : AzureDataCmdlet
4343
where T : class
4444
{
4545
[Parameter(HelpMessage = "Azure Storage Context Object",
46-
ValueFromPipelineByPropertyName = true)]
46+
ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)]
4747
public virtual AzureStorageContext Context { get; set; }
4848

4949
[Parameter(HelpMessage = "The server time out for each request in seconds.")]

src/Common/Storage/Commands.Storage/File/AzureStorageFileCmdletBase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,17 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File
2323
public abstract class AzureStorageFileCmdletBase : StorageCloudCmdletBase<IStorageFileManagement>
2424
{
2525
[Parameter(
26+
ValueFromPipeline = true,
2627
ValueFromPipelineByPropertyName = true,
2728
ParameterSetName = Constants.ShareNameParameterSetName,
2829
HelpMessage = "Azure Storage Context Object")]
2930
[Parameter(
31+
ValueFromPipeline = true,
3032
ValueFromPipelineByPropertyName = true,
3133
ParameterSetName = Constants.MatchingPrefixParameterSetName,
3234
HelpMessage = "Azure Storage Context Object")]
3335
[Parameter(
36+
ValueFromPipeline = true,
3437
ValueFromPipelineByPropertyName = true,
3538
ParameterSetName = Constants.SpecificParameterSetName,
3639
HelpMessage = "Azure Storage Context Object")]

src/Common/Storage/Commands.Storage/File/Cmdlet/GetAzureStorageShareStoredAccessPolicy.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public class GetAzureStorageShareStoredAccessPolicy : AzureStorageFileCmdletBase
3333
[Parameter(Position = 0, Mandatory = true,
3434
ParameterSetName = Constants.ShareNameParameterSetName,
3535
HelpMessage = "Share name",
36+
ValueFromPipeline = true,
3637
ValueFromPipelineByPropertyName = true)]
3738
[ValidateNotNullOrEmpty]
3839
public string ShareName { get; set; }

src/Common/Storage/Commands.Storage/File/Cmdlet/NewAzureStorageDirectory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public class NewAzureStorageDirectory : AzureStorageFileCmdletBase
5050
[Parameter(
5151
Position = 1,
5252
Mandatory = true,
53+
ValueFromPipeline = true,
5354
ValueFromPipelineByPropertyName = true,
5455
HelpMessage = "Path of the directory to be created.")]
5556
[ValidateNotNullOrEmpty]

src/Common/Storage/Commands.Storage/File/Cmdlet/NewAzureStorageFileSasToken.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,25 @@ public class NewAzureStorageFileSasToken : AzureStorageFileCmdletBase
5252

5353
[Parameter(Position = 0, Mandatory = true,
5454
HelpMessage = "Share Name",
55+
ValueFromPipeline = true,
5556
ValueFromPipelineByPropertyName = true,
5657
ParameterSetName = NameSasPermissionParameterSet)]
5758
[Parameter(Position = 0, Mandatory = true,
5859
HelpMessage = "Share Name",
60+
ValueFromPipeline = true,
5961
ValueFromPipelineByPropertyName = true,
6062
ParameterSetName = NameSasPolicyParmeterSet)]
6163
[ValidateNotNullOrEmpty]
6264
public string ShareName { get; set; }
6365

6466
[Parameter(Position = 1, Mandatory = true,
6567
HelpMessage = "Path to the cloud file to generate sas token against.",
68+
ValueFromPipeline = true,
6669
ValueFromPipelineByPropertyName = true,
6770
ParameterSetName = NameSasPermissionParameterSet)]
6871
[Parameter(Position = 1, Mandatory = true,
6972
HelpMessage = "Path to the cloud file to generate sas token against.",
73+
ValueFromPipeline = true,
7074
ValueFromPipelineByPropertyName = true,
7175
ParameterSetName = NameSasPolicyParmeterSet)]
7276
[ValidateNotNullOrEmpty]

src/Common/Storage/Commands.Storage/File/Cmdlet/NewAzureStorageShare.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class NewAzureStorageShare : AzureStorageFileCmdletBase
2222
[Parameter(
2323
Position = 0,
2424
Mandatory = true,
25+
ValueFromPipeline = true,
2526
ValueFromPipelineByPropertyName = true,
2627
HelpMessage = "Name of the file share to be created.")]
2728
[ValidateNotNullOrEmpty]

src/Common/Storage/Commands.Storage/File/Cmdlet/NewAzureStorageShareSasToken.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class NewAzureStorageShareSasToken : AzureStorageFileCmdletBase
3939
[Alias("N", "Name")]
4040
[Parameter(Position = 0, Mandatory = true,
4141
HelpMessage = "Share Name",
42+
ValueFromPipeline = true,
4243
ValueFromPipelineByPropertyName = true)]
4344
[ValidateNotNullOrEmpty]
4445
public string ShareName { get; set; }

src/Common/Storage/Commands.Storage/File/Cmdlet/NewAzureStorageShareStoredAccessPolicy.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class NewAzureStorageShareStoredAccessPolicy : AzureStorageFileCmdletBase
3131
[Parameter(Position = 0, Mandatory = true,
3232
ParameterSetName = Constants.ShareNameParameterSetName,
3333
HelpMessage = "Share name",
34+
ValueFromPipeline = true,
3435
ValueFromPipelineByPropertyName = true)]
3536
[ValidateNotNullOrEmpty]
3637
public string ShareName { get; set; }

src/Common/Storage/Commands.Storage/File/Cmdlet/RemoveAzureStorageDirectory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public class RemoveAzureStorageDirectory : AzureStorageFileCmdletBase
6464
HelpMessage = "Path to the directory to be removed.")]
6565
[Parameter(
6666
Position = 1,
67+
ValueFromPipeline = true,
6768
ValueFromPipelineByPropertyName = true,
6869
ParameterSetName = Constants.DirectoryParameterSetName,
6970
HelpMessage = "Path to the directory to be removed.")]

src/Common/Storage/Commands.Storage/File/Cmdlet/RemoveAzureStorageShare.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class RemoveAzureStorageShare : AzureStorageFileCmdletBase
2929
[Parameter(
3030
Position = 0,
3131
Mandatory = true,
32+
ValueFromPipeline = true,
3233
ValueFromPipelineByPropertyName = true,
3334
ParameterSetName = Constants.ShareNameParameterSetName,
3435
HelpMessage = "Name of the file share to be removed.")]

src/Common/Storage/Commands.Storage/File/Cmdlet/SetAzureStorageShareQuota.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public class SetAzureStorageShareQuota : AzureStorageFileCmdletBase
3232
[Parameter(Position = 0, Mandatory = true,
3333
HelpMessage = "Share name",
3434
ParameterSetName = Constants.ShareNameParameterSetName,
35+
ValueFromPipeline = true,
3536
ValueFromPipelineByPropertyName = true)]
3637
[ValidateNotNullOrEmpty]
3738
public string ShareName { get; set; }

src/Common/Storage/Commands.Storage/File/Cmdlet/SetAzureStorageShareStoredAccessPolicy.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public class SetAzureStorageShareStoredAccessPolicy : AzureStorageFileCmdletBase
3232
[Parameter(Position = 0, Mandatory = true,
3333
ParameterSetName = Constants.ShareNameParameterSetName,
3434
HelpMessage = "Share name",
35+
ValueFromPipeline = true,
3536
ValueFromPipelineByPropertyName = true)]
3637
[ValidateNotNullOrEmpty]
3738
public string ShareName { get; set; }

src/Common/Storage/Commands.Storage/Queue/Cmdlet/GetAzureStorageQueue.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public class GetAzureStorageQueueCommand : StorageQueueBaseCmdlet
4343

4444
[Alias("N", "Queue")]
4545
[Parameter(Position = 0, HelpMessage = "Queue name",
46+
ValueFromPipeline = true,
4647
ValueFromPipelineByPropertyName = true,
4748
ParameterSetName = NameParameterSet)]
4849
public string Name { get; set; }

src/Common/Storage/Commands.Storage/Queue/Cmdlet/GetAzureStorageQueueStoredAccessPolicy.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public class GetAzureStorageQueueStoredAccessPolicyCommand : StorageQueueBaseCmd
3030
[Alias("N", "Name")]
3131
[Parameter(Position = 0, Mandatory = true,
3232
HelpMessage = "Queue Name",
33+
ValueFromPipeline = true,
3334
ValueFromPipelineByPropertyName = true)]
3435
[ValidateNotNullOrEmpty]
3536
public string Queue { get; set; }

src/Common/Storage/Commands.Storage/Queue/Cmdlet/NewAzureStorageQueue.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public class NewAzureStorageQueueCommand : StorageQueueBaseCmdlet
2828
{
2929
[Alias("N", "Queue")]
3030
[Parameter(Position = 0, Mandatory = true, HelpMessage = "Queue name",
31-
ValueFromPipelineByPropertyName = true)]
31+
ValueFromPipeline = true,
32+
ValueFromPipelineByPropertyName = true)]
3233
public string Name { get; set; }
3334

3435
/// <summary>

src/Common/Storage/Commands.Storage/Queue/Cmdlet/NewAzureStorageQueueSasToken.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class NewAzureStorageQueueSasTokenCommand : StorageQueueBaseCmdlet
3737
[Alias("N", "Queue")]
3838
[Parameter(Position = 0, Mandatory = true,
3939
HelpMessage = "Table Name",
40+
ValueFromPipeline = true,
4041
ValueFromPipelineByPropertyName = true)]
4142
[ValidateNotNullOrEmpty]
4243
public string Name { get; set; }

src/Common/Storage/Commands.Storage/Queue/Cmdlet/NewAzureStorageQueueStoredAccessPolicy.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class NewAzureStorageQueueStoredAccessPolicyCommand : StorageQueueBaseCmd
2929
[Alias("N", "Name")]
3030
[Parameter(Position = 0, Mandatory = true,
3131
HelpMessage = "Queue Name",
32+
ValueFromPipeline = true,
3233
ValueFromPipelineByPropertyName = true)]
3334
[ValidateNotNullOrEmpty]
3435
public string Queue { get; set; }

0 commit comments

Comments
 (0)