Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-AzureNetworkSecurityGroupAssociation

Remove-AzureNetworkSecurityGroupAssociation

microsoft.windowsazure.commands.servicemanagement.network.dll

Synopsis

Removes the specified Network Security Group from the VM Remove-AzureNetworkSecurityGroupAssociation [-Name] <string> [-VirtualNetworkName] <string> [-SubnetName] <string> [-Force] [-PassThru] [-Profile <AzureProfile>] [<CommonParameters>] Remove-AzureNetworkSecurityGroupAssociation [-Name] <string> [-VM] <PersistentVMRoleContext> [[-NetworkInterfaceName] <string>] -ServiceName <string> [-Force] [-PassThru] [-Profile <AzureProfile>] [<CommonParameters>] Remove-AzureNetworkSecurityGroupAssociation [-Name] <string> [-ServiceName] <string> [[-Slot] <string>] [-RoleName] <string> [[-NetworkInterfaceName] <string>] [-Force] [-PassThru] [-Profile <AzureProfile>] [<CommonParameters>]

Syntax

Remove-AzureNetworkSecurityGroupAssociation [-Name] [-VM] [-Force] [-PassThru] [-PipelineVariable] [-Profile] [<CommonParameters>]

Remove-AzureNetworkSecurityGroupAssociation [-Name] [-ServiceName] [-Slot] [-RoleName] [-NetworkInterfaceName] [-Force] [-PassThru] [-PipelineVariable] [-Profile] [<CommonParameters>]

Remove-AzureNetworkSecurityGroupAssociation [-Name] [-VirtualNetworkName] [-SubnetName] [-Force] [-PassThru] [-PipelineVariable] [-Profile] [<CommonParameters>]

Detailed Description

Removes the specified Network Security Group from the VM

Parameters

-Force <SwitchParameter>

skips the confirmation prompt

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Name <string>

Name of the Network Security Group

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-NetworkInterfaceName <string>

Name of the NIC

Aliases

None

Required?

false

Position

5

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-PassThru <SwitchParameter>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-PipelineVariable <string>

Not Specified

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Profile <AzureProfile>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-RoleName <string>

[PaaS] Name of the role

Aliases

None

Required?

true

Position

4

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-ServiceName <string>

Name of the cloud service

Aliases

None

Required?

true

Position

2

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Slot <string>

[PaaS] The optional values are 'Production' and 'Staging'. The default value is 'Production'

Aliases

None

Required?

false

Position

3

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-SubnetName <string>

Name of the subnet

Aliases

None

Required?

true

Position

3

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-VirtualNetworkName <string>

Name of the VNet that contains the subnet

Aliases

None

Required?

true

Position

2

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-VM <PersistentVMRoleContext>

The Virtual machine from where the NSG is dis-associated

Aliases

None

Required?

true

Position

2

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

Input Type


Return Type

System.Boolean

Notes

Examples

-------------------------- EXAMPLE 1 --------------------------

C:\PS>

Description

-----------

NSG 'bensg' to be dis-associated from the VM be1

          Get-AzureVM -ServiceName be1 -Name be1 | Remove-AzureNetworkSecurityGroupAssociation -Name bensg