你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzSqlElasticJobTargetGroup
获取一个或多个作业目标组
语法
Get-AzSqlElasticJobTargetGroup
[-ResourceGroupName] <String>
[-ServerName] <String>
[-AgentName] <String>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSqlElasticJobTargetGroup
[-ParentObject] <AzureSqlElasticJobAgentModel>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSqlElasticJobTargetGroup
[-ParentResourceId] <String>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Get-AzSqlElasticJobTargetGroup cmdlet 获取目标组,它是目标
示例
示例 1
$agent = Get-AzSqlElasticJobAgent -ResourceGroupName rg -ServerName elasticjobserver -Name agent
$agent | Get-AzSqlElasticJobTargetGroup -Name tg1
TargetGroupName Targets
--------------- -------
tg1 (s1,db1)
获取目标组及其目标
示例 2
获取一个或多个作业目标组。 (自动生成)
Get-AzSqlElasticJobTargetGroup -AgentName agent -Name tg1 -ResourceGroupName rg -ServerName elasticjobserver
参数
-AgentName
代理名称
类型: | String |
Position: | 2 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
目标组名称
类型: | String |
别名: | TargetGroupName |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ParentObject
代理对象
类型: | AzureSqlElasticJobAgentModel |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ParentResourceId
代理资源 ID
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ResourceGroupName
资源组名称
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ServerName
服务器名称
类型: | String |
Position: | 1 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |