Scaling Plan Pooled Schedules - Create
ScalingPlanPooledSchedule を作成または更新します。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}?api-version=2025-10-10
URI パラメーター
| 名前 | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
リソース グループの名前。 名前の大文字と小文字は区別されません。 |
|
scaling
|
path | True |
string minLength: 3maxLength: 64 pattern: ^[A-Za-z0-9@.\-_ ]*$ |
スケーリングプランの名前。 |
|
scaling
|
path | True |
string minLength: 1maxLength: 64 pattern: ^[A-Za-z0-9@.\-_ ]*$ |
ScalingPlanSchedule の名前 |
|
subscription
|
path | True |
string (uuid) |
ターゲット サブスクリプションの ID。 値は UUID である必要があります。 |
|
api-version
|
query | True |
string minLength: 1 |
この操作に使用する API バージョン。 |
要求本文
| 名前 | 型 | 説明 |
|---|---|---|
| properties.daysOfWeek |
このスケジュールがアクティブな曜日のセット。 |
|
| properties.offPeakLoadBalancingAlgorithm |
ピーク時以外の期間の負荷分散アルゴリズム。 |
|
| properties.offPeakStartTime |
オフピーク期間の開始時刻。 |
|
| properties.peakLoadBalancingAlgorithm |
ピーク期間の負荷分散アルゴリズム。 |
|
| properties.peakStartTime |
ピーク期間の開始時刻。 |
|
| properties.rampDownCapacityThresholdPct |
integer (int32) minimum: 1maximum: 100 |
ランプダウン期間の容量しきい値。 |
| properties.rampDownForceLogoffUsers |
boolean |
ユーザーがホストから強制的にログオフする必要があります。 |
| properties.rampDownLoadBalancingAlgorithm |
ランプダウン期間の負荷分散アルゴリズム。 |
|
| properties.rampDownMinimumHostsPct |
integer (int32) minimum: 0maximum: 100 |
ランプダウン期間の最小ホスト割合。 |
| properties.rampDownNotificationMessage |
string |
ランプダウン期間中のユーザーの通知メッセージ。 |
| properties.rampDownStartTime |
ランプダウン期間の開始時刻。 |
|
| properties.rampDownStopHostsWhen |
ランプダウン期間中にホストを停止するタイミングを指定します。 |
|
| properties.rampDownWaitTimeMinutes |
integer (int32) |
ランプダウン期間中にホストを停止するまで待機する時間 (分)。 |
| properties.rampUpCapacityThresholdPct |
integer (int32) minimum: 1maximum: 100 |
スケールアップ期間の容量しきい値。 |
| properties.rampUpLoadBalancingAlgorithm |
スケールアップ期間の負荷分散アルゴリズム。 |
|
| properties.rampUpMinimumHostsPct |
integer (int32) minimum: 0maximum: 100 |
ランプアップ期間の最小ホストの割合。 |
| properties.rampUpStartTime |
ランプアップ期間の開始時刻。 |
応答
| 名前 | 型 | 説明 |
|---|---|---|
| 200 OK |
ScalingPlanPooledScheduleを正常に更新しました。 |
|
| 201 Created |
ScalingPlanPooledScheduleを成功裏に作成しました。 |
|
| Other Status Codes |
操作が失敗した理由を説明する自動化エラー応答。 |
例
ScalingPlanPooledSchedules_Create
要求のサンプル
PUT https://management.azure.com/subscriptions/daefabc0-95b4-48b3-b645-8a753a63c4fa/resourceGroups/resourceGroup1/providers/Microsoft.DesktopVirtualization/scalingPlans/scalingPlan1/pooledSchedules/scalingPlanScheduleWeekdays1?api-version=2025-10-10
{
"properties": {
"daysOfWeek": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"rampUpStartTime": {
"hour": 6,
"minute": 0
},
"rampUpLoadBalancingAlgorithm": "DepthFirst",
"rampUpMinimumHostsPct": 20,
"rampUpCapacityThresholdPct": 80,
"peakStartTime": {
"hour": 8,
"minute": 0
},
"peakLoadBalancingAlgorithm": "BreadthFirst",
"rampDownStartTime": {
"hour": 18,
"minute": 0
},
"rampDownLoadBalancingAlgorithm": "DepthFirst",
"rampDownMinimumHostsPct": 20,
"rampDownCapacityThresholdPct": 50,
"rampDownForceLogoffUsers": true,
"rampDownWaitTimeMinutes": 30,
"rampDownNotificationMessage": "message",
"offPeakStartTime": {
"hour": 20,
"minute": 0
},
"offPeakLoadBalancingAlgorithm": "DepthFirst"
}
}
応答のサンプル
{
"name": "scalingPlanScheduleWeekdays1",
"id": "/subscriptions/daefabc0-95b4-48b3-b645-8a753a63c4fa/resourceGroups/resourceGroup1/providers/Microsoft.DesktopVirtualization/scalingPlans/scalingPlan1/pooledSchedules/scalingPlanScheduleWeekdays1",
"type": "Microsoft.DesktopVirtualization/scalingPlans/pooledSchedules",
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
},
"properties": {
"daysOfWeek": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"rampUpStartTime": {
"hour": 6,
"minute": 0
},
"rampUpLoadBalancingAlgorithm": "DepthFirst",
"rampUpMinimumHostsPct": 20,
"rampUpCapacityThresholdPct": 80,
"peakStartTime": {
"hour": 8,
"minute": 0
},
"peakLoadBalancingAlgorithm": "BreadthFirst",
"rampDownStartTime": {
"hour": 18,
"minute": 0
},
"rampDownLoadBalancingAlgorithm": "DepthFirst",
"rampDownMinimumHostsPct": 20,
"rampDownCapacityThresholdPct": 50,
"rampDownForceLogoffUsers": true,
"rampDownWaitTimeMinutes": 30,
"rampDownNotificationMessage": "message",
"offPeakStartTime": {
"hour": 20,
"minute": 0
},
"offPeakLoadBalancingAlgorithm": "DepthFirst"
}
}
{
"name": "scalingPlanScheduleWeekdays1",
"id": "/subscriptions/daefabc0-95b4-48b3-b645-8a753a63c4fa/resourceGroups/resourceGroup1/providers/Microsoft.DesktopVirtualization/scalingPlans/scalingPlan1/pooledSchedules/scalingPlanScheduleWeekdays1",
"type": "Microsoft.DesktopVirtualization/scalingPlans/pooledSchedules",
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
},
"properties": {
"daysOfWeek": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"rampUpStartTime": {
"hour": 6,
"minute": 0
},
"rampUpLoadBalancingAlgorithm": "DepthFirst",
"rampUpMinimumHostsPct": 20,
"rampUpCapacityThresholdPct": 80,
"peakStartTime": {
"hour": 8,
"minute": 0
},
"peakLoadBalancingAlgorithm": "BreadthFirst",
"rampDownStartTime": {
"hour": 18,
"minute": 0
},
"rampDownLoadBalancingAlgorithm": "DepthFirst",
"rampDownMinimumHostsPct": 20,
"rampDownCapacityThresholdPct": 50,
"rampDownForceLogoffUsers": true,
"rampDownWaitTimeMinutes": 30,
"rampDownNotificationMessage": "message",
"offPeakStartTime": {
"hour": 20,
"minute": 0
},
"offPeakLoadBalancingAlgorithm": "DepthFirst"
}
}
定義
| 名前 | 説明 |
|---|---|
|
Cloud |
クラウドエラーオブジェクト。 |
|
Cloud |
クラウドエラーオブジェクトのプロパティ。 |
|
created |
リソースを作成した ID の種類。 |
|
Day |
曜日。 |
|
Scaling |
ScalingPlanPooledSchedule 定義を表します。 |
|
Session |
スケールアップ期間の負荷分散アルゴリズム。 |
|
Stop |
ランプダウン期間中にホストを停止するタイミングを指定します。 |
|
system |
リソースの作成と最後の変更に関連するメタデータ。 |
| Time |
スケーリングアクションが発生するまでの時間。 |
CloudError
クラウドエラーオブジェクト。
| 名前 | 型 | 説明 |
|---|---|---|
| error |
クラウドエラーオブジェクトのプロパティ。 |
CloudErrorProperties
クラウドエラーオブジェクトのプロパティ。
| 名前 | 型 | 説明 |
|---|---|---|
| code |
string |
エラー コード |
| message |
string |
操作が失敗した理由を示すエラー メッセージ。 |
createdByType
リソースを作成した ID の種類。
| 値 | 説明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
DayOfWeek
曜日。
| 値 | 説明 |
|---|---|
| Monday | |
| Tuesday | |
| Wednesday | |
| Thursday | |
| Friday | |
| Saturday | |
| Sunday |
ScalingPlanPooledSchedule
ScalingPlanPooledSchedule 定義を表します。
| 名前 | 型 | 説明 |
|---|---|---|
| id |
string (arm-id) |
リソースの完全修飾リソース ID。 例: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
| name |
string |
リソースの名前 |
| properties.daysOfWeek |
このスケジュールがアクティブな曜日のセット。 |
|
| properties.offPeakLoadBalancingAlgorithm |
ピーク時以外の期間の負荷分散アルゴリズム。 |
|
| properties.offPeakStartTime |
オフピーク期間の開始時刻。 |
|
| properties.peakLoadBalancingAlgorithm |
ピーク期間の負荷分散アルゴリズム。 |
|
| properties.peakStartTime |
ピーク期間の開始時刻。 |
|
| properties.rampDownCapacityThresholdPct |
integer (int32) minimum: 1maximum: 100 |
ランプダウン期間の容量しきい値。 |
| properties.rampDownForceLogoffUsers |
boolean |
ユーザーがホストから強制的にログオフする必要があります。 |
| properties.rampDownLoadBalancingAlgorithm |
ランプダウン期間の負荷分散アルゴリズム。 |
|
| properties.rampDownMinimumHostsPct |
integer (int32) minimum: 0maximum: 100 |
ランプダウン期間の最小ホスト割合。 |
| properties.rampDownNotificationMessage |
string |
ランプダウン期間中のユーザーの通知メッセージ。 |
| properties.rampDownStartTime |
ランプダウン期間の開始時刻。 |
|
| properties.rampDownStopHostsWhen |
ランプダウン期間中にホストを停止するタイミングを指定します。 |
|
| properties.rampDownWaitTimeMinutes |
integer (int32) |
ランプダウン期間中にホストを停止するまで待機する時間 (分)。 |
| properties.rampUpCapacityThresholdPct |
integer (int32) minimum: 1maximum: 100 |
スケールアップ期間の容量しきい値。 |
| properties.rampUpLoadBalancingAlgorithm |
スケールアップ期間の負荷分散アルゴリズム。 |
|
| properties.rampUpMinimumHostsPct |
integer (int32) minimum: 0maximum: 100 |
ランプアップ期間の最小ホストの割合。 |
| properties.rampUpStartTime |
ランプアップ期間の開始時刻。 |
|
| systemData |
リソースの作成と最後の変更に関連するメタデータ。 |
|
| type |
string |
リソースの型。 例: "Microsoft.Compute/virtualMachines" または "Microsoft.Storage/storageAccounts" |
SessionHostLoadBalancingAlgorithm
スケールアップ期間の負荷分散アルゴリズム。
| 値 | 説明 |
|---|---|
| BreadthFirst | |
| DepthFirst |
StopHostsWhen
ランプダウン期間中にホストを停止するタイミングを指定します。
| 値 | 説明 |
|---|---|
| ZeroSessions | |
| ZeroActiveSessions |
systemData
リソースの作成と最後の変更に関連するメタデータ。
| 名前 | 型 | 説明 |
|---|---|---|
| createdAt |
string (date-time) |
リソース作成のタイムスタンプ (UTC)。 |
| createdBy |
string |
リソースを作成した ID。 |
| createdByType |
リソースを作成した ID の種類。 |
|
| lastModifiedAt |
string (date-time) |
リソースの最終変更のタイムスタンプ (UTC) |
| lastModifiedBy |
string |
リソースを最後に変更した ID。 |
| lastModifiedByType |
リソースを最後に変更した ID の種類。 |
Time
スケーリングアクションが発生するまでの時間。
| 名前 | 型 | 説明 |
|---|---|---|
| hour |
integer (int32) minimum: 0maximum: 23 |
時間。 |
| minute |
integer (int32) minimum: 0maximum: 59 |
分。 |