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

Microsoft.IoTOperations 实例

Bicep 资源定义

可以使用目标操作部署实例资源类型:

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

资源格式

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

resource symbolicname 'Microsoft.IoTOperations/instances@2025-10-01' = {
  scope: resourceSymbolicName or scope
  extendedLocation: {
    name: 'string'
    type: 'string'
  }
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  location: 'string'
  name: 'string'
  properties: {
    adrNamespaceRef: {
      resourceId: 'string'
    }
    defaultSecretProviderClassRef: {
      resourceId: 'string'
    }
    description: 'string'
    features: {
      {customized property}: {
        mode: 'string'
        settings: {
          {customized property}: 'string'
        }
      }
    }
    schemaRegistryRef: {
      resourceId: 'string'
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

属性值

Microsoft.IoTOperations/instances

Name Description Value
extendedLocation 资源的边缘位置。 ExtendedLocation (必填)
标识 分配给此资源的托管服务标识。 ManagedServiceIdentity
位置 资源所在的地理位置 string (必需)
name 资源名称 string

Constraints:
最小长度 = 3
最大长度 = 63
模式 = ^[a-z0-9][a-z0-9-]*[a-z0-9]$ (必需)
properties 此资源的资源特定属性。 InstanceProperties
作用域 在与部署范围不同的范围内创建资源时使用。 将此属性设置为资源的符号名称以应用 扩展资源
tags 资源标记 标记名称和值的字典。 请参阅模板 中的 标记

AzureDeviceRegistryNamespaceRef

Name Description Value
resourceId Azure 设备注册表命名空间的资源 ID。 string (必需)

ExtendedLocation

Name Description Value
name 扩展位置的名称。 string (必需)
类型 ExtendedLocation 的类型。 'CustomLocation'(必填)

InstanceFeature

Name Description Value
mode 功能的状态。 'Disabled'
'Preview'
'Stable'
settings 功能的设置。 InstanceFeatureSettings

InstanceFeatureSettings

Name Description Value

InstanceProperties

Name Description Value
adr命名空间引用 资产、发现的资产和设备使用的 Azure 设备注册表命名空间 AzureDeviceRegistryNamespaceRef
defaultSecretProviderClassRef 对 AIO Secret 提供程序类的引用。 SecretProviderClassRef
description 实例的详细说明。 字符串
features AIO 实例的功能。 InstancePropertiesFeatures
schemaRegistryRef 对此 AIO 实例的架构注册表的引用。 SchemaRegistryRef (必需)

InstancePropertiesFeatures

Name Description Value

ManagedServiceIdentity

Name Description Value
类型 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
“UserAssigned”(必需)
userAssignedIdentities 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 UserAssignedIdentities

SchemaRegistryRef

Name Description Value
resourceId 架构注册表的资源 ID。 string (必需)

SecretProviderClassRef

Name Description Value
resourceId AIO 密钥提供程序类的资源 ID。 string (必需)

TrackedResourceTags

Name Description Value

UserAssignedIdentities

Name Description Value

UserAssignedIdentity

Name Description Value

ARM 模板资源定义

可以使用目标操作部署实例资源类型:

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

资源格式

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

{
  "type": "Microsoft.IoTOperations/instances",
  "apiVersion": "2025-10-01",
  "name": "string",
  "extendedLocation": {
    "name": "string",
    "type": "string"
  },
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "location": "string",
  "properties": {
    "adrNamespaceRef": {
      "resourceId": "string"
    },
    "defaultSecretProviderClassRef": {
      "resourceId": "string"
    },
    "description": "string",
    "features": {
      "{customized property}": {
        "mode": "string",
        "settings": {
          "{customized property}": "string"
        }
      }
    },
    "schemaRegistryRef": {
      "resourceId": "string"
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

属性值

Microsoft.IoTOperations/instances

Name Description Value
apiVersion API 版本 '2025-10-01'
extendedLocation 资源的边缘位置。 ExtendedLocation (必填)
标识 分配给此资源的托管服务标识。 ManagedServiceIdentity
位置 资源所在的地理位置 string (必需)
name 资源名称 string

Constraints:
最小长度 = 3
最大长度 = 63
模式 = ^[a-z0-9][a-z0-9-]*[a-z0-9]$ (必需)
properties 此资源的资源特定属性。 InstanceProperties
tags 资源标记 标记名称和值的字典。 请参阅模板 中的 标记
类型 资源类型 'Microsoft.IoTOperations/instances'

AzureDeviceRegistryNamespaceRef

Name Description Value
resourceId Azure 设备注册表命名空间的资源 ID。 string (必需)

ExtendedLocation

Name Description Value
name 扩展位置的名称。 string (必需)
类型 ExtendedLocation 的类型。 'CustomLocation'(必填)

InstanceFeature

Name Description Value
mode 功能的状态。 'Disabled'
'Preview'
'Stable'
settings 功能的设置。 InstanceFeatureSettings

InstanceFeatureSettings

Name Description Value

InstanceProperties

Name Description Value
adr命名空间引用 资产、发现的资产和设备使用的 Azure 设备注册表命名空间 AzureDeviceRegistryNamespaceRef
defaultSecretProviderClassRef 对 AIO Secret 提供程序类的引用。 SecretProviderClassRef
description 实例的详细说明。 字符串
features AIO 实例的功能。 InstancePropertiesFeatures
schemaRegistryRef 对此 AIO 实例的架构注册表的引用。 SchemaRegistryRef (必需)

InstancePropertiesFeatures

Name Description Value

ManagedServiceIdentity

Name Description Value
类型 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
“UserAssigned”(必需)
userAssignedIdentities 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 UserAssignedIdentities

SchemaRegistryRef

Name Description Value
resourceId 架构注册表的资源 ID。 string (必需)

SecretProviderClassRef

Name Description Value
resourceId AIO 密钥提供程序类的资源 ID。 string (必需)

TrackedResourceTags

Name Description Value

UserAssignedIdentities

Name Description Value

UserAssignedIdentity

Name Description Value

用法示例

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

可以使用目标操作部署实例资源类型:

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

资源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.IoTOperations/instances@2025-10-01"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    extendedLocation = {
      name = "string"
      type = "string"
    }
    properties = {
      adrNamespaceRef = {
        resourceId = "string"
      }
      defaultSecretProviderClassRef = {
        resourceId = "string"
      }
      description = "string"
      features = {
        {customized property} = {
          mode = "string"
          settings = {
            {customized property} = "string"
          }
        }
      }
      schemaRegistryRef = {
        resourceId = "string"
      }
    }
  }
}

属性值

Microsoft.IoTOperations/instances

Name Description Value
extendedLocation 资源的边缘位置。 ExtendedLocation (必填)
标识 分配给此资源的托管服务标识。 ManagedServiceIdentity
位置 资源所在的地理位置 string (必需)
name 资源名称 string

Constraints:
最小长度 = 3
最大长度 = 63
模式 = ^[a-z0-9][a-z0-9-]*[a-z0-9]$ (必需)
parent_id 要向其应用此扩展资源的资源的 ID。 string (必需)
properties 此资源的资源特定属性。 InstanceProperties
tags 资源标记 标记名称和值的字典。
类型 资源类型 “Microsoft.IoTOperations/instances@2025-10-01”

AzureDeviceRegistryNamespaceRef

Name Description Value
resourceId Azure 设备注册表命名空间的资源 ID。 string (必需)

ExtendedLocation

Name Description Value
name 扩展位置的名称。 string (必需)
类型 ExtendedLocation 的类型。 'CustomLocation'(必填)

InstanceFeature

Name Description Value
mode 功能的状态。 'Disabled'
'Preview'
'Stable'
settings 功能的设置。 InstanceFeatureSettings

InstanceFeatureSettings

Name Description Value

InstanceProperties

Name Description Value
adr命名空间引用 资产、发现的资产和设备使用的 Azure 设备注册表命名空间 AzureDeviceRegistryNamespaceRef
defaultSecretProviderClassRef 对 AIO Secret 提供程序类的引用。 SecretProviderClassRef
description 实例的详细说明。 字符串
features AIO 实例的功能。 InstancePropertiesFeatures
schemaRegistryRef 对此 AIO 实例的架构注册表的引用。 SchemaRegistryRef (必需)

InstancePropertiesFeatures

Name Description Value

ManagedServiceIdentity

Name Description Value
类型 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
“UserAssigned”(必需)
userAssignedIdentities 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 UserAssignedIdentities

SchemaRegistryRef

Name Description Value
resourceId 架构注册表的资源 ID。 string (必需)

SecretProviderClassRef

Name Description Value
resourceId AIO 密钥提供程序类的资源 ID。 string (必需)

TrackedResourceTags

Name Description Value

UserAssignedIdentities

Name Description Value

UserAssignedIdentity

Name Description Value