This is an archive version of the document. To get the most up-to-date information, see the current version.

Get-VBRAzureNetworkSecurityGroup

Short Description

Returns Microsoft Azure security groups.

Applies to

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

This cmdlet provides parameter sets that allow you to:

  • Get all Microsoft Azure security groups.

Get-VBRAzureNetworkSecurityGroup -Subscription <VBRAzureSubscription>  [<CommonParameters>]

  • Get Microsoft Azure security groups by its ID.

Get-VBRAzureNetworkSecurityGroup -Subscription <VBRAzureSubscription> [-Id <string>]  [<CommonParameters>]

  • Get Microsoft Azure security groups by its Name.

Get-VBRAzureNetworkSecurityGroup -Subscription <VBRAzureSubscription> [-Name <string[]>]  [<CommonParameters>]

Detailed Description

This cmdlet returns Microsoft Azure security groups.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Subscription

Specifies subscriptions associated with a Microsoft Azure account.

Accepts the VBRAzureSubscription object. To create this object, run the Get-VBRAzureSubscription cmdlet.

True

Named

True

(ByValue, ByPropertyName)

Id

Specifies Microsoft Azure security groups ID. The cmdlet will return security groups with the specified ID.

String

False

Named

False

Name

Specifies an array of Microsoft Azure security groups names. The cmdlet will return security groups with the specified names.

String[]

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Output Object

The cmdlet returns the VBRAzureNetworkSecurityGroup object that contains settings of Microsoft Azure security groups.

Examples

Get-VBRAzureNetworkSecurityGroupExample 1. Getting all Microsoft Azure Security Groups

Get-VBRAzureNetworkSecurityGroupExample 2. Getting Microsoft Azure Security Groups by ID

Get-VBRAzureNetworkSecurityGroupExample 3. Getting Microsoft Azure Security Groups by Name

Related Commands