Microsoft.DeviceUpdate 帳戶

Bicep 資源定義

帳戶資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

使用範例

Bicep 範例

部署 IoT 中樞裝置更新帳戶的基本範例。

param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource account 'Microsoft.DeviceUpdate/accounts@2022-10-01' = {
  name: resourceName
  location: location
  properties: {
    publicNetworkAccess: 'Enabled'
    sku: 'Standard'
  }
}

Azure 快速入門範例

下列 Azure 快速入門範本 包含用於部署此資源類型的 Bicep 範例。

Bicep 檔案 描述
建立IoT中樞帳戶的裝置更新 此範本會建立一個帳戶,提供公用 DNS 記錄,並允許對數據平面進行 REST API 呼叫。 然後,用戶必須在帳戶下建立實例,並將它與IoT中樞連結以開始使用服務。
建立IoT中樞帳戶、實例、IoT 中樞 的裝置更新 此範本會建立帳戶,以及實例和中樞來鏈接實例。 它會使用必要的存取原則、路由和取用者群組來設定中樞。

資源格式

若要建立 Microsoft.DeviceUpdate/accounts 資源,請將下列 Bicep 新增至您的範本。

resource symbolicname 'Microsoft.DeviceUpdate/accounts@2023-07-01' = {
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  location: 'string'
  name: 'string'
  properties: {
    encryption: {
      keyVaultKeyUri: 'string'
      userAssignedIdentity: 'string'
    }
    privateEndpointConnections: [
      {
        properties: {
          groupIds: [
            'string'
          ]
          privateEndpoint: {}
          privateLinkServiceConnectionState: {
            actionsRequired: 'string'
            description: 'string'
            status: 'string'
          }
        }
      }
    ]
    publicNetworkAccess: 'string'
    sku: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

Microsoft.DeviceUpdate/accounts

名字 描述 價值
身分識別 用於資源的身分識別類型。 ManagedServiceIdentity
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 3
最大長度 = 24
模式 = ^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$ (必要)
性能 裝置更新帳戶屬性。 AccountProperties
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

AccountProperties

名字 描述 價值
加密 待用 CMK 加密屬性 加密
privateEndpoint連接 與帳戶相關聯的私人端點連線清單。 PrivateEndpointConnection[]
公共網路存取 帳戶是否允許公用網路存取。 “已禁用”
“已啟用”
SKU 裝置更新 Sku “免費”
“標準”

加密

名字 描述 價值
keyVaultKeyUri 金鑰 金鑰保存庫的 URI 字串
使用者指定身份 要用於金鑰保存庫存取之使用者指派身分識別的完整 resourceId。 身分識別也必須指派給帳戶 字串

ManagedServiceIdentity

名字 描述 價值
型別 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 “無”
“系統分配”
'SystemAssigned,UserAssigned'
'UserAssigned' (必要)
使用者指派的身份 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 UserAssignedIdentities

私有端點

名字 描述 價值

PrivateEndpointConnection

名字 描述 價值
性能 資源屬性。 PrivateEndpointConnectionProperties (必要)

PrivateEndpointConnectionProperties

名字 描述 價值
群組ID 群組標識碼的陣列。 字串[]
privateEndpoint 私人端點的資源。 私有端點
privateLinkServiceConnectionState 服務取用者與提供者之間連線狀態的相關信息集合。 PrivateLinkServiceConnectionState (必要)

PrivateLinkServiceConnectionState

名字 描述 價值
作必需 訊息,指出服務提供者上的變更是否需要取用者的任何更新。 字串
描述 核准/拒絕連線的原因。 字串
狀態 指出服務擁有者是否已核准/拒絕/移除連線。 「已核准」
“待定”
“被拒絕”

TrackedResourceTags

名字 描述 價值

UserAssignedIdentities

名字 描述 價值

UserAssignedIdentity

名字 描述 價值

ARM 樣本資源定義

帳戶資源類型可以使用目標作業來部署:

使用範例

Azure 快速入門範本

下列 Azure 快速入門範本 部署此資源類型。

範本 描述
建立IoT中樞帳戶的裝置更新

部署至 Azure
此範本會建立一個帳戶,提供公用 DNS 記錄,並允許對數據平面進行 REST API 呼叫。 然後,用戶必須在帳戶下建立實例,並將它與IoT中樞連結以開始使用服務。
建立IoT中樞帳戶、實例、IoT 中樞 的裝置更新

部署至 Azure
此範本會建立帳戶,以及實例和中樞來鏈接實例。 它會使用必要的存取原則、路由和取用者群組來設定中樞。

資源格式

若要建立 Microsoft.DeviceUpdate/accounts 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.DeviceUpdate/accounts",
  "apiVersion": "2023-07-01",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "location": "string",
  "properties": {
    "encryption": {
      "keyVaultKeyUri": "string",
      "userAssignedIdentity": "string"
    },
    "privateEndpointConnections": [
      {
        "properties": {
          "groupIds": [ "string" ],
          "privateEndpoint": {
          },
          "privateLinkServiceConnectionState": {
            "actionsRequired": "string",
            "description": "string",
            "status": "string"
          }
        }
      }
    ],
    "publicNetworkAccess": "string",
    "sku": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

Microsoft.DeviceUpdate/accounts

名字 描述 價值
apiVersion API 版本 '2023-07-01'
身分識別 用於資源的身分識別類型。 ManagedServiceIdentity
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 3
最大長度 = 24
模式 = ^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$ (必要)
性能 裝置更新帳戶屬性。 AccountProperties
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
型別 資源類型 “Microsoft.DeviceUpdate/帳戶”

AccountProperties

名字 描述 價值
加密 待用 CMK 加密屬性 加密
privateEndpoint連接 與帳戶相關聯的私人端點連線清單。 PrivateEndpointConnection[]
公共網路存取 帳戶是否允許公用網路存取。 “已禁用”
“已啟用”
SKU 裝置更新 Sku “免費”
“標準”

加密

名字 描述 價值
keyVaultKeyUri 金鑰 金鑰保存庫的 URI 字串
使用者指定身份 要用於金鑰保存庫存取之使用者指派身分識別的完整 resourceId。 身分識別也必須指派給帳戶 字串

ManagedServiceIdentity

名字 描述 價值
型別 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 “無”
“系統分配”
'SystemAssigned,UserAssigned'
'UserAssigned' (必要)
使用者指派的身份 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 UserAssignedIdentities

私有端點

名字 描述 價值

PrivateEndpointConnection

名字 描述 價值
性能 資源屬性。 PrivateEndpointConnectionProperties (必要)

PrivateEndpointConnectionProperties

名字 描述 價值
群組ID 群組標識碼的陣列。 字串[]
privateEndpoint 私人端點的資源。 私有端點
privateLinkServiceConnectionState 服務取用者與提供者之間連線狀態的相關信息集合。 PrivateLinkServiceConnectionState (必要)

PrivateLinkServiceConnectionState

名字 描述 價值
作必需 訊息,指出服務提供者上的變更是否需要取用者的任何更新。 字串
描述 核准/拒絕連線的原因。 字串
狀態 指出服務擁有者是否已核准/拒絕/移除連線。 「已核准」
“待定”
“被拒絕”

TrackedResourceTags

名字 描述 價值

UserAssignedIdentities

名字 描述 價值

UserAssignedIdentity

名字 描述 價值

Terraform (AzAPI 提供者) 資源定義

帳戶資源類型可以使用目標作業來部署:

  • 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。

使用範例

Terraform 範例

部署 IoT 中樞裝置更新帳戶的基本範例。

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westeurope"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "account" {
  type      = "Microsoft.DeviceUpdate/accounts@2022-10-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      publicNetworkAccess = "Enabled"
      sku                 = "Standard"
    }

  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

資源格式

若要建立 Microsoft.DeviceUpdate/accounts 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DeviceUpdate/accounts@2023-07-01"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      encryption = {
        keyVaultKeyUri = "string"
        userAssignedIdentity = "string"
      }
      privateEndpointConnections = [
        {
          properties = {
            groupIds = [
              "string"
            ]
            privateEndpoint = {
            }
            privateLinkServiceConnectionState = {
              actionsRequired = "string"
              description = "string"
              status = "string"
            }
          }
        }
      ]
      publicNetworkAccess = "string"
      sku = "string"
    }
  }
}

屬性值

Microsoft.DeviceUpdate/accounts

名字 描述 價值
身分識別 用於資源的身分識別類型。 ManagedServiceIdentity
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 3
最大長度 = 24
模式 = ^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$ (必要)
性能 裝置更新帳戶屬性。 AccountProperties
標籤 資源標籤 標記名稱和值的字典。
型別 資源類型 “Microsoft.DeviceUpdate/accounts@2023-07-01”

AccountProperties

名字 描述 價值
加密 待用 CMK 加密屬性 加密
privateEndpoint連接 與帳戶相關聯的私人端點連線清單。 PrivateEndpointConnection[]
公共網路存取 帳戶是否允許公用網路存取。 “已禁用”
“已啟用”
SKU 裝置更新 Sku “免費”
“標準”

加密

名字 描述 價值
keyVaultKeyUri 金鑰 金鑰保存庫的 URI 字串
使用者指定身份 要用於金鑰保存庫存取之使用者指派身分識別的完整 resourceId。 身分識別也必須指派給帳戶 字串

ManagedServiceIdentity

名字 描述 價值
型別 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 “無”
“系統分配”
'SystemAssigned,UserAssigned'
'UserAssigned' (必要)
使用者指派的身份 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 UserAssignedIdentities

私有端點

名字 描述 價值

PrivateEndpointConnection

名字 描述 價值
性能 資源屬性。 PrivateEndpointConnectionProperties (必要)

PrivateEndpointConnectionProperties

名字 描述 價值
群組ID 群組標識碼的陣列。 字串[]
privateEndpoint 私人端點的資源。 私有端點
privateLinkServiceConnectionState 服務取用者與提供者之間連線狀態的相關信息集合。 PrivateLinkServiceConnectionState (必要)

PrivateLinkServiceConnectionState

名字 描述 價值
作必需 訊息,指出服務提供者上的變更是否需要取用者的任何更新。 字串
描述 核准/拒絕連線的原因。 字串
狀態 指出服務擁有者是否已核准/拒絕/移除連線。 「已核准」
“待定”
“被拒絕”

TrackedResourceTags

名字 描述 價值

UserAssignedIdentities

名字 描述 價值

UserAssignedIdentity

名字 描述 價值