Microsoft.Web staticSites
本文內容
Bicep 資源定義
staticSites 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔 。
若要建立 Microsoft.Web/staticSites 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Web/staticSites@2024-04-01' = {
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
kind: 'string'
location: 'string'
name: 'string'
properties: {
allowConfigFileUpdates: bool
branch: 'string'
buildProperties: {
apiBuildCommand: 'string'
apiLocation: 'string'
appArtifactLocation: 'string'
appBuildCommand: 'string'
appLocation: 'string'
githubActionSecretNameOverride: 'string'
outputLocation: 'string'
skipGithubActionWorkflowGeneration: bool
}
enterpriseGradeCdnStatus: 'string'
provider: 'string'
publicNetworkAccess: 'string'
repositoryToken: 'string'
repositoryUrl: 'string'
stagingEnvironmentPolicy: 'string'
templateProperties: {
description: 'string'
isPrivate: bool
owner: 'string'
repositoryName: 'string'
templateRepositoryUrl: 'string'
}
}
sku: {
capabilities: [
{
name: 'string'
reason: 'string'
value: 'string'
}
]
capacity: int
family: 'string'
locations: [
'string'
]
name: 'string'
size: 'string'
skuCapacity: {
default: int
elasticMaximum: int
maximum: int
minimum: int
scaleType: 'string'
}
tier: 'string'
}
tags: {
{customized property}: 'string'
}
}
屬性值
能力
名字
描述
價值
名字
SKU 功能的名稱。
字串
原因
SKU 功能的原因。
字串
價值
SKU 功能的值。
字串
ManagedServiceIdentity
名字
描述
價值
類型
受控服務識別的類型。
'None' 'SystemAssigned' 'SystemAssigned, UserAssigned' 'UserAssigned'
userAssignedIdentities
與資源相關聯的使用者指派身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}
ManagedServiceIdentityUserAssignedIdentities
ManagedServiceIdentityUserAssignedIdentities
Microsoft.Web/staticSites
SkuCapacity
名字
描述
價值
違約
此 App Service 方案 SKU 的預設背景工作角色數目。
int
elasticMaximum
此 App Service 方案 SKU 的彈性背景工作角色數目上限。
int
最大
此 App Service 方案 SKU 的工作者數目上限。
int
最低
此 App Service 方案 SKU 的最小背景工作角色數目。
int
scaleType
App Service 方案的可用調整組態。
字串
SkuDescription
名字
描述
價值
能力
SKU 的功能,例如流量管理員是否已啟用?
功能 []
能力
目前指派給資源的實例數目。
int
家庭
資源 SKU 的系列程式代碼。
字串
地點
SKU 的位置。
string[]
名字
資源 SKU 的名稱。
字串
大小
資源 SKU 的大小規範。
字串
skuCapacity
SKU 的最小、最大值和預設小數字數值。
SkuCapacity
層
資源 SKU 的服務層級。
字串
StaticSite
名字
描述
價值
allowConfigFileUpdates
如果已鎖定此靜態 Web 應用程式的組態檔,<程式代碼>false</code>;否則,<程式代碼>true</code>。
bool
分支
存放庫中的目標分支。
字串
buildProperties
建置屬性以在存放庫上設定。
StaticSiteBuildProperties
enterpriseGradeCdnStatus
狀態,指出提供靜態 Web 應用程式流量的企業級 CDN 狀態。
'Disabled' '停用' 'Enabled' '啟用'
供應商
提交最後一個部署至靜態月臺主要環境的提供者。
字串
publicNetworkAccess
指出靜態 Web 應用程式是否允許公用流量的狀態。 允許的值:『Enabled』、『Disabled』 或空字串。
字串
repositoryToken
使用者的 github 存放庫令牌。 這可用來設定 Github Actions 工作流程檔案和 API 秘密。
字串
repositoryUrl
靜態網站存放庫的URL。
字串
stagingEnvironmentPolicy
指出靜態 Web 應用程式是否允許或不允許預備環境的狀態。
'Disabled' 'Enabled'
templateProperties
產生新存放庫的範本選項。
StaticSiteTemplateOptions
StaticSiteBuildProperties
名字
描述
價值
apiBuildCommand
在 Azure Functions API 應用程式部署期間執行的自定義命令。
字串
apiLocation
存放庫內 API 程式代碼的路徑。
字串
appArtifactLocation
已淘汰:建置後的應用程式成品路徑(已取代為 OutputLocation)
字串
appBuildCommand
在部署靜態內容應用程式期間執行的自定義命令。
字串
appLocation
存放庫內應用程式程式代碼的路徑。
字串
githubActionSecretNameOverride
Github Action 秘密名稱覆寫。
字串
outputLocation
建置後應用程式的輸出路徑。
字串
skipGithubActionWorkflowGeneration
略過 Github Action 工作流程產生。
bool
StaticSiteTemplateOptions
名字
描述
價值
描述
新產生的存放庫描述。
字串
isPrivate
新產生的存放庫是否為私人存放庫。 默認為 false (亦即 public)。
bool
擁有者
新產生的存放庫擁有者。
字串
repositoryName
新產生的存放庫名稱。
字串
templateRepositoryUrl
範本存放庫的 URL。 新產生的存放庫將會以此存放庫為基礎。
字串
UserAssignedIdentity
ARM 樣本資源定義
staticSites 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔 。
若要建立 Microsoft.Web/staticSites 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Web/staticSites",
"apiVersion": "2024-04-01",
"name": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"kind": "string",
"location": "string",
"properties": {
"allowConfigFileUpdates": "bool",
"branch": "string",
"buildProperties": {
"apiBuildCommand": "string",
"apiLocation": "string",
"appArtifactLocation": "string",
"appBuildCommand": "string",
"appLocation": "string",
"githubActionSecretNameOverride": "string",
"outputLocation": "string",
"skipGithubActionWorkflowGeneration": "bool"
},
"enterpriseGradeCdnStatus": "string",
"provider": "string",
"publicNetworkAccess": "string",
"repositoryToken": "string",
"repositoryUrl": "string",
"stagingEnvironmentPolicy": "string",
"templateProperties": {
"description": "string",
"isPrivate": "bool",
"owner": "string",
"repositoryName": "string",
"templateRepositoryUrl": "string"
}
},
"sku": {
"capabilities": [
{
"name": "string",
"reason": "string",
"value": "string"
}
],
"capacity": "int",
"family": "string",
"locations": [ "string" ],
"name": "string",
"size": "string",
"skuCapacity": {
"default": "int",
"elasticMaximum": "int",
"maximum": "int",
"minimum": "int",
"scaleType": "string"
},
"tier": "string"
},
"tags": {
"{customized property}": "string"
}
}
屬性值
能力
名字
描述
價值
名字
SKU 功能的名稱。
字串
原因
SKU 功能的原因。
字串
價值
SKU 功能的值。
字串
ManagedServiceIdentity
名字
描述
價值
類型
受控服務識別的類型。
'None' 'SystemAssigned' 'SystemAssigned, UserAssigned' 'UserAssigned'
userAssignedIdentities
與資源相關聯的使用者指派身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}
ManagedServiceIdentityUserAssignedIdentities
ManagedServiceIdentityUserAssignedIdentities
Microsoft.Web/staticSites
SkuCapacity
名字
描述
價值
違約
此 App Service 方案 SKU 的預設背景工作角色數目。
int
elasticMaximum
此 App Service 方案 SKU 的彈性背景工作角色數目上限。
int
最大
此 App Service 方案 SKU 的工作者數目上限。
int
最低
此 App Service 方案 SKU 的最小背景工作角色數目。
int
scaleType
App Service 方案的可用調整組態。
字串
SkuDescription
名字
描述
價值
能力
SKU 的功能,例如流量管理員是否已啟用?
功能 []
能力
目前指派給資源的實例數目。
int
家庭
資源 SKU 的系列程式代碼。
字串
地點
SKU 的位置。
string[]
名字
資源 SKU 的名稱。
字串
大小
資源 SKU 的大小規範。
字串
skuCapacity
SKU 的最小、最大值和預設小數字數值。
SkuCapacity
層
資源 SKU 的服務層級。
字串
StaticSite
名字
描述
價值
allowConfigFileUpdates
如果已鎖定此靜態 Web 應用程式的組態檔,<程式代碼>false</code>;否則,<程式代碼>true</code>。
bool
分支
存放庫中的目標分支。
字串
buildProperties
建置屬性以在存放庫上設定。
StaticSiteBuildProperties
enterpriseGradeCdnStatus
狀態,指出提供靜態 Web 應用程式流量的企業級 CDN 狀態。
'Disabled' '停用' 'Enabled' '啟用'
供應商
提交最後一個部署至靜態月臺主要環境的提供者。
字串
publicNetworkAccess
指出靜態 Web 應用程式是否允許公用流量的狀態。 允許的值:『Enabled』、『Disabled』 或空字串。
字串
repositoryToken
使用者的 github 存放庫令牌。 這可用來設定 Github Actions 工作流程檔案和 API 秘密。
字串
repositoryUrl
靜態網站存放庫的URL。
字串
stagingEnvironmentPolicy
指出靜態 Web 應用程式是否允許或不允許預備環境的狀態。
'Disabled' 'Enabled'
templateProperties
產生新存放庫的範本選項。
StaticSiteTemplateOptions
StaticSiteBuildProperties
名字
描述
價值
apiBuildCommand
在 Azure Functions API 應用程式部署期間執行的自定義命令。
字串
apiLocation
存放庫內 API 程式代碼的路徑。
字串
appArtifactLocation
已淘汰:建置後的應用程式成品路徑(已取代為 OutputLocation)
字串
appBuildCommand
在部署靜態內容應用程式期間執行的自定義命令。
字串
appLocation
存放庫內應用程式程式代碼的路徑。
字串
githubActionSecretNameOverride
Github Action 秘密名稱覆寫。
字串
outputLocation
建置後應用程式的輸出路徑。
字串
skipGithubActionWorkflowGeneration
略過 Github Action 工作流程產生。
bool
StaticSiteTemplateOptions
名字
描述
價值
描述
新產生的存放庫描述。
字串
isPrivate
新產生的存放庫是否為私人存放庫。 默認為 false (亦即 public)。
bool
擁有者
新產生的存放庫擁有者。
字串
repositoryName
新產生的存放庫名稱。
字串
templateRepositoryUrl
範本存放庫的 URL。 新產生的存放庫將會以此存放庫為基礎。
字串
UserAssignedIdentity
staticSites 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔 。
若要建立 Microsoft.Web/staticSites 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Web/staticSites@2024-04-01"
name = "string"
identity = {
type = "string"
userAssignedIdentities = {
{customized property} = {
}
}
}
kind = "string"
location = "string"
sku = {
capabilities = [
{
name = "string"
reason = "string"
value = "string"
}
]
capacity = int
family = "string"
locations = [
"string"
]
name = "string"
size = "string"
skuCapacity = {
default = int
elasticMaximum = int
maximum = int
minimum = int
scaleType = "string"
}
tier = "string"
}
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
allowConfigFileUpdates = bool
branch = "string"
buildProperties = {
apiBuildCommand = "string"
apiLocation = "string"
appArtifactLocation = "string"
appBuildCommand = "string"
appLocation = "string"
githubActionSecretNameOverride = "string"
outputLocation = "string"
skipGithubActionWorkflowGeneration = bool
}
enterpriseGradeCdnStatus = "string"
provider = "string"
publicNetworkAccess = "string"
repositoryToken = "string"
repositoryUrl = "string"
stagingEnvironmentPolicy = "string"
templateProperties = {
description = "string"
isPrivate = bool
owner = "string"
repositoryName = "string"
templateRepositoryUrl = "string"
}
}
})
}
屬性值
能力
名字
描述
價值
名字
SKU 功能的名稱。
字串
原因
SKU 功能的原因。
字串
價值
SKU 功能的值。
字串
ManagedServiceIdentity
名字
描述
價值
類型
受控服務識別的類型。
'None' 'SystemAssigned' 'SystemAssigned, UserAssigned' 'UserAssigned'
userAssignedIdentities
與資源相關聯的使用者指派身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}
ManagedServiceIdentityUserAssignedIdentities
ManagedServiceIdentityUserAssignedIdentities
Microsoft.Web/staticSites
SkuCapacity
名字
描述
價值
違約
此 App Service 方案 SKU 的預設背景工作角色數目。
int
elasticMaximum
此 App Service 方案 SKU 的彈性背景工作角色數目上限。
int
最大
此 App Service 方案 SKU 的工作者數目上限。
int
最低
此 App Service 方案 SKU 的最小背景工作角色數目。
int
scaleType
App Service 方案的可用調整組態。
字串
SkuDescription
名字
描述
價值
能力
SKU 的功能,例如流量管理員是否已啟用?
功能 []
能力
目前指派給資源的實例數目。
int
家庭
資源 SKU 的系列程式代碼。
字串
地點
SKU 的位置。
string[]
名字
資源 SKU 的名稱。
字串
大小
資源 SKU 的大小規範。
字串
skuCapacity
SKU 的最小、最大值和預設小數字數值。
SkuCapacity
層
資源 SKU 的服務層級。
字串
StaticSite
名字
描述
價值
allowConfigFileUpdates
如果已鎖定此靜態 Web 應用程式的組態檔,<程式代碼>false</code>;否則,<程式代碼>true</code>。
bool
分支
存放庫中的目標分支。
字串
buildProperties
建置屬性以在存放庫上設定。
StaticSiteBuildProperties
enterpriseGradeCdnStatus
狀態,指出提供靜態 Web 應用程式流量的企業級 CDN 狀態。
'Disabled' '停用' 'Enabled' '啟用'
供應商
提交最後一個部署至靜態月臺主要環境的提供者。
字串
publicNetworkAccess
指出靜態 Web 應用程式是否允許公用流量的狀態。 允許的值:『Enabled』、『Disabled』 或空字串。
字串
repositoryToken
使用者的 github 存放庫令牌。 這可用來設定 Github Actions 工作流程檔案和 API 秘密。
字串
repositoryUrl
靜態網站存放庫的URL。
字串
stagingEnvironmentPolicy
指出靜態 Web 應用程式是否允許或不允許預備環境的狀態。
'Disabled' 'Enabled'
templateProperties
產生新存放庫的範本選項。
StaticSiteTemplateOptions
StaticSiteBuildProperties
名字
描述
價值
apiBuildCommand
在 Azure Functions API 應用程式部署期間執行的自定義命令。
字串
apiLocation
存放庫內 API 程式代碼的路徑。
字串
appArtifactLocation
已淘汰:建置後的應用程式成品路徑(已取代為 OutputLocation)
字串
appBuildCommand
在部署靜態內容應用程式期間執行的自定義命令。
字串
appLocation
存放庫內應用程式程式代碼的路徑。
字串
githubActionSecretNameOverride
Github Action 秘密名稱覆寫。
字串
outputLocation
建置後應用程式的輸出路徑。
字串
skipGithubActionWorkflowGeneration
略過 Github Action 工作流程產生。
bool
StaticSiteTemplateOptions
名字
描述
價值
描述
新產生的存放庫描述。
字串
isPrivate
新產生的存放庫是否為私人存放庫。 默認為 false (亦即 public)。
bool
擁有者
新產生的存放庫擁有者。
字串
repositoryName
新產生的存放庫名稱。
字串
templateRepositoryUrl
範本存放庫的 URL。 新產生的存放庫將會以此存放庫為基礎。
字串
UserAssignedIdentity