Bicep 資源定義
月臺/函式資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
使用範例
Azure 快速入門範例
下列 Azure 快速入門範本 包含用於部署此資源類型的 Bicep 範例。
若要建立 Microsoft.Web/sites/functions 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Web/sites/functions@2025-03-01' = {
parent: resourceSymbolicName
kind: 'string'
name: 'string'
properties: {
config: any(...)
config_href: 'string'
files: {
{customized property}: 'string'
}
function_app_id: 'string'
href: 'string'
invoke_url_template: 'string'
isDisabled: bool
language: 'string'
script_href: 'string'
script_root_path_href: 'string'
secrets_file_href: 'string'
test_data: 'string'
test_data_href: 'string'
}
}
屬性值
Microsoft.Web/sites/functions
FunctionEnvelopeProperties (函數包絡屬性)
| 名字 |
描述 |
價值 |
| 設定 |
設定資訊。 |
任何 |
| config_href |
設定 URI。 |
字串 |
| 檔 |
檔案清單。 |
FunctionEnvelopeProperties檔 |
| function_app_id |
函式應用程式識別碼。 |
字串 |
| href |
函式 URI。 |
字串 |
| invoke_url_template |
叫用 URL |
字串 |
| isDisabled (已禁用) |
取得或設定值,指出函式是否停用 |
布爾 (bool) |
| 語言 |
函式語言 |
字串 |
| script_href |
腳本 URI。 |
字串 |
| script_root_path_href |
編寫根路徑 URI 的腳本。 |
字串 |
| secrets_file_href |
秘密檔案 URI。 |
字串 |
| test_data |
透過 Azure 入口網站測試時所使用的測試數據。 |
字串 |
| test_data_href |
測試數據 URI。 |
字串 |
FunctionEnvelopeProperties檔
ARM 樣本資源定義
月臺/函式資源類型可以使用目標作業來部署:
使用範例
Azure 快速入門範本
下列 Azure 快速入門範本 部署此資源類型。
若要建立 Microsoft.Web/sites/functions 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Web/sites/functions",
"apiVersion": "2025-03-01",
"name": "string",
"kind": "string",
"properties": {
"config": {},
"config_href": "string",
"files": {
"{customized property}": "string"
},
"function_app_id": "string",
"href": "string",
"invoke_url_template": "string",
"isDisabled": "bool",
"language": "string",
"script_href": "string",
"script_root_path_href": "string",
"secrets_file_href": "string",
"test_data": "string",
"test_data_href": "string"
}
}
屬性值
Microsoft.Web/sites/functions
FunctionEnvelopeProperties (函數包絡屬性)
| 名字 |
描述 |
價值 |
| 設定 |
設定資訊。 |
任何 |
| config_href |
設定 URI。 |
字串 |
| 檔 |
檔案清單。 |
FunctionEnvelopeProperties檔 |
| function_app_id |
函式應用程式識別碼。 |
字串 |
| href |
函式 URI。 |
字串 |
| invoke_url_template |
叫用 URL |
字串 |
| isDisabled (已禁用) |
取得或設定值,指出函式是否停用 |
布爾 (bool) |
| 語言 |
函式語言 |
字串 |
| script_href |
腳本 URI。 |
字串 |
| script_root_path_href |
編寫根路徑 URI 的腳本。 |
字串 |
| secrets_file_href |
秘密檔案 URI。 |
字串 |
| test_data |
透過 Azure 入口網站測試時所使用的測試數據。 |
字串 |
| test_data_href |
測試數據 URI。 |
字串 |
FunctionEnvelopeProperties檔
月臺/函式資源類型可以使用目標作業來部署:
-
資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
若要建立 Microsoft.Web/sites/functions 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Web/sites/functions@2025-03-01"
name = "string"
parent_id = "string"
body = {
kind = "string"
properties = {
config = ?
config_href = "string"
files = {
{customized property} = "string"
}
function_app_id = "string"
href = "string"
invoke_url_template = "string"
isDisabled = bool
language = "string"
script_href = "string"
script_root_path_href = "string"
secrets_file_href = "string"
test_data = "string"
test_data_href = "string"
}
}
}
屬性值
Microsoft.Web/sites/functions
FunctionEnvelopeProperties (函數包絡屬性)
| 名字 |
描述 |
價值 |
| 設定 |
設定資訊。 |
任何 |
| config_href |
設定 URI。 |
字串 |
| 檔 |
檔案清單。 |
FunctionEnvelopeProperties檔 |
| function_app_id |
函式應用程式識別碼。 |
字串 |
| href |
函式 URI。 |
字串 |
| invoke_url_template |
叫用 URL |
字串 |
| isDisabled (已禁用) |
取得或設定值,指出函式是否停用 |
布爾 (bool) |
| 語言 |
函式語言 |
字串 |
| script_href |
腳本 URI。 |
字串 |
| script_root_path_href |
編寫根路徑 URI 的腳本。 |
字串 |
| secrets_file_href |
秘密檔案 URI。 |
字串 |
| test_data |
透過 Azure 入口網站測試時所使用的測試數據。 |
字串 |
| test_data_href |
測試數據 URI。 |
字串 |
FunctionEnvelopeProperties檔