Remove-​Azure​Rm​VM​Network​Interface

Removes a network interface from a virtual machine.

Syntax

Remove-AzureRmVMNetworkInterface
      [-VM] <PSVirtualMachine>
      [[-NetworkInterfaceIDs] <String[]>]
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

The Remove-AzureRmVMNetworkInterface cmdlet removes a network interface from a virtual machine.

Examples

1:

Required Parameters

-VM

Specifies the virtual machine from which this cmdlet removes a network interface. To obtain a virtual machine object, use the Get-AzureRmVM cmdlet.

Type:PSVirtualMachine
Aliases:VMProfile
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-NetworkInterfaceIDs

Specifies an array of network interface IDs that this cmdlet removes.

Type:String[]
Aliases:Id, NicIds
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False