Microsoft.Web サイト/functions 2022-03-01
Bicep リソース定義
サイト/関数のリソースの種類は、次を対象とする操作でデプロイできます。
- リソース グループ - リソース グループのデプロイ コマンドに関するページを参照してください
各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。
リソース形式
Microsoft.Web/sites/functions リソースを作成するには、次の Bicep をテンプレートに追加します。
resource symbolicname 'Microsoft.Web/sites/functions@2022-03-01' = {
name: 'string'
kind: 'string'
parent: resourceSymbolicName
properties: {
config: any()
config_href: 'string'
files: {}
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'
}
}
プロパティ値
sites/functions
名前 | 説明 | 値 |
---|---|---|
name | リソース名 Bicep で子リソースの名前と型を設定する方法を参照してください。 |
string (必須) |
kind | リソースの種類。 | string |
parent | Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。 詳細については、「 親リソースの外部にある子リソース」を参照してください。 |
種類のリソースのシンボル名: sites |
properties | FunctionEnvelope リソース固有のプロパティ | FunctionEnvelopeProperties |
FunctionEnvelopeProperties
名前 | 説明 | 値 |
---|---|---|
config | 構成情報。 | Bicep の場合は、 any() 関数を使用できます。 |
config_href | 構成 URI。 | string |
ファイル | ファイルの一覧。 | object |
function_app_id | 関数アプリ ID。 | string |
href | 関数 URI。 | string |
invoke_url_template | 呼び出し URL | string |
isDisabled | 関数が無効かどうかを示す値を取得または設定します。 | [bool] |
language | 関数言語 | string |
script_href | スクリプト URI。 | string |
script_root_path_href | スクリプト ルート パス URI。 | string |
secrets_file_href | シークレット ファイル URI。 | string |
test_data | Azure Portal を使用してテストするときに使用されるテスト データ。 | string |
test_data_href | データ URI をテストします。 | string |
クイック スタート テンプレート
次のクイックスタート テンプレートでは、このリソースの種類をデプロイします。
Template | 説明 |
---|---|
Front Door Standard/Premium とAzure Functionsオリジン |
このテンプレートは、Azure Functions アプリである Front Door Standard/Premium を作成し、トラフィックが Front Door の配信元を通過したことを検証するように関数アプリを構成します。 |
Azure 関数アプリと HTTP によってトリガーされる関数 |
この例では、Azure 関数アプリと HTTP によってトリガーされる関数をテンプレートにインラインでデプロイします。 また、Key Vaultをデプロイし、シークレットに関数アプリのホスト キーを設定します。 |
変換機能を備えた Azure 関数 |
ロジック アプリ統合シナリオで使用する変換機能を備えた Webhook ベースの C# Azure 関数を作成します |
ARM テンプレート リソース定義
サイト/関数のリソースの種類は、次を対象とする操作でデプロイできます。
- リソース グループ - リソース グループのデプロイ コマンドに関するページを参照してください
各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。
リソース形式
Microsoft.Web/sites/functions リソースを作成するには、次の JSON をテンプレートに追加します。
{
"type": "Microsoft.Web/sites/functions",
"apiVersion": "2022-03-01",
"name": "string",
"kind": "string",
"properties": {
"config": {},
"config_href": "string",
"files": {},
"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"
}
}
プロパティ値
sites/functions
名前 | 説明 | 値 |
---|---|---|
type | リソースの種類 | 'Microsoft.Web/sites/functions' |
apiVersion | リソース API のバージョン | '2022-03-01' |
name | リソース名 JSON ARM テンプレートで子リソースの名前と型を設定する方法を参照してください。 |
string (必須) |
kind | リソースの種類。 | string |
properties | FunctionEnvelope リソース固有のプロパティ | FunctionEnvelopeProperties |
FunctionEnvelopeProperties
名前 | 説明 | 値 |
---|---|---|
config | 構成情報。 | |
config_href | 構成 URI。 | string |
ファイル | ファイルの一覧。 | object |
function_app_id | 関数アプリ ID。 | string |
href | 関数 URI。 | string |
invoke_url_template | 呼び出し URL | string |
isDisabled | 関数が無効かどうかを示す値を取得または設定します。 | [bool] |
language | 関数言語 | string |
script_href | スクリプト URI。 | string |
script_root_path_href | スクリプト ルート パス URI。 | string |
secrets_file_href | シークレット ファイル URI。 | string |
test_data | Azure Portal を使用してテストするときに使用されるテスト データ。 | string |
test_data_href | データ URI をテストします。 | string |
クイック スタート テンプレート
次のクイックスタート テンプレートでは、このリソースの種類をデプロイします。
Template | 説明 |
---|---|
Front Door Standard/Premium とAzure Functionsオリジン |
このテンプレートは、Azure Functions アプリである Front Door Standard/Premium を作成し、トラフィックが Front Door の配信元を通過したことを検証するように関数アプリを構成します。 |
Azure 関数アプリと HTTP によってトリガーされる関数 |
この例では、Azure 関数アプリと HTTP によってトリガーされる関数をテンプレートにインラインでデプロイします。 また、Key Vaultをデプロイし、シークレットに関数アプリのホスト キーを設定します。 |
変換機能を備えた Azure 関数 |
ロジック アプリ統合シナリオで使用する変換機能を備えた Webhook ベースの C# Azure 関数を作成します |
Terraform (AzAPI プロバイダー) リソース定義
サイト/関数のリソースの種類は、次を対象とする操作でデプロイできます。
- リソース グループ
各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。
リソース形式
Microsoft.Web/sites/functions リソースを作成するには、次の Terraform をテンプレートに追加します。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Web/sites/functions@2022-03-01"
name = "string"
parent_id = "string"
body = jsonencode({
properties = {
config_href = "string"
files = {}
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"
}
kind = "string"
})
}
プロパティ値
sites/functions
名前 | 説明 | 値 |
---|---|---|
type | リソースの種類 | "Microsoft.Web/sites/functions@2022-03-01" |
name | リソース名 | string (必須) |
parent_id | このリソースの親であるリソースの ID。 | 種類のリソースの ID: サイト |
kind | リソースの種類。 | string |
properties | FunctionEnvelope リソース固有のプロパティ | FunctionEnvelopeProperties |
FunctionEnvelopeProperties
名前 | 説明 | 値 |
---|---|---|
config | 構成情報。 | |
config_href | 構成 URI。 | string |
ファイル | ファイルの一覧。 | object |
function_app_id | 関数アプリ ID。 | string |
href | 関数 URI。 | string |
invoke_url_template | 呼び出し URL | string |
isDisabled | 関数が無効かどうかを示す値を取得または設定します。 | [bool] |
language | 関数言語 | string |
script_href | スクリプト URI。 | string |
script_root_path_href | スクリプト のルート パス URI。 | string |
secrets_file_href | シークレット ファイル URI。 | string |
test_data | Azure Portal を使用してテストするときに使用されるデータをテストします。 | string |
test_data_href | データ URI をテストします。 | string |
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示