Bicep 資源定義
月臺資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
使用範例
Azure 已驗證的模組
下列 Azure 驗證模組 可用來部署此資源類型。
| 模組 | 描述 |
|---|---|
| 邊緣站 | 邊緣站點用 AVM 資源模組 |
| 邊緣站點 - 資源群組範圍 | 邊緣站點 AVM 資源模組 - 資源群組範圍 |
| Edge 網站 - 訂閱範圍 | 邊緣站點 AVM 資源模組 - 訂閱範圍 |
資源格式
若要建立 Microsoft.Edge/sites 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Edge/sites@2025-06-01' = {
scope: resourceSymbolicName or scope
name: 'string'
properties: {
description: 'string'
displayName: 'string'
labels: {
{customized property}: 'string'
}
siteAddress: {
city: 'string'
country: 'string'
postalCode: 'string'
stateOrProvince: 'string'
streetAddress1: 'string'
streetAddress2: 'string'
}
}
}
屬性值
Microsoft.Edge/網站
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 資源名稱 | 字串 約束: 模式 = ^[a-zA-Z0-9][a-zA-Z0-9-_]{2,22}[a-zA-Z0-9]$ (必要) |
| 性能 | 此資源的資源特定屬性。 | SiteProperties |
| 範圍 | 在與部署範圍不同的範圍內建立資源時,請使用 。 | 將此屬性設定為要套用 擴充資源的資源符號名稱。 |
SiteAddressProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 城市 | 位址所在的城市 | 字串 |
| 國家 | 位址所在的國家/地區 | 字串 |
| 郵遞區號 | 地址的郵遞區號 | 字串 |
| stateOrProvince (省份) | 位址所在的州或省 | 字串 |
| streetAddress1 | 街道位址的第一行 | 字串 |
| streetAddress2 | 街道位址的第二行 | 字串 |
SiteProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 描述 | 網站資源的描述 | 字串 |
| 顯示名稱 | 網站資源的 displayName | 字串 |
| 標籤 | 用於標記網站資源的鍵值對。 | SiteProperties標籤 |
| siteAddress | 網站的實際位址 | SiteAddressProperties |
SiteProperties標籤
| 名字 | 描述 | 價值 |
|---|
ARM 樣本資源定義
月臺資源類型可以使用目標作業來部署:
使用範例
資源格式
若要建立 Microsoft.Edge/sites 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Edge/sites",
"apiVersion": "2025-06-01",
"name": "string",
"properties": {
"description": "string",
"displayName": "string",
"labels": {
"{customized property}": "string"
},
"siteAddress": {
"city": "string",
"country": "string",
"postalCode": "string",
"stateOrProvince": "string",
"streetAddress1": "string",
"streetAddress2": "string"
}
}
}
屬性值
Microsoft.Edge/網站
| 名字 | 描述 | 價值 |
|---|---|---|
| apiVersion | API 版本 | '2025-06-01' |
| 名字 | 資源名稱 | 字串 約束: 模式 = ^[a-zA-Z0-9][a-zA-Z0-9-_]{2,22}[a-zA-Z0-9]$ (必要) |
| 性能 | 此資源的資源特定屬性。 | SiteProperties |
| 型別 | 資源類型 | “Microsoft.Edge/sites” |
SiteAddressProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 城市 | 位址所在的城市 | 字串 |
| 國家 | 位址所在的國家/地區 | 字串 |
| 郵遞區號 | 地址的郵遞區號 | 字串 |
| stateOrProvince (省份) | 位址所在的州或省 | 字串 |
| streetAddress1 | 街道位址的第一行 | 字串 |
| streetAddress2 | 街道位址的第二行 | 字串 |
SiteProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 描述 | 網站資源的描述 | 字串 |
| 顯示名稱 | 網站資源的 displayName | 字串 |
| 標籤 | 用於標記網站資源的鍵值對。 | SiteProperties標籤 |
| siteAddress | 網站的實際位址 | SiteAddressProperties |
SiteProperties標籤
| 名字 | 描述 | 價值 |
|---|
Terraform (AzAPI 提供者) 資源定義
月臺資源類型可以使用目標作業來部署:
- 訂閱* 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
使用範例
Azure 已驗證的模組
下列 Azure 驗證模組 可用來部署此資源類型。
| 模組 | 描述 |
|---|---|
| Azure Arc Site Manager | 適用於 Azure Arc Site Manager 的 AVM 資源模組 |
資源格式
若要建立 Microsoft.Edge/sites 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Edge/sites@2025-06-01"
name = "string"
parent_id = "string"
body = {
properties = {
description = "string"
displayName = "string"
labels = {
{customized property} = "string"
}
siteAddress = {
city = "string"
country = "string"
postalCode = "string"
stateOrProvince = "string"
streetAddress1 = "string"
streetAddress2 = "string"
}
}
}
}
屬性值
Microsoft.Edge/網站
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 資源名稱 | 字串 約束: 模式 = ^[a-zA-Z0-9][a-zA-Z0-9-_]{2,22}[a-zA-Z0-9]$ (必要) |
| parent_id | 要套用此延伸模組資源之資源的標識碼。 | 字串 (必要) |
| 性能 | 此資源的資源特定屬性。 | SiteProperties |
| 型別 | 資源類型 | “Microsoft.Edge/sites@2025-06-01” |
SiteAddressProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 城市 | 位址所在的城市 | 字串 |
| 國家 | 位址所在的國家/地區 | 字串 |
| 郵遞區號 | 地址的郵遞區號 | 字串 |
| stateOrProvince (省份) | 位址所在的州或省 | 字串 |
| streetAddress1 | 街道位址的第一行 | 字串 |
| streetAddress2 | 街道位址的第二行 | 字串 |
SiteProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 描述 | 網站資源的描述 | 字串 |
| 顯示名稱 | 網站資源的 displayName | 字串 |
| 標籤 | 用於標記網站資源的鍵值對。 | SiteProperties標籤 |
| siteAddress | 網站的實際位址 | SiteAddressProperties |
SiteProperties標籤
| 名字 | 描述 | 價值 |
|---|