Microsoft.Compute 資源庫 2022-03-03
Bicep 資源定義
資源庫資源類型可以使用目標作業進行部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.Compute/galleries 資源,請將下列 Bicep 新增至您的範本。
resource symbolicname 'Microsoft.Compute/galleries@2022-03-03' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
properties: {
description: 'string'
identifier: {}
sharingProfile: {
communityGalleryInfo: {
eula: 'string'
publicNamePrefix: 'string'
publisherContact: 'string'
publisherUri: 'string'
}
permissions: 'string'
}
softDeletePolicy: {
isSoftDeleteEnabled: bool
}
}
}
屬性值
galleries
名稱 | 描述 | 值 |
---|---|---|
NAME | 資源名稱 | 字串 (必要) 字元限制:1-80 合法字元: 英數字元和句號。 以英數字元開頭及結尾。 |
location | 資源位置 | 字串 (必要) |
tags | 資源標籤 | 標記名稱和值的字典。 請參閱 範本中的標記 |
properties | 描述 共用映像庫 的屬性。 | GalleryProperties |
GalleryProperties
名稱 | 描述 | 值 |
---|---|---|
description | 此 共用映像庫 資源的描述。 這個屬性是可更新的。 | 字串 |
識別碼 (identifier) | 描述資源庫唯一名稱。 | GalleryIdentifier |
sharingProfile | 資源庫共用至訂用帳戶或租使用者的配置檔 | SharingProfile |
softDeletePolicy | 包含資源庫虛刪除原則的相關信息。 | SoftDeletePolicy |
GalleryIdentifier
此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。
SharingProfile
名稱 | 描述 | 值 |
---|---|---|
communityGalleryInfo | 如果目前資源庫共用給社群,則社群資源庫的資訊。 | CommunityGalleryInfo |
權限 | 此屬性可讓您指定共用資源庫的許可權。 可能的值包括: 私人 群組 社群 |
'Community' 'Groups' 'Private' |
CommunityGalleryInfo
名稱 | 描述 | 值 |
---|---|---|
Eula | 社群資源庫映像的使用者許可協定。 | 字串 |
publicNamePrefix | 將公開顯示之資源庫名稱的前置詞。 所有使用者都能看見。 | 字串 |
publisherContact | 社群資源庫發行者支持電子郵件。 發行者的電子郵件位址。 所有使用者都能看見。 | 字串 |
publisherUri | 發行者網站的連結。 所有使用者都能看見。 | 字串 |
SoftDeletePolicy
名稱 | 描述 | 值 |
---|---|---|
isSoftDeleteEnabled | 啟用此資源庫中資源的虛刪除,使其可在保留時間內復原。 | bool |
快速入門範本
下列快速入門範本會部署此資源類型。
範本 | 描述 |
---|---|
使用 Azure Windows 基準的 Azure Image Builder |
建立 Azure Image Builder 環境並建置 Windows Server 映射,並套用最新的 Windows 匯報 和 Azure Windows 基準。 |
建立 Azure Compute Gallery |
此課程模組會建立具有 apiVersion 2019-12-01 的 Azure 計算資源庫資源。 |
建立 Azure 計算資源庫 |
此範本可讓您建立 Azure 計算資源庫。 |
設定開發箱服務 |
此範本會根據 Dev Box 快速入門指南建立所有 Dev Box 系統管理員資源。 您可以檢視所有已建立的資源,或直接移至 DevPortal.microsoft.com,以建立您的第一個開發箱。 |
ARM 範本資源定義
資源庫資源類型可以使用目標作業進行部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.Compute/galleries 資源,請將下列 JSON 新增至您的範本。
{
"type": "Microsoft.Compute/galleries",
"apiVersion": "2022-03-03",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"properties": {
"description": "string",
"identifier": {},
"sharingProfile": {
"communityGalleryInfo": {
"eula": "string",
"publicNamePrefix": "string",
"publisherContact": "string",
"publisherUri": "string"
},
"permissions": "string"
},
"softDeletePolicy": {
"isSoftDeleteEnabled": "bool"
}
}
}
屬性值
galleries
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 'Microsoft.Compute/galleries' |
apiVersion | 資源 API 版本 | '2022-03-03' |
NAME | 資源名稱 | 字串 (必要) 字元限制:1-80 合法字元: 英數字元和句號。 以英數字元開頭及結尾。 |
location | 資源位置 | 字串 (必要) |
tags | 資源標籤 | 標記名稱和值的字典。 請參閱 範本中的標記 |
properties | 描述 共用映像庫 的屬性。 | GalleryProperties |
GalleryProperties
名稱 | 描述 | 值 |
---|---|---|
description | 此 共用映像庫 資源的描述。 這個屬性是可更新的。 | 字串 |
識別碼 (identifier) | 描述資源庫唯一名稱。 | GalleryIdentifier |
sharingProfile | 資源庫共用至訂用帳戶或租使用者的配置檔 | SharingProfile |
softDeletePolicy | 包含資源庫虛刪除原則的相關信息。 | SoftDeletePolicy |
GalleryIdentifier
此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。
SharingProfile
名稱 | 描述 | 值 |
---|---|---|
communityGalleryInfo | 如果目前資源庫共用給社群,則社群資源庫的資訊。 | CommunityGalleryInfo |
權限 | 此屬性可讓您指定共用資源庫的許可權。 可能的值包括: 私人 群組 社群 |
'Community' 'Groups' 'Private' |
CommunityGalleryInfo
名稱 | 描述 | 值 |
---|---|---|
Eula | 社群資源庫映像的使用者許可協定。 | 字串 |
publicNamePrefix | 將公開顯示之資源庫名稱的前置詞。 所有使用者都能看見。 | 字串 |
publisherContact | 社群資源庫發行者支持電子郵件。 發行者的電子郵件位址。 所有使用者都能看見。 | 字串 |
publisherUri | 發行者網站的連結。 所有使用者都能看見。 | 字串 |
SoftDeletePolicy
名稱 | 描述 | 值 |
---|---|---|
isSoftDeleteEnabled | 啟用此資源庫中資源的虛刪除,使其可在保留時間內復原。 | bool |
快速入門範本
下列快速入門範本會部署此資源類型。
範本 | 描述 |
---|---|
使用 Azure Windows 基準的 Azure Image Builder |
建立 Azure Image Builder 環境並建置 Windows Server 映射,並套用最新的 Windows 匯報 和 Azure Windows 基準。 |
建立 Azure Compute Gallery |
此課程模組會建立具有 apiVersion 2019-12-01 的 Azure 計算資源庫資源。 |
建立 Azure 計算資源庫 |
此範本可讓您建立 Azure 計算資源庫。 |
設定開發箱服務 |
此範本會根據 Dev Box 快速入門指南建立所有 Dev Box 系統管理員資源。 您可以檢視所有已建立的資源,或直接移至 DevPortal.microsoft.com,以建立您的第一個開發箱。 |
Terraform (AzAPI 提供者) 資源定義
資源庫資源類型可以使用目標作業進行部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.Compute/galleries 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Compute/galleries@2022-03-03"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
body = jsonencode({
properties = {
description = "string"
identifier = {}
sharingProfile = {
communityGalleryInfo = {
eula = "string"
publicNamePrefix = "string"
publisherContact = "string"
publisherUri = "string"
}
permissions = "string"
}
softDeletePolicy = {
isSoftDeleteEnabled = bool
}
}
})
}
屬性值
galleries
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | “Microsoft.Compute/galleries@2022-03-03” |
NAME | 資源名稱 | 字串 (必要) 字元限制:1-80 合法字元: 英數字元和句號。 以英數字元開頭及結尾。 |
location | 資源位置 | 字串 (必要) |
parent_id | 若要部署至資源群組,請使用該資源群組的標識碼。 | 字串 (必要) |
tags | 資源標籤 | 標記名稱和值的字典。 |
properties | 描述 共用映像庫 的屬性。 | GalleryProperties |
GalleryProperties
名稱 | 描述 | 值 |
---|---|---|
description | 此 共用映像庫 資源的描述。 這個屬性是可更新的。 | 字串 |
識別碼 (identifier) | 描述資源庫唯一名稱。 | GalleryIdentifier |
sharingProfile | 資源庫共用至訂用帳戶或租使用者的配置檔 | SharingProfile |
softDeletePolicy | 包含資源庫虛刪除原則的相關信息。 | SoftDeletePolicy |
GalleryIdentifier
此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。
SharingProfile
名稱 | 描述 | 值 |
---|---|---|
communityGalleryInfo | 如果目前資源庫共用給社群,則社群資源庫的資訊。 | CommunityGalleryInfo |
權限 | 此屬性可讓您指定共用資源庫的許可權。 可能的值包括: 私人 群組 社群 |
“Community” “Groups” “Private” |
CommunityGalleryInfo
名稱 | 描述 | 值 |
---|---|---|
Eula | 社群資源庫映像的使用者許可協定。 | 字串 |
publicNamePrefix | 將公開顯示之資源庫名稱的前置詞。 所有使用者都能看見。 | 字串 |
publisherContact | 社群資源庫發行者支持電子郵件。 發行者的電子郵件位址。 所有使用者都能看見。 | 字串 |
publisherUri | 發行者網站的連結。 所有使用者都能看見。 | 字串 |
SoftDeletePolicy
名稱 | 描述 | 值 |
---|---|---|
isSoftDeleteEnabled | 啟用此資源庫中資源的虛刪除,使其可在保留時間內復原。 | bool |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應