Update-AzNetworkCloudCluster
修補所提供叢集的屬性,或更新與叢集相關聯的標記。 屬性和標記更新可以獨立完成。
語法
Update-AzNetworkCloudCluster
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
[-AggregatorOrSingleRackDefinitionAvailabilityZone <String>]
[-AggregatorOrSingleRackDefinitionBareMetalMachineConfiguration <IBareMetalMachineConfigurationData[]>]
[-AggregatorOrSingleRackDefinitionNetworkRackId <String>]
[-AggregatorOrSingleRackDefinitionRackLocation <String>]
[-AggregatorOrSingleRackDefinitionRackSerialNumber <String>]
[-AggregatorOrSingleRackDefinitionRackSkuId <String>]
[-AggregatorOrSingleRackDefinitionStorageApplianceConfiguration <IStorageApplianceConfigurationData[]>]
[-AssociatedIdentityType <ManagedServiceIdentitySelectorType>]
[-AssociatedIdentityUserAssignedIdentityResourceId <String>]
[-ClusterLocation <String>]
[-ClusterServicePrincipalApplicationId <String>]
[-ClusterServicePrincipalId <String>]
[-ClusterServicePrincipalPassword <SecureString>]
[-ClusterServicePrincipalTenantId <String>]
[-CommandOutputSettingContainerUrl <String>]
[-ComputeDeploymentThresholdGrouping <ValidationThresholdGrouping>]
[-ComputeDeploymentThresholdType <ValidationThresholdType>]
[-ComputeDeploymentThresholdValue <Int64>]
[-ComputeRackDefinition <IRackDefinition[]>]
[-IdentityType <ManagedServiceIdentityType>]
[-IdentityUserAssignedIdentity <Hashtable>]
[-RuntimeProtectionConfigurationEnforcementLevel <RuntimeProtectionEnforcementLevel>]
[-SecretArchiveKeyVaultId <String>]
[-SecretArchiveUseKeyVault <ClusterSecretArchiveEnabled>]
[-Tag <Hashtable>]
[-UpdateStrategyMaxUnavailable <Int64>]
[-UpdateStrategyThresholdType <ValidationThresholdType>]
[-UpdateStrategyThresholdValue <Int64>]
[-UpdateStrategyType <ClusterUpdateStrategyType>]
[-UpdateStrategyWaitTimeMinute <Int64>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzNetworkCloudCluster
-InputObject <INetworkCloudIdentity>
[-AggregatorOrSingleRackDefinitionAvailabilityZone <String>]
[-AggregatorOrSingleRackDefinitionBareMetalMachineConfiguration <IBareMetalMachineConfigurationData[]>]
[-AggregatorOrSingleRackDefinitionNetworkRackId <String>]
[-AggregatorOrSingleRackDefinitionRackLocation <String>]
[-AggregatorOrSingleRackDefinitionRackSerialNumber <String>]
[-AggregatorOrSingleRackDefinitionRackSkuId <String>]
[-AggregatorOrSingleRackDefinitionStorageApplianceConfiguration <IStorageApplianceConfigurationData[]>]
[-AssociatedIdentityType <ManagedServiceIdentitySelectorType>]
[-AssociatedIdentityUserAssignedIdentityResourceId <String>]
[-ClusterLocation <String>]
[-ClusterServicePrincipalApplicationId <String>]
[-ClusterServicePrincipalId <String>]
[-ClusterServicePrincipalPassword <SecureString>]
[-ClusterServicePrincipalTenantId <String>]
[-CommandOutputSettingContainerUrl <String>]
[-ComputeDeploymentThresholdGrouping <ValidationThresholdGrouping>]
[-ComputeDeploymentThresholdType <ValidationThresholdType>]
[-ComputeDeploymentThresholdValue <Int64>]
[-ComputeRackDefinition <IRackDefinition[]>]
[-IdentityType <ManagedServiceIdentityType>]
[-IdentityUserAssignedIdentity <Hashtable>]
[-RuntimeProtectionConfigurationEnforcementLevel <RuntimeProtectionEnforcementLevel>]
[-SecretArchiveKeyVaultId <String>]
[-SecretArchiveUseKeyVault <ClusterSecretArchiveEnabled>]
[-Tag <Hashtable>]
[-UpdateStrategyMaxUnavailable <Int64>]
[-UpdateStrategyThresholdType <ValidationThresholdType>]
[-UpdateStrategyThresholdValue <Int64>]
[-UpdateStrategyType <ClusterUpdateStrategyType>]
[-UpdateStrategyWaitTimeMinute <Int64>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
修補所提供叢集的屬性,或更新與叢集相關聯的標記。 屬性和標記更新可以獨立完成。
範例
範例 1:更新叢集
$storageapplianceconfigurationdata = @()
$baremetalmachineconfigurationdata = @()
$computerackdefinition = @(@{IRackDefinition = "The list of rack definitions for the compute racks in a multi-rackcluster, or an empty list in a single-rack cluster."})
$tagHash = @{
tag = "tag"
tagUpdate = "tagUpdate"
}
$securePassword = ConvertTo-SecureString "password" -asplaintext -force
Update-AzNetworkCloudCluster -ResourceGroupName resourceGroup -Name clusterName -SubscriptionId subscriptionId -AggregatorOrSingleRackDefinitionNetworkRackId rackId -AggregatorOrSingleRackDefinitionRackSerialNumber sr1234 -AggregatorOrSingleRackDefinitionRackSkuId rackSku -AggregatorOrSingleRackDefinitionAvailabilityZone availabilityzone -AggregatorOrSingleRackDefinitionBareMetalMachineConfiguration $baremetalmachineconfigurationdata -AggregatorOrSingleRackDefinitionRackLocation rackLocation -AggregatorOrSingleRackDefinitionStorageApplianceConfiguration $storageapplianceconfigurationdata -ClusterServicePrincipalApplicationId clusterServicePrincipalAppId -ClusterServicePrincipalId ClusterServicePrincipalId -ClusterServicePrincipalPassword $securePassword -ClusterServicePrincipalTenantId tenantId -ComputeRackDefinition $computerackdefinition -Tag $tagHash
Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGro
upName
-------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- -----------
eastus clusterName 08/09/2023 18:33:54 user User 08/09/2023 19:45:35 user User RGName
修補所提供叢集的屬性,或更新與叢集相關聯的標記。 屬性和標記更新可以獨立完成。
參數
-AggregatorOrSingleRackDefinitionAvailabilityZone
建立時用於此機架的區域名稱。 可用性區域用於工作負載放置。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-AggregatorOrSingleRackDefinitionBareMetalMachineConfiguration
裸機計算機組態的未排序列表。 若要建構,請參閱 AGGREGATORORSINGLERACKDEFINITIONBAREMETALMACHINECONFIGURATION 屬性和建立哈希表的 NOTES 一節。
類型: | IBareMetalMachineConfigurationData[] |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-AggregatorOrSingleRackDefinitionNetworkRackId
符合此機架定義的網路機架資源標識碼。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-AggregatorOrSingleRackDefinitionRackLocation
機架位置的自由格式描述。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-AggregatorOrSingleRackDefinitionRackSerialNumber
網路雲端叢集中機架的唯一標識符。 如有需要,可能會提供序號以外的替代唯一英數位元值。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-AggregatorOrSingleRackDefinitionRackSkuId
要新增之機架的 SKU 資源識別碼。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-AggregatorOrSingleRackDefinitionStorageApplianceConfiguration
此機架的存放裝置設定資料清單。 若要建構,請參閱 AGGREGATORORSINGLERACKDEFINITIONSTORAGEAPPLIANCECONFIGURATION 屬性和建立哈希表的 NOTES 一節。
類型: | IStorageApplianceConfigurationData[] |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-AsJob
以作業身分執行命令
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-AssociatedIdentityType
正在選取的受控識別類型。
類型: | ManagedServiceIdentitySelectorType |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-AssociatedIdentityUserAssignedIdentityResourceId
使用者指派的受控識別資源標識碼。 與系統指派的身分識別類型互斥。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ClusterLocation
客戶提供的位置資訊,以識別叢集所在的位置。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ClusterServicePrincipalApplicationId
服務主體的應用程式識別碼,也稱為用戶端標識符。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ClusterServicePrincipalId
服務主體的主體標識碼,也稱為對象標識碼。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ClusterServicePrincipalPassword
服務主體的密碼。
類型: | SecureString |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ClusterServicePrincipalTenantId
建立服務主體之租使用者的租用戶標識符,也稱為目錄標識符。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-CommandOutputSettingContainerUrl
要由指定身分識別使用的記憶體帳戶容器 URL。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ComputeDeploymentThresholdGrouping
選取類型評估如何套用至叢集計算。
類型: | ValidationThresholdGrouping |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ComputeDeploymentThresholdType
選取應如何評估臨界值。
類型: | ValidationThresholdType |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ComputeDeploymentThresholdValue
數值臨界值。
類型: | Int64 |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ComputeRackDefinition
多機架叢集中電腦架的機架定義清單,或單一機架叢集中的空白清單。 若要建構,請參閱 COMPUTERACKDEFINITION 屬性的 NOTES 區段並建立哈希表。
類型: | IRackDefinition[] |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Confirm
在執行 Cmdlet 之前,提示您進行確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-IdentityType
受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。
類型: | ManagedServiceIdentityType |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-IdentityUserAssignedIdentity
與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。
類型: | Hashtable |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
類型: | INetworkCloudIdentity |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
叢集的名稱。
類型: | String |
別名: | ClusterName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-NoWait
以異步方式執行命令
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
資源群組的名稱。 名稱不區分大小寫。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-RuntimeProtectionConfigurationEnforcementLevel
運行時間保護的作業模式。
類型: | RuntimeProtectionEnforcementLevel |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-SecretArchiveKeyVaultId
用來封存叢集秘密之金鑰保存庫的資源識別碼。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-SecretArchiveUseKeyVault
如果指定的金鑰保存庫應該用來封存叢集的秘密,則為指標。
類型: | ClusterSecretArchiveEnabled |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-SubscriptionId
目標訂用帳戶的標識碼。 此值必須是 UUID。
類型: | String |
Position: | Named |
預設值: | (Get-AzContext).Subscription.Id |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Tag
將取代現有資源的 Azure 資源標籤。
類型: | Hashtable |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-UpdateStrategyMaxUnavailable
可在更新增量內離線的背景工作節點數目上限,例如機架逐機架。以遞增方式限制機器數目上限。 默認為整個遞增大小。
類型: | Int64 |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-UpdateStrategyThresholdType
選取應如何評估臨界值。
類型: | ValidationThresholdType |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-UpdateStrategyThresholdValue
數值臨界值。
類型: | Int64 |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-UpdateStrategyType
運行時間保護的作業模式。
類型: | ClusterUpdateStrategyType |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-UpdateStrategyWaitTimeMinute
策略所定義之更新增量之間的等候時間。
類型: | Int64 |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-WhatIf
顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |