Skip to content

Commit f62be59

Browse files
committed
Merge pull request Azure#1105 from Azure/release-1.0.0-preview2
Integrating from release to master as a part of Release 1.0.0 preview2
2 parents 09c3909 + 31ba638 commit f62be59

File tree

42 files changed

+71
-13
lines changed

Some content is hidden

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

42 files changed

+71
-13
lines changed

build.proj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@
215215
<DelaySignedAssembliesToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\Microsoft.Azure.Common.Extensions.dll" />
216216
<ScriptsToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\*.ps1" />
217217
<ScriptsToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\*.psm1" />
218+
<ScriptsToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\*.ps1xml" />
218219
</ItemGroup>
219220

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

src/Common/Storage/Azure.Storage.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@{
1010

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

1414
# ID used to uniquely identify this module
1515
GUID = '00612bca-fa22-401d-a671-9cc48b010e3b'

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; }

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

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class SetAzureStorageQueueStoredAccessPolicyCommand : 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; }

src/Common/Storage/Commands.Storage/Table/Cmdlet/GetAzureStorageTableStoredAccessPolicy.cs

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

src/Common/Storage/Commands.Storage/Table/Cmdlet/GetStorageAzureTable.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public class GetAzureStorageTableCommand : StorageCloudTableCmdletBase
4242

4343
[Alias("N", "Table")]
4444
[Parameter(Position = 0, HelpMessage = "Table name",
45+
ValueFromPipeline = true,
4546
ValueFromPipelineByPropertyName = true,
4647
ParameterSetName = NameParameterSet)]
4748
public string Name { get; set; }

src/Common/Storage/Commands.Storage/Table/Cmdlet/NewAzureStorageTableSasToken.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class NewAzureStorageTableSasTokenCommand : StorageCloudTableCmdletBase
3737
[Alias("N", "Table")]
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/Table/Cmdlet/NewAzureStorageTableStoredAccessPolicy.cs

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

src/Common/Storage/Commands.Storage/Table/Cmdlet/NewStorageAzureTable.cs

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

src/Common/Storage/Commands.Storage/Table/Cmdlet/RemoveStorageAzureTable.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public class RemoveAzureStorageTableCommand : StorageCloudTableCmdletBase
3030
{
3131
[Alias("N", "Table")]
3232
[Parameter(Position = 0, Mandatory = true, HelpMessage = "Table name",
33-
ValueFromPipelineByPropertyName = true)]
33+
ValueFromPipeline = true,
34+
ValueFromPipelineByPropertyName = true)]
3435
public string Name { get; set; }
3536

3637
[Parameter(HelpMessage = "Force to remove the table without confirmation")]

src/Common/Storage/Commands.Storage/Table/Cmdlet/SetAzureStorageTableStoredAccessPolicy.cs

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

src/ResourceManager/Storage/AzureRM.Storage.psd1

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

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

1414
# ID used to uniquely identify this module
1515
GUID = 'da67eaa7-4cb1-4bfa-a194-8bf3faae8ac5'
@@ -47,7 +47,7 @@ ProcessorArchitecture = 'None'
4747
# Modules that must be imported into the global environment prior to importing this module
4848
RequiredModules = @(
4949
@{ ModuleName = 'AzureRM.Profile'; ModuleVersion = '0.10.0'},
50-
@{ ModuleName = 'Azure.Storage'; ModuleVersion = '0.10.0'}
50+
@{ ModuleName = 'Azure.Storage'; ModuleVersion = '0.10.1'}
5151
)
5252

5353
# Assemblies that must be loaded prior to importing this module

src/ResourceManager/Storage/Commands.Management.Storage/Models/PSStorageAccount.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
namespace Microsoft.Azure.Commands.Management.Storage.Models
2323
{
24-
class PSStorageAccount : IStorageContextProvider
24+
public class PSStorageAccount : IStorageContextProvider
2525
{
2626
public PSStorageAccount(StorageAccount storageAccount)
2727
{
@@ -98,5 +98,15 @@ private static string ParseResourceGroupFromId(string idFromServer)
9898
}
9999

100100
public AzureStorageContext Context { get; private set; }
101+
102+
/// <summary>
103+
/// Return a string representation of this storage account
104+
/// </summary>
105+
/// <returns>null</returns>
106+
public override string ToString()
107+
{
108+
// Allow listing storage contents through piping
109+
return null;
110+
}
101111
}
102112
}

src/ServiceManagement/Compute/Commands.ServiceManagement/Model/PSStorageService.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ public static PSStorageService Create(StorageManagementClient client,
6969
var cloudStorageAccount = StorageUtilities.GenerateCloudStorageAccount(client, account.StorageAccountName);
7070
return new PSStorageService(account, new AzureStorageContext(cloudStorageAccount));
7171
}
72+
73+
/// <summary>
74+
/// String representation of this account
75+
/// </summary>
76+
/// <returns>null</returns>
77+
public override string ToString()
78+
{
79+
// Allow sceanrios that list storage account contents through piping
80+
return null;
81+
}
7282
}
7383
}
7484

src/ServiceManagement/Services/Commands.Utilities/Azure.psd1

Lines changed: 1 addition & 1 deletion
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.9.11'
1313

1414
# ID used to uniquely identify this module
1515
GUID = 'D48CF693-4125-4D2D-8790-1514F44CE325'

tools/AzureRM/AzureRM.psd1

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)