共用方式為


Microsoft.DevCenter 專案/集區 2023-08-01-preview

Bicep 資源定義

專案/集區資源類型可以使用目標作業來部署:

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

資源格式

若要建立 Microsoft.DevCenter/projects/pools 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.DevCenter/projects/pools@2023-08-01-preview' = {
  parent: resourceSymbolicName
  location: 'string'
  name: 'string'
  properties: {
    devBoxDefinitionName: 'string'
    licenseType: 'string'
    localAdministrator: 'string'
    networkConnectionName: 'string'
    singleSignOnStatus: 'string'
    stopOnDisconnect: {
      gracePeriodMinutes: int
      status: 'string'
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

Microsoft.DevCenter/projects/pools

名字 描述 價值
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 3
最大長度 = 63
模式 = ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$ (必要)
父母 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型資源的符號名稱:專案
性能 集區屬性 PoolProperties
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

PoolProperties

名字 描述 價值
devBoxDefinitionName 此集區父專案中的 Dev Box 定義名稱 字串
licenseType 指定授權類型,指出呼叫端已取得即將建立之開發方塊的授權。 'Windows_Client'
localAdministrator 指出此集區中的開發方塊擁有者是否新增為開發人員 Box 上的本機系統管理員。 'Disabled'
'Enabled'
networkConnectionName 此集區父專案中的網路連線名稱 字串
singleSignOnStatus 指出是否在此集區中建立已啟用單一登錄的開發人員方塊。 也需要在租用戶上啟用單一登錄。 'Disabled'
'Enabled'
stopOnDisconnect 停止在此集區中建立之開發方塊的中斷聯機組態設定。 StopOnDisconnectConfiguration

StopOnDisconnectConfiguration

名字 描述 價值
gracePeriodMinutes 偵測到中斷連線之後,在停止開發方塊之前所要等候的指定時間。 int
地位 啟用寬限期后,是否要在中斷連線時停止開發方塊的功能。 'Disabled'
'Enabled'

TrackedResourceTags

名字 描述 價值

快速入門範例

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

Bicep 檔案 描述
設定開發箱服務 此範本會根據 Dev Box 快速入門指南 (/azure/dev-box/quickstart-create-dev-box) 建立所有 Dev Box 管理員資源。 您可以檢視所有建立的資源,或直接移至 DevPortal.microsoft.com 來建立您的第一個開發方塊。
使用內建映射部署 Dev Box Service 此範本提供使用內建映射部署Dev Box服務的方式。

ARM 樣本資源定義

專案/集區資源類型可以使用目標作業來部署:

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

資源格式

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

{
  "type": "Microsoft.DevCenter/projects/pools",
  "apiVersion": "2023-08-01-preview",
  "name": "string",
  "location": "string",
  "properties": {
    "devBoxDefinitionName": "string",
    "licenseType": "string",
    "localAdministrator": "string",
    "networkConnectionName": "string",
    "singleSignOnStatus": "string",
    "stopOnDisconnect": {
      "gracePeriodMinutes": "int",
      "status": "string"
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

Microsoft.DevCenter/projects/pools

名字 描述 價值
apiVersion API 版本 '2023-08-01-preview'
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 3
最大長度 = 63
模式 = ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$ (必要)
性能 集區屬性 PoolProperties
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
類型 資源類型 'Microsoft.DevCenter/projects/pools'

PoolProperties

名字 描述 價值
devBoxDefinitionName 此集區父專案中的 Dev Box 定義名稱 字串
licenseType 指定授權類型,指出呼叫端已取得即將建立之開發方塊的授權。 'Windows_Client'
localAdministrator 指出此集區中的開發方塊擁有者是否新增為開發人員 Box 上的本機系統管理員。 'Disabled'
'Enabled'
networkConnectionName 此集區父專案中的網路連線名稱 字串
singleSignOnStatus 指出是否在此集區中建立已啟用單一登錄的開發人員方塊。 也需要在租用戶上啟用單一登錄。 'Disabled'
'Enabled'
stopOnDisconnect 停止在此集區中建立之開發方塊的中斷聯機組態設定。 StopOnDisconnectConfiguration

StopOnDisconnectConfiguration

名字 描述 價值
gracePeriodMinutes 偵測到中斷連線之後,在停止開發方塊之前所要等候的指定時間。 int
地位 啟用寬限期后,是否要在中斷連線時停止開發方塊的功能。 'Disabled'
'Enabled'

TrackedResourceTags

名字 描述 價值

快速入門範本

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

範本 描述
設定開發箱服務

部署至 Azure
此範本會根據 Dev Box 快速入門指南 (/azure/dev-box/quickstart-create-dev-box) 建立所有 Dev Box 管理員資源。 您可以檢視所有建立的資源,或直接移至 DevPortal.microsoft.com 來建立您的第一個開發方塊。
使用內建映射部署 Dev Box Service

部署至 Azure
此範本提供使用內建映射部署Dev Box服務的方式。

Terraform (AzAPI 提供者) 資源定義

專案/集區資源類型可以使用目標作業來部署:

  • 資源群組

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DevCenter/projects/pools@2023-08-01-preview"
  name = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      devBoxDefinitionName = "string"
      licenseType = "string"
      localAdministrator = "string"
      networkConnectionName = "string"
      singleSignOnStatus = "string"
      stopOnDisconnect = {
        gracePeriodMinutes = int
        status = "string"
      }
    }
  })
}

屬性值

Microsoft.DevCenter/projects/pools

名字 描述 價值
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 3
最大長度 = 63
模式 = ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$ (必要)
parent_id 此資源為父系之資源的標識碼。 類型的資源標識碼:專案
性能 集區屬性 PoolProperties
標籤 資源標籤 標記名稱和值的字典。
類型 資源類型 “Microsoft.DevCenter/projects/pools@2023-08-01-preview”

PoolProperties

名字 描述 價值
devBoxDefinitionName 此集區父專案中的 Dev Box 定義名稱 字串
licenseType 指定授權類型,指出呼叫端已取得即將建立之開發方塊的授權。 'Windows_Client'
localAdministrator 指出此集區中的開發方塊擁有者是否新增為開發人員 Box 上的本機系統管理員。 'Disabled'
'Enabled'
networkConnectionName 此集區父專案中的網路連線名稱 字串
singleSignOnStatus 指出是否在此集區中建立已啟用單一登錄的開發人員方塊。 也需要在租用戶上啟用單一登錄。 'Disabled'
'Enabled'
stopOnDisconnect 停止在此集區中建立之開發方塊的中斷聯機組態設定。 StopOnDisconnectConfiguration

StopOnDisconnectConfiguration

名字 描述 價值
gracePeriodMinutes 偵測到中斷連線之後,在停止開發方塊之前所要等候的指定時間。 int
地位 啟用寬限期后,是否要在中斷連線時停止開發方塊的功能。 'Disabled'
'Enabled'

TrackedResourceTags

名字 描述 價值