共用方式為


Microsoft.Maps 帳戶 2021-12-01-preview

Bicep 資源定義

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

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

資源格式

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

resource symbolicname 'Microsoft.Maps/accounts@2021-12-01-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  sku: {
    name: 'string'
  }
  kind: 'string'
  identity: {
    type: 'string'
    userAssignedIdentities: {}
  }
  properties: {
    cors: {
      corsRules: [
        {
          allowedOrigins: [
            'string'
          ]
        }
      ]
    }
    disableLocalAuth: bool
    linkedResources: [
      {
        id: 'string'
        uniqueName: 'string'
      }
    ]
  }
}

屬性值

accounts

名稱 描述
NAME 資源名稱 字串 (必要)

字元限制:資源組名和帳戶名稱) 1-98 (

有效字元:
英數字元、底線、句號和連字號。

以英數字元開頭。
location 資源所在的地理位置 字串 (必要)
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標記
sku 此帳戶的 SKU。 需要 sku ()
kind 取得或設定 Kind 屬性。 'Gen1'
'Gen2'
身分識別 設定地圖帳戶的識別屬性。 ManagedServiceIdentity
properties 地圖帳戶屬性。 MapsAccountProperties

ManagedServiceIdentity

名稱 描述
類型 識別類型。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源識別碼:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 object

MapsAccountProperties

名稱 描述
cors 指定 Blob 服務的 CORS 規則。 您可以在要求中包含最多五個 CorsRule 元素。 如果要求本文中未包含 CorsRule 元素,則會刪除所有 CORS 規則,而且 Blob 服務將會停用 CORS。 CorsRules
disableLocalAuth 允許Azure 原則上的切換功能停用本機驗證支援Azure 地圖服務。 這會從任何使用方式停用共用金鑰驗證。 bool
linkedResources 設定要用於對應帳戶資源的受控識別型作業的資源。 LinkedResource[]

約束:
最大長度 = 10

CorsRules

名稱 描述
corsRules CORS 規則的清單。 您可以在要求中包含最多五個 CorsRule 元素。 CorsRule[]

約束:
最大長度 = 5

CorsRule

名稱 描述
allowedOrigins 如果 CorsRule 元素存在,則為必要專案。 可透過 CORS 或 「*」 允許所有網域的原始網域清單 string[] (必要)

LinkedResource

名稱 描述
id 格式為'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}' 的 ARM 資源識別碼。 需要字串 ()
uniqueName 提供的名稱,可唯一識別連結的資源。 需要字串 ()

SKU

名稱 描述
NAME SKU 的名稱,以標準格式 (,例如 S0) 。 'G2'
'S0'
需要 'S1' ()

快速入門範本

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

範本 描述
RBAC - 在 Azure 地圖服務 帳戶上建立受控識別存取

部署至 Azure
此範本會建立受控識別,並將其存取權指派給已建立的 Azure 地圖服務 帳戶。
部署Azure 地圖服務

部署至 Azure
此範本會部署和Azure 地圖服務帳戶,並列出主鍵。
使用Azure 地圖服務 Creator (室內地圖) 部署Azure 地圖服務

部署至 Azure
此範本會使用室內地圖建立工具功能來部署和Azure 地圖服務帳戶,以允許建置室內地圖。
建立儲存在 Azure 金鑰保存庫 中的Azure 地圖服務 SAS 權杖

部署至 Azure
此範本會部署和Azure 地圖服務帳戶,並根據要儲存在 Azure 金鑰保存庫秘密中提供的使用者指派身分識別來列出 Sas 權杖。

ARM 範本資源定義

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

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

資源格式

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

{
  "type": "Microsoft.Maps/accounts",
  "apiVersion": "2021-12-01-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "sku": {
    "name": "string"
  },
  "kind": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {}
  },
  "properties": {
    "cors": {
      "corsRules": [
        {
          "allowedOrigins": [ "string" ]
        }
      ]
    },
    "disableLocalAuth": "bool",
    "linkedResources": [
      {
        "id": "string",
        "uniqueName": "string"
      }
    ]
  }
}

屬性值

accounts

名稱 描述
類型 資源類型 'Microsoft.Maps/accounts'
apiVersion 資源 API 版本 '2021-12-01-preview'
NAME 資源名稱 需要字串 ()

字元限制:資源組名和帳戶名稱的 1-98 ()

有效字元:
英數字元、底線、句號和連字號。

以英數字元開頭。
location 資源所在的地理位置 需要字串 ()
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標籤
sku 此帳戶的 SKU。 需要 sku ()
kind Get 或 Set Kind 屬性。 'Gen1'
'Gen2'
身分識別 設定地圖帳戶的識別屬性。 ManagedServiceIdentity
properties 對應帳戶屬性。 MapsAccountProperties

ManagedServiceIdentity

名稱 描述
類型 識別類型。 'None'
'SystemAssigned'
'SystemAssigned, UserAssigned'
'UserAssigned'
userAssignedIdentities 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源識別碼:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 object

MapsAccountProperties

名稱 描述
cors 指定 Blob 服務的 CORS 規則。 您可以在要求中包含最多五個 CorsRule 元素。 如果要求本文中未包含 CorsRule 元素,則會刪除所有 CORS 規則,而且 Blob 服務將會停用 CORS。 CorsRules
disableLocalAuth 允許Azure 原則上的切換功能停用本機驗證支援Azure 地圖服務。 這會從任何使用方式停用共用金鑰驗證。 bool
linkedResources 設定要用於對應帳戶資源的受控識別型作業的資源。 LinkedResource[]

約束:
最大長度 = 10

CorsRules

名稱 描述
corsRules CORS 規則的清單。 您可以在要求中包含最多五個 CorsRule 元素。 CorsRule[]

約束:
最大長度 = 5

CorsRule

名稱 描述
allowedOrigins 如果 CorsRule 元素存在,則為必要專案。 可透過 CORS 或 「*」 允許所有網域的原始網域清單 string[] (必要)

LinkedResource

名稱 描述
id 格式為 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}' 的 ARM 資源識別碼。 字串 (必要)
uniqueName 提供的名稱,可唯一識別連結的資源。 字串 (必要)

SKU

名稱 描述
NAME SKU 的名稱,以標準格式 (,例如 S0) 。 'G2'
'S0'
'S1' (必要)

快速入門範本

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

範本 描述
RBAC - 在 Azure 地圖服務 帳戶上建立受控識別存取

部署至 Azure
此範本會建立受控識別,並將其存取權指派給建立的Azure 地圖服務帳戶。
部署Azure 地圖服務

部署至 Azure
此範本會部署和Azure 地圖服務帳戶,並列出主鍵。
使用Azure 地圖服務建立者 (室內地圖) 部署Azure 地圖服務

部署至 Azure
此範本會部署和Azure 地圖服務帳戶與室內地圖建立工具功能,以允許建置室內地圖。
建立儲存在 Azure 金鑰保存庫中的Azure 地圖服務 SAS 權杖

部署至 Azure
此範本會部署和Azure 地圖服務帳戶,並根據所提供的使用者指派身分識別來列出 Sas 權杖,以儲存在 Azure 金鑰保存庫秘密中。

Terraform (AzAPI 提供者) 資源定義

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

  • 資源群組

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Maps/accounts@2021-12-01-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  identity {
    type = "string"
    identity_ids = []
  }
  body = jsonencode({
    properties = {
      cors = {
        corsRules = [
          {
            allowedOrigins = [
              "string"
            ]
          }
        ]
      }
      disableLocalAuth = bool
      linkedResources = [
        {
          id = "string"
          uniqueName = "string"
        }
      ]
    }
    sku = {
      name = "string"
    }
    kind = "string"
  })
}

屬性值

accounts

名稱 描述
類型 資源類型 「Microsoft.Maps/accounts@2021-12-01-preview」
NAME 資源名稱 字串 (必要)

字元限制:資源組名和帳戶名稱) 1-98 (

有效字元:
英數字元、底線、句號和連字號。

以英數字元開頭。
location 資源所在的地理位置 字串 (必要)
parent_id 若要部署至資源群組,請使用該資源群組的識別碼。 字串 (必要)
tags 資源標籤。 標記名稱和值的字典。
sku 此帳戶的 SKU。 需要 sku ()
kind 取得或設定 Kind 屬性。 「Gen1」
「Gen2」
身分識別 設定地圖帳戶的識別屬性。 ManagedServiceIdentity
properties 地圖帳戶屬性。 MapsAccountProperties

ManagedServiceIdentity

名稱 描述
類型 識別類型。 「SystemAssigned」
「SystemAssigned, UserAssigned」
「UserAssigned」
identity_ids 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源識別碼:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 使用者身分識別識別碼的陣列。

MapsAccountProperties

名稱 描述
cors 指定 Blob 服務的 CORS 規則。 您可以在要求中包含最多五個 CorsRule 元素。 如果要求本文中未包含 CorsRule 元素,則會刪除所有 CORS 規則,而且 Blob 服務將會停用 CORS。 CorsRules
disableLocalAuth 允許Azure 原則上的切換功能停用本機驗證支援Azure 地圖服務。 這會從任何使用方式停用共用金鑰驗證。 bool
linkedResources 設定要用於對應帳戶資源的受控識別型作業的資源。 LinkedResource[]

約束:
最大長度 = 10

CorsRules

名稱 描述
corsRules CORS 規則的清單。 您可以在要求中包含最多五個 CorsRule 元素。 CorsRule[]

約束:
最大長度 = 5

CorsRule

名稱 描述
allowedOrigins 如果 CorsRule 元素存在,則為必要專案。 可透過 CORS 或 「*」 允許所有網域的原始網域清單 string[] (必要)

LinkedResource

名稱 描述
id 格式為 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}' 的 ARM 資源識別碼。 字串 (必要)
uniqueName 提供的名稱,可唯一識別連結的資源。 字串 (必要)

SKU

名稱 描述
NAME SKU 的名稱,以標準格式 (,例如 S0) 。 「G2」
「S0」
「S1」 (必要)