New-AzHDInsightClusterAutoscaleConfiguration
建立描述 Azure HDInsight 叢集自動調整組態的非保存物件。
語法
New-AzHDInsightClusterAutoscaleConfiguration
-MinWorkerNodeCount <Int32>
-MaxWorkerNodeCount <Int32>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzHDInsightClusterAutoscaleConfiguration
-TimeZone <String>
-Condition <System.Collections.Generic.List`1[Microsoft.Azure.Commands.HDInsight.Models.AzureHDInsightAutoscaleCondition]>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Cmdlet New-AzHDInsightClusterAutoscaleConfiguration 會建立描述 Azure HDInsight 叢集自動調整設定的非保存物件。
範例
範例 1:建立描述以負載為基礎的自動調整設定的物件
New-AzHDInsightClusterAutoscaleConfiguration -MinWorkerNodeCount 3 -MaxWorkerNodeCount 5
此命令會建立描述以負載為基礎的自動調整組態的物件。
範例 2:建立描述以排程為基礎的自動調整設定的物件
# Create an autoscale condition firstly
$condition=New-AzHDInsightClusterAutoscaleScheduleCondition -Day Monday -Time 09:00 -WorkerNodeCount 5
New-AzHDInsightClusterAutoscaleConfiguration -TimeZone ([System.TimeZoneInfo]::Local).Id `
-Condition $condition
此命令會建立物件,描述以排程為基礎的自動調整組態。
參數
-Condition
取得或設定以排程為基礎的自動調整條件。
類型: | List<T>[AzureHDInsightAutoscaleCondition] |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-MaxWorkerNodeCount
取得或設定負載型自動調整的最大背景工作節點計數。
類型: | Int32 |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-MinWorkerNodeCount
取得或設定以負載為基礎的自動調整的最低背景工作節點計數。
類型: | Int32 |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-TimeZone
取得或設定以排程為基礎的自動調整的時區。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
None