Skip to content

Commit 5757972

Browse files
unknownunknown
unknown
authored and
unknown
committed
Change NicIds to NetworkInterfaceIds
1 parent a06dfeb commit 5757972

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ResourceManager/Compute/Commands.Compute/Models/PSVirtualMachine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public string [] DataDiskNames
153153
}
154154

155155
[JsonIgnore]
156-
public string[] NicIds
156+
public string[] NetworkInterfaceIds
157157
{
158158
get
159159
{

src/ResourceManager/Compute/Commands.Compute/VirtualMachine/Config/RemoveAzureVMNetworkInterfaceCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@ public class RemoveAzureVMNetworkInterfaceCommand : AzurePSCmdlet
4141
[ValidateNotNullOrEmpty]
4242
public PSVirtualMachine VM { get; set; }
4343

44-
[Alias("Id", "NetworkInterfaceId")]
44+
[Alias("Id", "NicIds")]
4545
[Parameter(
4646
Mandatory = true,
4747
Position = 1,
4848
ValueFromPipelineByPropertyName = true,
4949
HelpMessage = HelpMessages.VMNetworkInterfaceID)]
5050
[ValidateNotNullOrEmpty]
51-
public string [] NicIds { get; set; }
51+
public string[] NetworkInterfaceIds { get; set; }
5252

5353
public override void ExecuteCmdlet()
5454
{
5555
var networkProfile = this.VM.NetworkProfile;
5656

57-
foreach (var id in this.NicIds)
57+
foreach (var id in this.NetworkInterfaceIds)
5858
{
5959
if (networkProfile != null &&
6060
networkProfile.NetworkInterfaces != null &&

0 commit comments

Comments
 (0)