共用方式為


Get-AzSqlElasticJobAgent

取得 Azure SQL 彈性作業代理程式

語法

Get-AzSqlElasticJobAgent
   [-ResourceGroupName] <String>
   [-ServerName] <String>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzSqlElasticJobAgent
   [-ParentObject] <AzureSqlServerModel>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzSqlElasticJobAgent
   [-ParentResourceId] <String>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get-AzSqlElasticJobAgent Cmdlet 會取得一或多個彈性作業代理程式

範例

範例 1

Get-AzSqlElasticJobAgent -ResourceGroupName rg -ServerName elasticjobserver -Name agent

ResourceGroupName ServerName       DatabaseName AgentName State Tags
----------------- ----------       ------------ --------- ----- ----
rg                elasticjobserver jobdb        agent     Ready

取得彈性作業代理程式

參數

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

代理程式名稱

類型:String
別名:AgentName
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ParentObject

伺服器輸入物件

類型:AzureSqlServerModel
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ParentResourceId

伺服器資源標識碼

類型:String
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ResourceGroupName

資源群組名稱

類型:String
Position:0
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-ServerName

伺服器名稱

類型:String
Position:1
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

輸入

AzureSqlServerModel

輸出

AzureSqlElasticJobAgentModel