你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.Web sites/slots/functions 2021-01-01

Bicep 资源定义

可以使用目标操作部署站点/槽/函数资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Web/sites/slots/functions 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.Web/sites/slots/functions@2021-01-01' = {
  parent: resourceSymbolicName
  kind: 'string'
  name: 'string'
  properties: {
    config: any(Azure.Bicep.Types.Concrete.AnyType)
    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'
  }
}

属性值

FunctionEnvelopeProperties

名字 描述 价值
配置 配置信息。 任何
config_href 配置 URI。 字符串
文件 文件列表。 FunctionEnvelopePropertiesFiles
function_app_id 函数应用 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。 字符串

FunctionEnvelopePropertiesFiles

名字 描述 价值

Microsoft.Web/sites/slots/functions

名字 描述 价值
资源类型。 字符串
名字 资源名称 string (必需)
父母 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源
类型资源的符号名称:站点/槽
性能 FunctionEnvelope 资源特定属性 FunctionEnvelopeProperties

ARM 模板资源定义

可以使用目标操作部署站点/槽/函数资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Web/sites/slots/functions 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.Web/sites/slots/functions",
  "apiVersion": "2021-01-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"
  }
}

属性值

FunctionEnvelopeProperties

名字 描述 价值
配置 配置信息。 任何
config_href 配置 URI。 字符串
文件 文件列表。 FunctionEnvelopePropertiesFiles
function_app_id 函数应用 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。 字符串

FunctionEnvelopePropertiesFiles

名字 描述 价值

Microsoft.Web/sites/slots/functions

名字 描述 价值
apiVersion API 版本 '2021-01-01'
资源类型。 字符串
名字 资源名称 string (必需)
性能 FunctionEnvelope 资源特定属性 FunctionEnvelopeProperties
类型 资源类型 “Microsoft.Web/sites/slots/functions”

Terraform (AzAPI 提供程序)资源定义

可以使用目标操作部署站点/槽/函数资源类型:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Web/sites/slots/functions 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Web/sites/slots/functions@2021-01-01"
  name = "string"
  kind = "string"
  body = jsonencode({
    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"
    }
  })
}

属性值

FunctionEnvelopeProperties

名字 描述 价值
配置 配置信息。 任何
config_href 配置 URI。 字符串
文件 文件列表。 FunctionEnvelopePropertiesFiles
function_app_id 函数应用 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。 字符串

FunctionEnvelopePropertiesFiles

名字 描述 价值

Microsoft.Web/sites/slots/functions

名字 描述 价值
资源类型。 字符串
名字 资源名称 string (必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:站点/槽
性能 FunctionEnvelope 资源特定属性 FunctionEnvelopeProperties
类型 资源类型 “Microsoft.Web/sites/slots/functions@2021-01-01”