Microsoft.ContainerRegistry registries/pipelineRuns 2021-08-01-preview
Bicep 資源定義
登錄/pipelineRuns 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.ContainerRegistry/registries/pipelineRuns 資源,請將下列 Bicep 新增至您的範本。
resource symbolicname 'Microsoft.ContainerRegistry/registries/pipelineRuns@2021-08-01-preview' = {
name: 'string'
parent: resourceSymbolicName
properties: {
forceUpdateTag: 'string'
request: {
artifacts: [
'string'
]
catalogDigest: 'string'
pipelineResourceId: 'string'
source: {
name: 'string'
type: 'AzureStorageBlob'
}
target: {
name: 'string'
type: 'AzureStorageBlob'
}
}
}
}
屬性值
registries/pipelineRuns
名稱 | 描述 | 值 |
---|---|---|
NAME | 資源名稱 瞭解如何在 Bicep中設定子資源的名稱和類型。 |
字串 (必要) |
父系 (parent) | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源之外宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型資源的符號名稱: 登錄 |
properties | 管線執行的屬性。 | PipelineRunProperties |
PipelineRunProperties
名稱 | 描述 | 值 |
---|---|---|
forceUpdateTag | 即使管線執行設定尚未變更,管線執行應該如何強制重新建立。 | 字串 |
要求 | 管線執行的要求參數。 | PipelineRunRequest |
PipelineRunRequest
名稱 | 描述 | 值 |
---|---|---|
artifacts | 要由管線傳輸的來源成品清單。 依存放庫 ('hello-world') 指定映射。 這會使用 'latest' 標記。 依標記指定影像 ('hello-world:latest') 。 依 sha256 型資訊清單摘要指定影像, ('hello-world@sha256:abc123') 。 |
string[] |
catalogDigest | 用來傳輸成品之 tar 的摘要。 | 字串 |
pipelineResourceId | 要執行的管線資源識別碼。 | 字串 |
source | 管線執行的來源屬性。 | PipelineRunSourceProperties |
目標 | 管線執行的目標屬性。 | PipelineRunTargetProperties |
PipelineRunSourceProperties
名稱 | 描述 | 值 |
---|---|---|
NAME | 來源的名稱。 | 字串 |
type | 來源的型別。 | 'AzureStorageBlob' |
PipelineRunTargetProperties
名稱 | 描述 | 值 |
---|---|---|
NAME | 目標的名稱。 | 字串 |
type | 目標類型。 | 'AzureStorageBlob' |
ARM 範本資源定義
登錄/pipelineRuns 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.ContainerRegistry/registries/pipelineRuns 資源,請將下列 JSON 新增至您的範本。
{
"type": "Microsoft.ContainerRegistry/registries/pipelineRuns",
"apiVersion": "2021-08-01-preview",
"name": "string",
"properties": {
"forceUpdateTag": "string",
"request": {
"artifacts": [ "string" ],
"catalogDigest": "string",
"pipelineResourceId": "string",
"source": {
"name": "string",
"type": "AzureStorageBlob"
},
"target": {
"name": "string",
"type": "AzureStorageBlob"
}
}
}
}
屬性值
registries/pipelineRuns
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 'Microsoft.ContainerRegistry/registries/pipelineRuns' |
apiVersion | 資源 API 版本 | '2021-08-01-preview' |
NAME | 資源名稱 請參閱如何在 JSON ARM 範本中設定子資源的名稱和類型。 |
字串 (必要) |
properties | 管線執行的屬性。 | PipelineRunProperties |
PipelineRunProperties
名稱 | 描述 | 值 |
---|---|---|
forceUpdateTag | 即使管線執行設定尚未變更,管線執行應該如何強制重新建立。 | 字串 |
要求 | 管線執行的要求參數。 | PipelineRunRequest |
PipelineRunRequest
名稱 | 描述 | 值 |
---|---|---|
artifacts | 要由管線傳輸的來源成品清單。 依存放庫 ('hello-world') 指定映射。 這會使用 'latest' 標記。 依標記指定影像 ('hello-world:latest') 。 依 sha256 型資訊清單摘要指定影像, ('hello-world@sha256:abc123') 。 |
string[] |
catalogDigest | 用來傳輸成品之 tar 的摘要。 | 字串 |
pipelineResourceId | 要執行的管線資源識別碼。 | 字串 |
source | 管線執行的來源屬性。 | PipelineRunSourceProperties |
目標 | 管線執行的目標屬性。 | PipelineRunTargetProperties |
PipelineRunSourceProperties
名稱 | 描述 | 值 |
---|---|---|
NAME | 來源的名稱。 | 字串 |
type | 來源的型別。 | 'AzureStorageBlob' |
PipelineRunTargetProperties
名稱 | 描述 | 值 |
---|---|---|
NAME | 目標的名稱。 | 字串 |
type | 目標類型。 | 'AzureStorageBlob' |
Terraform (AzAPI 提供者) 資源定義
登錄/pipelineRuns 資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.ContainerRegistry/registries/pipelineRuns 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.ContainerRegistry/registries/pipelineRuns@2021-08-01-preview"
name = "string"
parent_id = "string"
body = jsonencode({
properties = {
forceUpdateTag = "string"
request = {
artifacts = [
"string"
]
catalogDigest = "string"
pipelineResourceId = "string"
source = {
name = "string"
type = "AzureStorageBlob"
}
target = {
name = "string"
type = "AzureStorageBlob"
}
}
}
})
}
屬性值
registries/pipelineRuns
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 「Microsoft.ContainerRegistry/registries/pipelineRuns@2021-08-01-preview」 |
NAME | 資源名稱 | 字串 (必要) |
parent_id | 此資源之父系的資源識別碼。 | 類型資源的 識別碼:登錄 |
properties | 管線執行的屬性。 | PipelineRunProperties |
PipelineRunProperties
名稱 | 描述 | 值 |
---|---|---|
forceUpdateTag | 即使管線執行設定尚未變更,管線執行應該如何強制重新建立。 | 字串 |
要求 | 管線執行的要求參數。 | PipelineRunRequest |
PipelineRunRequest
名稱 | 描述 | 值 |
---|---|---|
artifacts | 管線要傳送的來源成品清單。 依存放庫 ('hello-world') 指定映射。 這會使用 'latest' 標籤。 依標記指定影像 ('hello-world:latest') 。 依 sha256 型資訊清單摘要指定映射, ('hello-world@sha256:abc123') 。 |
string[] |
catalogDigest | 用來傳輸成品的 tar 摘要。 | 字串 |
pipelineResourceId | 要執行之管線的資源識別碼。 | 字串 |
source | 管線執行的來源屬性。 | PipelineRunSourceProperties |
目標 | 管線執行的目標屬性。 | PipelineRunTargetProperties |
PipelineRunSourceProperties
名稱 | 描述 | 值 |
---|---|---|
NAME | 來源的名稱。 | 字串 |
type | 來源的型別。 | 「AzureStorageBlob」 |
PipelineRunTargetProperties
名稱 | 描述 | 值 |
---|---|---|
NAME | 目標的名稱。 | 字串 |
type | 目標類型。 | 「AzureStorageBlob」 |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應