你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzAlb
获取 TrafficController
语法
Get-AzAlb
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzAlb
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzAlb
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzAlb
-InputObject <IAlbIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取 TrafficController
示例
示例 1:获取容器资源的指定应用程序网关
Get-AzAlb -Name test-alb -ResourceGroupName test-rg
Name ResourceGroupName Location ProvisioningState
---- ----------------- -------- -----------------
test-alb 1bcdr NorthCentralUS Succeeded
此命令显示容器资源的特定应用程序网关。
示例 2:列出资源组容器资源的应用程序网关
Get-AzAlb -ResourceGroupName test-rg
Name ResourceGroupName Location ProvisioningState
---- ----------------- -------- -----------------
AGfC test-rg northcentralus Succeeded
此命令列出属于特定资源组的容器资源的所有应用程序网关。
示例 3:列出订阅容器资源的应用程序网关
Get-AzAlb
Name ResourceGroupName Location ProvisioningState
---- ----------------- -------- -----------------
AGfC agfc-aks northcentralus Succeeded
test-alb 00 westeurope Succeeded
此命令列出属于当前订阅上下文的容器资源的所有应用程序网关。
参数
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InputObject
标识参数
类型: | IAlbIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Name
路径的流量控制器名称
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
资源组的名称。 名称不区分大小写。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
目标订阅的 ID。
类型: | String[] |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |