Edit

Get-AzAlb

This cmdlet is part of a Preview module. Preview versions aren't recommended for use in production environments. For more information, see https://aka.ms/azps-refstatus.

Get a TrafficController

Syntax

List (Default)

Get-AzAlb
    [-SubscriptionId <String[]>]
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

Get

Get-AzAlb
    -Name <String>
    -ResourceGroupName <String>
    [-SubscriptionId <String[]>]
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

List1

Get-AzAlb
    -ResourceGroupName <String>
    [-SubscriptionId <String[]>]
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

GetViaIdentity

Get-AzAlb
    -InputObject <IAlbIdentity>
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

Description

Get a TrafficController

Examples

Example 1: Get a specified Application Gateway for Containers resource

Get-AzAlb -Name test-alb -ResourceGroupName test-rg
Name                       ResourceGroupName Location       ProvisioningState
----                       ----------------- --------       -----------------
test-alb                   1bcdr             NorthCentralUS Succeeded

This command shows a specific Application Gateway for Containers resource.

Example 2: List Application Gateway for Containers resources for a resource group

Get-AzAlb -ResourceGroupName test-rg
Name                         ResourceGroupName Location       ProvisioningState
----                         ----------------- --------       -----------------
AGfC                         test-rg           northcentralus Succeeded

This command lists all Application Gateway for Containers resources belonging to a specific resource group.

Example 3: List Application Gateway for Containers resources for a subscription

Get-AzAlb
Name                         ResourceGroupName Location       ProvisioningState
----                         ----------------- --------       -----------------
AGfC                         agfc-aks          northcentralus Succeeded
test-alb                     00                westeurope     Succeeded

This command lists all Application Gateway for Containers resources belonging to the current subscription context.

Parameters

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

Identity Parameter

Parameter properties

Type:IAlbIdentity
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetViaIdentity
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

traffic controller name for path

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Get
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ResourceGroupName

The name of the resource group. The name is case insensitive.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Get
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
List1
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SubscriptionId

The ID of the target subscription.

Parameter properties

Type:

String[]

Default value:(Get-AzContext).Subscription.Id
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Get
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
List1
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

IAlbIdentity

Outputs

ITrafficController