Skip to content

Commit a3bba5f

Browse files
committed
update ext. image cmdlets
1 parent 86a7690 commit a3bba5f

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/ResourceManager/Compute/Commands.Compute/ExtensionImages/GetAzureVMExtensionImageCommand.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ namespace Microsoft.Azure.Commands.Compute
2323
[OutputType(typeof(VirtualMachineExtensionImageGetResponse))]
2424
public class GetAzureVMExtensionImageCommand : VirtualMachineExtensionImageBaseCmdlet
2525
{
26-
[Parameter(Mandatory = true), ValidateNotNullOrEmpty]
26+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true), ValidateNotNullOrEmpty]
2727
public string Location { get; set; }
2828

29-
[Parameter(Mandatory = true), ValidateNotNullOrEmpty]
29+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true), ValidateNotNullOrEmpty]
3030
public string PublisherName { get; set; }
3131

32-
[Parameter(Mandatory = true), ValidateNotNullOrEmpty]
32+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true), ValidateNotNullOrEmpty]
3333
public string Type { get; set; }
3434

35-
[Parameter, ValidateNotNullOrEmpty]
36-
public string FilterExpression { get; set; }
35+
[Parameter(ValueFromPipelineByPropertyName = true), ValidateNotNullOrEmpty]
36+
public string Version { get; set; }
3737

3838
[Parameter, ValidateNotNullOrEmpty]
39-
public string Version { get; set; }
39+
public string FilterExpression { get; set; }
4040

4141
public override void ExecuteCmdlet()
4242
{

src/ResourceManager/Compute/Commands.Compute/ExtensionImages/GetAzureVMExtensionImageTypeCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ namespace Microsoft.Azure.Commands.Compute
2323
[OutputType(typeof(VirtualMachineImageResourceList))]
2424
public class GetAzureVMExtensionImageTypeCommand : VirtualMachineExtensionImageBaseCmdlet
2525
{
26-
[Parameter(Mandatory = true), ValidateNotNullOrEmpty]
26+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true), ValidateNotNullOrEmpty]
2727
public string Location { get; set; }
2828

29-
[Parameter(Mandatory = true), ValidateNotNullOrEmpty]
29+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true), ValidateNotNullOrEmpty]
3030
public string PublisherName { get; set; }
3131

3232
public override void ExecuteCmdlet()

src/ResourceManager/Compute/Commands.Compute/ExtensionImages/GetAzureVMExtensionImageVersionCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ namespace Microsoft.Azure.Commands.Compute
2323
[OutputType(typeof(VirtualMachineImageResourceList))]
2424
public class GetAzureVMExtensionImageVersionCommand : VirtualMachineExtensionImageBaseCmdlet
2525
{
26-
[Parameter(Mandatory = true), ValidateNotNullOrEmpty]
26+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true), ValidateNotNullOrEmpty]
2727
public string Location { get; set; }
2828

29-
[Parameter(Mandatory = true), ValidateNotNullOrEmpty]
29+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true), ValidateNotNullOrEmpty]
3030
public string PublisherName { get; set; }
3131

32-
[Parameter(Mandatory = true), ValidateNotNullOrEmpty]
32+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true), ValidateNotNullOrEmpty]
3333
public string Type { get; set; }
3434

3535
[Parameter, ValidateNotNullOrEmpty]

0 commit comments

Comments
 (0)