Bicep 資源定義
月臺/位置/部署資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Web/sites/slots/deployments 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Web/sites/slots/deployments@2025-03-01' = {
parent: resourceSymbolicName
kind: 'string'
name: 'string'
properties: {
active: bool
author: 'string'
author_email: 'string'
deployer: 'string'
details: 'string'
end_time: 'string'
message: 'string'
start_time: 'string'
status: int
}
}
屬性值
Microsoft.Web/sites/slots/deployments
| 名稱 | Description | 價值觀 |
|---|---|---|
| 類型 | 資源種類。 | 字串 |
| 名稱 | 資源名稱 | 字串 (必要) |
| 父代 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型的資源符號名稱:月臺/位置 |
| properties | 部署資源特定屬性 | 部署屬性 |
部署屬性
| 名稱 | Description | 價值觀 |
|---|---|---|
| 活動中 | 如果部署目前為作用中,則為 True;如果已完成則為 false;如果未啟動則為 null。 | 布爾 (bool) |
| 作者 | 撰寫部署的人員。 | 字串 |
| author_email | 撰寫電子郵件。 | 字串 |
| 部署者 | 執行部署的人員。 | 字串 |
| details | 部署的詳細數據。 | 字串 |
| end_time | 結束時間。 | 字串 |
| 訊息 | 部署狀態的詳細數據。 | 字串 |
| 開始時間 | 開始時間。 | 字串 |
| 狀態 | 部署狀態。 | 整數 (int) |
ARM 樣本資源定義
月臺/位置/部署資源類型可以使用目標作業來部署:
使用範例
資源格式
若要建立 Microsoft.Web/sites/slots/deployments 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Web/sites/slots/deployments",
"apiVersion": "2025-03-01",
"name": "string",
"kind": "string",
"properties": {
"active": "bool",
"author": "string",
"author_email": "string",
"deployer": "string",
"details": "string",
"end_time": "string",
"message": "string",
"start_time": "string",
"status": "int"
}
}
屬性值
Microsoft.Web/sites/slots/deployments
| 名稱 | Description | 價值觀 |
|---|---|---|
| apiVersion | API 版本 | '2025-03-01' |
| 類型 | 資源種類。 | 字串 |
| 名稱 | 資源名稱 | 字串 (必要) |
| properties | 部署資源特定屬性 | 部署屬性 |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/deployments” |
部署屬性
| 名稱 | Description | 價值觀 |
|---|---|---|
| 活動中 | 如果部署目前為作用中,則為 True;如果已完成則為 false;如果未啟動則為 null。 | 布爾 (bool) |
| 作者 | 撰寫部署的人員。 | 字串 |
| author_email | 撰寫電子郵件。 | 字串 |
| 部署者 | 執行部署的人員。 | 字串 |
| details | 部署的詳細數據。 | 字串 |
| end_time | 結束時間。 | 字串 |
| 訊息 | 部署狀態的詳細數據。 | 字串 |
| 開始時間 | 開始時間。 | 字串 |
| 狀態 | 部署狀態。 | 整數 (int) |
Terraform (AzAPI 提供者) 資源定義
月臺/位置/部署資源類型可以使用目標作業來部署:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
資源格式
若要建立 Microsoft.Web/sites/slots/deployments 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Web/sites/slots/deployments@2025-03-01"
name = "string"
parent_id = "string"
body = {
kind = "string"
properties = {
active = bool
author = "string"
author_email = "string"
deployer = "string"
details = "string"
end_time = "string"
message = "string"
start_time = "string"
status = int
}
}
}
屬性值
Microsoft.Web/sites/slots/deployments
| 名稱 | Description | 價值觀 |
|---|---|---|
| 類型 | 資源種類。 | 字串 |
| 名稱 | 資源名稱 | 字串 (必要) |
| parent_id | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:月臺/位置 |
| properties | 部署資源特定屬性 | 部署屬性 |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/deployments@2025-03-01” |
部署屬性
| 名稱 | Description | 價值觀 |
|---|---|---|
| 活動中 | 如果部署目前為作用中,則為 True;如果已完成則為 false;如果未啟動則為 null。 | 布爾 (bool) |
| 作者 | 撰寫部署的人員。 | 字串 |
| author_email | 撰寫電子郵件。 | 字串 |
| 部署者 | 執行部署的人員。 | 字串 |
| details | 部署的詳細數據。 | 字串 |
| end_time | 結束時間。 | 字串 |
| 訊息 | 部署狀態的詳細數據。 | 字串 |
| 開始時間 | 開始時間。 | 字串 |
| 狀態 | 部署狀態。 | 整數 (int) |