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

Microsoft.AzureArcData sqlServerInstances

Bicep 资源定义

sqlServerInstances 资源类型可以使用面向以下对象的操作进行部署:

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

资源格式

若要创建 Microsoft.AzureArcData/sqlServerInstances 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.AzureArcData/sqlServerInstances@2023-03-15-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    azureDefenderStatus: 'string'
    azureDefenderStatusLastUpdated: 'string'
    collation: 'string'
    containerResourceId: 'string'
    cores: 'string'
    currentVersion: 'string'
    edition: 'string'
    hostType: 'string'
    instanceName: 'string'
    licenseType: 'string'
    patchLevel: 'string'
    productId: 'string'
    status: 'string'
    tcpDynamicPorts: 'string'
    tcpStaticPorts: 'string'
    vCore: 'string'
    version: 'string'
  }
}

属性值

sqlServerInstances

名称 说明
name 资源名称 字符串 (必需)
location 资源所在的地理位置 字符串 (必需)
标记 资源标记。 标记名称和值的字典。 请参阅 模板中的标记
properties Null SqlServerInstanceProperties

SqlServerInstanceProperties

名称 说明
azureDefenderStatus Azure Defender 的状态。 “Protected”
“未知”
“Unprotected”
azureDefenderStatusLastUpdated 上次 Azure Defender 状态更新的时间戳。 字符串
collation SQL Server 排序规则。 string
containerResourceId azure Arc for Servers) (容器资源的 ARM 资源 ID。 字符串 (必需)
cores 操作系统环境 (托管SQL Server实例的 OSE) 的总核心数。 字符串
currentVersion SQL Server 当前版本。 字符串
edition SQL Server 版本。 “商业智能”
“开发人员”
“Enterprise”
“评估”
“Express”
“Standard”
“Web”
hostType Azure Arc SQL Server 的主机类型 “AWS Kubernetes 服务”
“AWS VMWare Virtual Machine”
“AWS 虚拟机”
“Azure Kubernetes 服务”
“Azure VMWare 虚拟机”
“Azure 虚拟机”
“Container”
“GCP Kubernetes 服务”
“GCP VMWare 虚拟机”
“GCP 虚拟机”
“其他”
“物理服务器”
“虚拟机”
INSTANCENAME SQL Server 实例名。 string
LicenseType SQL Server许可证类型。 “免费”
“HADR”
“LicenseOnly”
“PAYG”
“付费”
“ServerCAL”
“未定义”
patchLevel SQL Server 更新级别。 string
productId SQL Server 产品 ID。 string
status 云连接状态。 “Connected”
“Disconnected”
“Registered”
需要“未知” ()
tcpDynamicPorts SQL Server 使用的动态 TCP 端口。 string
tcpStaticPorts SQL Server 使用的静态 TCP 端口。 字符串
vCore SQL Server 实例使用的逻辑处理器数。 string
版本 SQL Server 版本。 'SQL Server 2012'
'SQL Server 2014'
“SQL Server 2016”
'SQL Server 2017'
'SQL Server 2019'
'SQL Server 2022'
“未知”

ARM 模板资源定义

可以使用面向以下操作部署 sqlServerInstances 资源类型:

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

资源格式

若要创建 Microsoft.AzureArcData/sqlServerInstances 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.AzureArcData/sqlServerInstances",
  "apiVersion": "2023-03-15-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "azureDefenderStatus": "string",
    "azureDefenderStatusLastUpdated": "string",
    "collation": "string",
    "containerResourceId": "string",
    "cores": "string",
    "currentVersion": "string",
    "edition": "string",
    "hostType": "string",
    "instanceName": "string",
    "licenseType": "string",
    "patchLevel": "string",
    "productId": "string",
    "status": "string",
    "tcpDynamicPorts": "string",
    "tcpStaticPorts": "string",
    "vCore": "string",
    "version": "string"
  }
}

属性值

sqlServerInstances

名称 说明 Value
type 资源类型 'Microsoft.AzureArcData/sqlServerInstances'
apiVersion 资源 API 版本 '2023-03-15-preview'
name 资源名称 字符串 (必需)
location 资源所在的地理位置 字符串 (必需)
标记 资源标记。 标记名称和值的字典。 请参阅 模板中的标记
properties Null SqlServerInstanceProperties

SqlServerInstanceProperties

名称 说明
azureDefenderStatus Azure Defender 的状态。 “Protected”
“未知”
“Unprotected”
azureDefenderStatusLastUpdated 上次 Azure Defender 状态更新的时间戳。 string
collation SQL Server 排序规则。 字符串
containerResourceId ) azure Arc for Servers (容器资源的 ARM 资源 ID。 字符串 (必需)
cores 托管 SQL Server 实例的操作系统环境 (OSE) 的总核心数。 字符串
currentVersion SQL Server 当前版本。 字符串
edition SQL Server 版本。 “商业智能”
'Developer'
“企业”
'Evaluation'
'Express'
'Standard'
'Web'
hostType Azure Arc SQL Server 的主机类型 “AWS Kubernetes 服务”
“AWS VMWare 虚拟机”
“AWS 虚拟机”
“Azure Kubernetes 服务”
“Azure VMWare 虚拟机”
“Azure 虚拟机”
'Container'
“GCP Kubernetes 服务”
“GCP VMWare 虚拟机”
“GCP 虚拟机”
“其他”
“物理服务器”
“虚拟机”
INSTANCENAME SQL Server 实例名。 字符串
LicenseType SQL Server许可证类型。 “免费”
'HADR'
“LicenseOnly”
'PAYG'
“付费”
“ServerCAL”
“未定义”
patchLevel SQL Server 更新级别。 string
productId SQL Server 产品 ID。 字符串
status 云连接状态。 “Connected”
“Disconnected”
“Registered”
需要“未知” ()
tcpDynamicPorts SQL Server 使用的动态 TCP 端口。 字符串
tcpStaticPorts SQL Server 使用的静态 TCP 端口。 字符串
vCore SQL Server 实例使用的逻辑处理器数。 string
版本 SQL Server 版本。 'SQL Server 2012'
'SQL Server 2014'
“SQL Server 2016”
'SQL Server 2017'
'SQL Server 2019'
'SQL Server 2022'
“未知”

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

可以使用面向以下操作部署 sqlServerInstances 资源类型:

  • 资源组

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

资源格式

若要创建 Microsoft.AzureArcData/sqlServerInstances 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.AzureArcData/sqlServerInstances@2023-03-15-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      azureDefenderStatus = "string"
      azureDefenderStatusLastUpdated = "string"
      collation = "string"
      containerResourceId = "string"
      cores = "string"
      currentVersion = "string"
      edition = "string"
      hostType = "string"
      instanceName = "string"
      licenseType = "string"
      patchLevel = "string"
      productId = "string"
      status = "string"
      tcpDynamicPorts = "string"
      tcpStaticPorts = "string"
      vCore = "string"
      version = "string"
    }
  })
}

属性值

sqlServerInstances

名称 说明 Value
type 资源类型 “Microsoft.AzureArcData/sqlServerInstances@2023-03-15-preview”
name 资源名称 字符串 (必需)
location 资源所在的地理位置 字符串 (必需)
parent_id 若要部署到资源组,请使用该资源组的 ID。 字符串 (必需)
标记 资源标记。 标记名称和值的字典。
properties Null SqlServerInstanceProperties

SqlServerInstanceProperties

名称 说明
azureDefenderStatus Azure Defender 的状态。 “Protected”
"Unknown"
“Unprotected”
azureDefenderStatusLastUpdated 上次 Azure Defender 状态更新的时间戳。 字符串
collation SQL Server 排序规则。 字符串
containerResourceId ) azure Arc for Servers (容器资源的 ARM 资源 ID。 字符串 (必需)
cores 托管 SQL Server 实例的操作系统环境 (OSE) 的总核心数。 字符串
currentVersion SQL Server 当前版本。 字符串
edition SQL Server 版本。 “商业智能”
“开发人员”
“企业版”
“评估”
“Express”
“Standard”
“Web”
hostType Azure Arc SQL Server 的主机类型 “AWS Kubernetes 服务”
“AWS VMWare Virtual Machine”
“AWS 虚拟机”
“Azure Kubernetes 服务”
“Azure VMWare 虚拟机”
“Azure 虚拟机”
“容器”
“GCP Kubernetes 服务”
“GCP VMWare Virtual Machine”
“GCP 虚拟机”
"Other"
“物理服务器”
“虚拟机”
INSTANCENAME SQL Server 实例名。 字符串
LicenseType SQL Server许可证类型。 "Free"
"HADR"
“LicenseOnly”
“PAYG”
"Paid"
“ServerCAL”
“未定义”
patchLevel SQL Server 更新级别。 string
productId SQL Server 产品 ID。 字符串
status 云连接状态。 “已连接”
“已断开连接”
“Registered”
需要“未知” ()
tcpDynamicPorts SQL Server 使用的动态 TCP 端口。 string
tcpStaticPorts SQL Server 使用的静态 TCP 端口。 字符串
vCore SQL Server 实例使用的逻辑处理器数。 字符串
版本 SQL Server 版本。 “SQL Server 2012”
“SQL Server 2014”
“SQL Server 2016”
“SQL Server 2017”
“SQL Server 2019”
“SQL Server 2022”
"Unknown"