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
 

Get-AzureNetworkSecurityGroupAssociation

Get-AzureNetworkSecurityGroupAssociation

microsoft.windowsazure.commands.servicemanagement.network.dll

Synopsis

Returns the Network Security Group on the given Virtual machine Get-AzureNetworkSecurityGroupAssociation [-VirtualNetworkName] <string> [-SubnetName] <string> [-Detailed] [-Profile <AzureProfile>] [<CommonParameters>] Get-AzureNetworkSecurityGroupAssociation [-VM] <PersistentVMRoleContext> [[-NetworkInterfaceName] <string>] -ServiceName <string> [-Detailed] [-Profile <AzureProfile>] [<CommonParameters>] Get-AzureNetworkSecurityGroupAssociation [-ServiceName] <string> [[-Slot] <string>] [-RoleName] <string> [[-NetworkInterfaceName] <string>] [-Detailed] [-Profile <AzureProfile>] [<CommonParameters>]

Syntax

Get-AzureNetworkSecurityGroupAssociation [-ServiceName] [-VM] [-NetworkInterfaceName] [-Detailed] [-PipelineVariable] [-Profile] [<CommonParameters>]

Get-AzureNetworkSecurityGroupAssociation [-Slot] [-RoleName] [-Detailed] [-PipelineVariable] [-Profile] [<CommonParameters>]

Get-AzureNetworkSecurityGroupAssociation [-VirtualNetworkName] [-SubnetName] [-Detailed] [-PipelineVariable] [-Profile] [<CommonParameters>]

Detailed Description

Returns the Network Security Group on the given Virtual machine, NIC or role name

Parameters

-Detailed <SwitchParameter>

Returns the details of the NSG associated to the VM including location and rules

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-NetworkInterfaceName <string>

Name of the NIC

Aliases

None

Required?

false

Position

4

Default value

None

Accept pipeline input?

true (ByPropertyName)

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

3

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-ServiceName <string>

Name of the service

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Slot <string>

[PaaS] Possible values are 'Production' or 'Staging'. Default value is 'Production'

Aliases

None

Required?

false

Position

2

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-SubnetName <string>

Name of the subnet to which the NSG will be associated

Aliases

None

Required?

true

Position

2

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-VirtualNetworkName <string>

Name of the Virtual Network

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-VM <PersistentVMRoleContext>

The virtual machine to which the NSG will be associated

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByValue, ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type

Microsoft.WindowsAzure.Commands.ServiceManagement.Network.NetworkSecurityGroup.Model.INetworkSecurityGroup

Notes

Examples

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

C:\PS>

Description

-----------

Returns the NSG associated with the Virtual machine be1

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