Web Apps - Update Application Settings
アプリのアプリケーション設定を置き換えるための説明。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/appsettings?api-version=2025-03-01
URI パラメーター
| 名前 | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
name
|
path | True |
string |
アプリの名前。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
リソースが属するリソース グループの名前。 |
|
subscription
|
path | True |
string |
Azure のサブスクリプション ID。 これは GUID 形式の文字列です (例: 000000000-0000-0000-0000-000000000000)。 |
|
api-version
|
query | True |
string |
API バージョン |
要求本文
| 名前 | 型 | 説明 |
|---|---|---|
| kind |
string |
リソースの種類。 |
| properties |
object |
設定。 |
応答
| 名前 | 型 | 説明 |
|---|---|---|
| 200 OK |
[OK] |
|
| Other Status Codes |
App Service エラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
| 名前 | 説明 |
|---|---|
| user_impersonation | ユーザー アカウントを偽装する |
例
Update App Settings
要求のサンプル
PUT https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/appsettings?api-version=2025-03-01
{
"properties": {
"Setting1": "Value1",
"Setting2": "Value2"
}
}
応答のサンプル
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/appsettings",
"name": "appsettings",
"type": "Microsoft.Web/sites/config",
"kind": "app",
"properties": {
"Setting1": "Value1",
"Setting2": "Value2"
}
}
定義
| 名前 | 説明 |
|---|---|
|
Default |
App Service エラー応答。 |
| Details | |
| Error |
エラー モデル。 |
|
String |
文字列ディクショナリ リソース。 |
DefaultErrorResponse
App Service エラー応答。
| 名前 | 型 | 説明 |
|---|---|---|
| error |
エラー モデル。 |
Details
| 名前 | 型 | 説明 |
|---|---|---|
| code |
string |
プログラムでエラーを識別するための標準化された文字列。 |
| message |
string |
詳細なエラーの説明とデバッグ情報。 |
| target |
string |
詳細なエラーの説明とデバッグ情報。 |
Error
エラー モデル。
| 名前 | 型 | 説明 |
|---|---|---|
| code |
string |
プログラムでエラーを識別するための標準化された文字列。 |
| details |
Details[] |
詳細なエラー。 |
| innererror |
string |
エラーのデバッグに関する詳細情報。 |
| message |
string |
詳細なエラーの説明とデバッグ情報。 |
| target |
string |
詳細なエラーの説明とデバッグ情報。 |
StringDictionary
文字列ディクショナリ リソース。
| 名前 | 型 | 説明 |
|---|---|---|
| id |
string |
リソース ID。 |
| kind |
string |
リソースの種類。 |
| name |
string |
リソース名。 |
| properties |
object |
設定。 |
| type |
string |
リソースの種類。 |