通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft。Sql managedInstances/sqlAgent

Bicep资源定义

可以使用目标作部署 managedInstances/sqlAgent 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

去创造一个Microsoft。Sql/managedInstances/sqlAgent 资源,在模板中添加以下 Bicep。

resource symbolicname 'Microsoft.Sql/managedInstances/sqlAgent@2025-02-01-preview' = {
  parent: resourceSymbolicName
  name: 'current'
  properties: {
    state: 'string'
  }
}

属性值

Microsoft。Sql/managedInstances/sqlAgent

Name Description Value
name 资源名称 “current”(必需)
父级 在 Bicep 中,你可以指定子资源的父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源
类型资源的符号名称:managedInstances
properties 资源属性。 SqlAgentConfigurationProperties

SqlAgentConfigurationProperties

Name Description Value
状态 Sql 代理的状态。 'Disabled'
'Enabled'

ARM 模板资源定义

可以使用目标作部署 managedInstances/sqlAgent 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

去创造一个Microsoft。Sql/managedInstances/sqlAgent 资源,向模板添加以下 JSON 代码。

{
  "type": "Microsoft.Sql/managedInstances/sqlAgent",
  "apiVersion": "2025-02-01-preview",
  "name": "string",
  "properties": {
    "state": "string"
  }
}

属性值

Microsoft。Sql/managedInstances/sqlAgent

Name Description Value
apiVersion API 版本 “2025-02-01-预览”
name 资源名称 “current”(必需)
properties 资源属性。 SqlAgentConfigurationProperties
类型 资源类型 “Microsoft。Sql/managedInstances/sqlAgent'

SqlAgentConfigurationProperties

Name Description Value
状态 Sql 代理的状态。 'Disabled'
'Enabled'

用法示例

Terraform (AzAPI 提供程序)资源定义

可以使用目标作部署 managedInstances/sqlAgent 资源类型:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

去创造一个Microsoft。Sql/managedInstances/sqlAgent 资源,将以下 Terraform 添加到你的模板中。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Sql/managedInstances/sqlAgent@2025-02-01-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      state = "string"
    }
  }
}

属性值

Microsoft。Sql/managedInstances/sqlAgent

Name Description Value
name 资源名称 “current”(必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:managedInstances
properties 资源属性。 SqlAgentConfigurationProperties
类型 资源类型 “Microsoft。Sql/managedInstances/sqlAgent@2025-02-01-preview”

SqlAgentConfigurationProperties

Name Description Value
状态 Sql 代理的状态。 'Disabled'
'Enabled'