Atualiza um pool existente do HorizonDB, incluindo sua alocação de nós, propriedades selecionadas do modelo de computação, tipo de modelo de computação, configuração de alta disponibilidade ou grupo de parâmetros associado. Valores omitidos nodeCount e highAvailability.mode preservam seus valores existentes; o serviço funde recursivamente o PATCH antes de validar atômicamente a tupla efetiva. NodeCount, quando fornecido, deve ser de 1 a 16. Desativado é válido apenas quando o número efetivo de nós é 1. AnyZone e ZoneRedundant são válidos apenas quando o número efetivo de nós é de 2 a 16. Portanto, cruzar entre esses intervalos de contagem de nós exige que nodeCount e highAvailability.mode sejam alterados juntos. O AnyZone permite posicionamento na mesma ou cruz das zonas. Mudar de AnyZone para ZoneRedundant pode alocar um nó substituto em outra zona de disponibilidade e substituir um nó somente leitura, desconectando conexões ao nó substituído. Se todos os nós solicitados ou a topologia zonal requerida não puderem ser provisionados, a operação de longa duração falha e o estado do recurso anterior é preservado. Para desalocar o cálculo em tempo de execução sem alterar o número de nós configurado, use a ação de parada do pool. Quando o ParameterGroup é fornecido, tanto o parameterGroupResourceId quanto o applyMethod são necessários. O pool pode alternar sua associação em qualquer direção entre o grupo de parâmetros padrão correspondente e um grupo de parâmetros criado pelo cliente. applyMethod controla quando mudanças dinâmicas de parâmetros se tornam eficazes. Mudanças estáticas de parâmetros sempre exigem um Reinício iniciado pelo cliente; Stop seguido de Start e manutenção programada não se aplicam alterações pendentes. Restrições de computação específicas de subtipo são validadas contra a configuração recursivamente mesclada.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}?api-version=2026-10-01-preview
Parâmetros de URI
| Nome |
Em |
Obrigatório |
Tipo |
Descrição |
|
clusterName
|
path |
True
|
string
minLength: 1 maxLength: 63 pattern: ^[a-z0-9](?:[-a-z0-9]*[a-z0-9])?$
|
O nome do cluster HorizonDB.
|
|
poolName
|
path |
True
|
string
minLength: 1 maxLength: 63 pattern: ^[a-z0-9](?:[-a-z0-9]*[a-z0-9])?$
|
O nome do pool do HorizonDB.
|
|
resourceGroupName
|
path |
True
|
string
minLength: 1 maxLength: 90
|
O nome do grupo de recursos. O nome não diferencia maiúsculas de minúsculas.
|
|
subscriptionId
|
path |
True
|
string
(uuid)
|
O ID da assinatura de destino. O valor deve ser uma UUID.
|
|
api-version
|
query |
True
|
string
minLength: 1
|
A versão da API a ser usada para esta operação.
|
Corpo da solicitação
| Nome |
Tipo |
Descrição |
|
properties
|
PoolPropertiesForPatchUpdate
|
As propriedades que podem ser atualizadas para um pool do HorizonDB.
|
|
tags
|
object
|
Tags de recursos.
|
Respostas
| Nome |
Tipo |
Descrição |
|
200 OK
|
Pool
|
A operação do Azure foi concluída com êxito.
|
|
202 Accepted
|
|
Solicitação de atualização de recurso aceita.
Cabeçalhos
- Azure-AsyncOperation: string
- Location: string
- Retry-After: integer
|
|
Other Status Codes
|
ErrorResponse
|
Uma resposta de erro inesperada.
|
Segurança
azure_auth
Fluxo do OAuth2 do Azure Active Directory.
Tipo:
oauth2
Flow:
implicit
URL de Autorização:
https://login.microsoftonline.com/common/oauth2/authorize
Escopos
| Nome |
Descrição |
|
user_impersonation
|
se passar pela sua conta de usuário
|
Exemplos
Solicitação de exemplo
PATCH https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/pools/example-pool-01?api-version=2026-10-01-preview
{
"properties": {
"parameterGroup": {
"parameterGroupResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/production-parameters",
"applyMethod": "Immediate"
}
}
}
import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod;
import com.azure.resourcemanager.horizondb.models.Pool;
import com.azure.resourcemanager.horizondb.models.PoolParameterGroupReferenceForPatchUpdate;
import com.azure.resourcemanager.horizondb.models.PoolPropertiesForPatchUpdate;
/**
* Samples for Pools Update.
*/
public final class Main {
/*
* x-ms-original-file: 2026-10-01-preview/Pools_UpdateParameterGroupImmediate.json
*/
/**
* Sample code: Associate a HorizonDB pool with a parameter group immediately.
*
* @param manager Entry point to HorizonDbManager.
*/
public static void associateAHorizonDBPoolWithAParameterGroupImmediately(
com.azure.resourcemanager.horizondb.HorizonDbManager manager) {
Pool resource = manager.pools().getWithResponse("example-resource-group", "example-cluster", "example-pool-01",
com.azure.core.util.Context.NONE).getValue();
resource.update().withProperties(new PoolPropertiesForPatchUpdate()
.withParameterGroup(new PoolParameterGroupReferenceForPatchUpdate().withParameterGroupResourceId(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/production-parameters")
.withApplyMethod(ParameterApplyMethod.IMMEDIATE)))
.apply();
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.horizondb import HorizonDBMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-horizondb
# USAGE
python pools_update_parameter_group_immediate.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = HorizonDBMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
response = client.pools.begin_update(
resource_group_name="example-resource-group",
cluster_name="example-cluster",
pool_name="example-pool-01",
properties={
"properties": {
"parameterGroup": {
"applyMethod": "Immediate",
"parameterGroupResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/production-parameters",
}
}
},
).result()
print(response)
# x-ms-original-file: 2026-10-01-preview/Pools_UpdateParameterGroupImmediate.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armhorizondb_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/horizondb/armhorizondb"
)
// Generated from example definition: 2026-10-01-preview/Pools_UpdateParameterGroupImmediate.json
func ExamplePoolsClient_BeginUpdate_associateAHorizonDbPoolWithAParameterGroupImmediately() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armhorizondb.NewClientFactory("ffffffff-ffff-ffff-ffff-ffffffffffff", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPoolsClient().BeginUpdate(ctx, "example-resource-group", "example-cluster", "example-pool-01", armhorizondb.PoolForPatchUpdate{
Properties: &armhorizondb.PoolPropertiesForPatchUpdate{
ParameterGroup: &armhorizondb.PoolParameterGroupReferenceForPatchUpdate{
ParameterGroupResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/production-parameters"),
ApplyMethod: to.Ptr(armhorizondb.ParameterApplyMethodImmediate),
},
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to poll the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armhorizondb.PoolsClientUpdateResponse{
// Pool: armhorizondb.Pool{
// ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/pools/example-pool-01"),
// Name: to.Ptr("example-pool-01"),
// Type: to.Ptr("Microsoft.HorizonDb/clusters/pools"),
// Properties: &armhorizondb.PoolProperties{
// State: to.Ptr(armhorizondb.PoolStateReady),
// ComputeModel: &armhorizondb.PoolComputeModel{
// Type: to.Ptr(armhorizondb.PoolComputeModelTypeProvisioned),
// ComputeProcessor: to.Ptr(armhorizondb.ComputeProcessorTypeAMD),
// ComputeGeneration: to.Ptr[int32](3),
// VCores: to.Ptr[int32](8),
// },
// NodeCount: to.Ptr[int32](3),
// HighAvailability: &armhorizondb.PoolHighAvailability{
// Mode: to.Ptr(armhorizondb.PoolHighAvailabilityModeAnyZone),
// },
// ParameterGroup: &armhorizondb.PoolParameterGroupReference{
// ParameterGroupResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/production-parameters"),
// ApplyMethod: to.Ptr(armhorizondb.ParameterApplyMethodImmediate),
// SyncStatus: to.Ptr(armhorizondb.ParameterGroupSyncStatusApplying),
// },
// ProvisioningState: to.Ptr(armhorizondb.ProvisioningStateSucceeded),
// },
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { HorizonDbClient } = require("@azure/arm-horizondb");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute model type, high-availability configuration, or associated parameter group. Omitted nodeCount and highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant may allocate a replacement node in another availability zone and replace a read-only node, disconnecting connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated against the recursively merged configuration.
*
* @summary updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute model type, high-availability configuration, or associated parameter group. Omitted nodeCount and highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant may allocate a replacement node in another availability zone and replace a read-only node, disconnecting connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated against the recursively merged configuration.
* x-ms-original-file: 2026-10-01-preview/Pools_UpdateParameterGroupImmediate.json
*/
async function associateAHorizonDBPoolWithAParameterGroupImmediately() {
const credential = new DefaultAzureCredential();
const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
const client = new HorizonDbClient(credential, subscriptionId);
const result = await client.pools.update(
"example-resource-group",
"example-cluster",
"example-pool-01",
{
properties: {
parameterGroup: {
parameterGroupResourceId:
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/production-parameters",
applyMethod: "Immediate",
},
},
},
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Resposta de exemplo
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/pools/example-pool-01",
"name": "example-pool-01",
"type": "Microsoft.HorizonDb/clusters/pools",
"properties": {
"state": "Ready",
"computeModel": {
"type": "Provisioned",
"computeProcessor": "AMD",
"computeGeneration": 3,
"vCores": 8
},
"nodeCount": 3,
"highAvailability": {
"mode": "AnyZone"
},
"parameterGroup": {
"parameterGroupResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/production-parameters",
"applyMethod": "Immediate",
"syncStatus": "Applying"
},
"provisioningState": "Succeeded"
}
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationStatuses/34343434-3434-3434-3434-343434343434?api-version=2026-10-01-preview
Location: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationResults/34343434-3434-3434-3434-343434343434?api-version=2026-10-01-preview
Retry-After: 30
Associate a HorizonDB pool with a parameter group pending reboot
Solicitação de exemplo
PATCH https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/pools/example-pool-01?api-version=2026-10-01-preview
{
"properties": {
"parameterGroup": {
"parameterGroupResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/maintenance-window-parameters",
"applyMethod": "PendingReboot"
}
}
}
import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod;
import com.azure.resourcemanager.horizondb.models.Pool;
import com.azure.resourcemanager.horizondb.models.PoolParameterGroupReferenceForPatchUpdate;
import com.azure.resourcemanager.horizondb.models.PoolPropertiesForPatchUpdate;
/**
* Samples for Pools Update.
*/
public final class Main {
/*
* x-ms-original-file: 2026-10-01-preview/Pools_UpdateParameterGroupPendingReboot.json
*/
/**
* Sample code: Associate a HorizonDB pool with a parameter group pending reboot.
*
* @param manager Entry point to HorizonDbManager.
*/
public static void associateAHorizonDBPoolWithAParameterGroupPendingReboot(
com.azure.resourcemanager.horizondb.HorizonDbManager manager) {
Pool resource = manager.pools().getWithResponse("example-resource-group", "example-cluster", "example-pool-01",
com.azure.core.util.Context.NONE).getValue();
resource.update().withProperties(new PoolPropertiesForPatchUpdate()
.withParameterGroup(new PoolParameterGroupReferenceForPatchUpdate().withParameterGroupResourceId(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/maintenance-window-parameters")
.withApplyMethod(ParameterApplyMethod.PENDING_REBOOT)))
.apply();
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.horizondb import HorizonDBMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-horizondb
# USAGE
python pools_update_parameter_group_pending_reboot.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = HorizonDBMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
response = client.pools.begin_update(
resource_group_name="example-resource-group",
cluster_name="example-cluster",
pool_name="example-pool-01",
properties={
"properties": {
"parameterGroup": {
"applyMethod": "PendingReboot",
"parameterGroupResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/maintenance-window-parameters",
}
}
},
).result()
print(response)
# x-ms-original-file: 2026-10-01-preview/Pools_UpdateParameterGroupPendingReboot.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armhorizondb_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/horizondb/armhorizondb"
)
// Generated from example definition: 2026-10-01-preview/Pools_UpdateParameterGroupPendingReboot.json
func ExamplePoolsClient_BeginUpdate_associateAHorizonDbPoolWithAParameterGroupPendingReboot() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armhorizondb.NewClientFactory("ffffffff-ffff-ffff-ffff-ffffffffffff", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPoolsClient().BeginUpdate(ctx, "example-resource-group", "example-cluster", "example-pool-01", armhorizondb.PoolForPatchUpdate{
Properties: &armhorizondb.PoolPropertiesForPatchUpdate{
ParameterGroup: &armhorizondb.PoolParameterGroupReferenceForPatchUpdate{
ParameterGroupResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/maintenance-window-parameters"),
ApplyMethod: to.Ptr(armhorizondb.ParameterApplyMethodPendingReboot),
},
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to poll the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armhorizondb.PoolsClientUpdateResponse{
// Pool: armhorizondb.Pool{
// ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/pools/example-pool-01"),
// Name: to.Ptr("example-pool-01"),
// Type: to.Ptr("Microsoft.HorizonDb/clusters/pools"),
// Properties: &armhorizondb.PoolProperties{
// State: to.Ptr(armhorizondb.PoolStateReady),
// ComputeModel: &armhorizondb.PoolComputeModel{
// Type: to.Ptr(armhorizondb.PoolComputeModelTypeProvisioned),
// ComputeProcessor: to.Ptr(armhorizondb.ComputeProcessorTypeAMD),
// ComputeGeneration: to.Ptr[int32](3),
// VCores: to.Ptr[int32](8),
// },
// NodeCount: to.Ptr[int32](3),
// HighAvailability: &armhorizondb.PoolHighAvailability{
// Mode: to.Ptr(armhorizondb.PoolHighAvailabilityModeAnyZone),
// },
// ParameterGroup: &armhorizondb.PoolParameterGroupReference{
// ParameterGroupResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/maintenance-window-parameters"),
// ApplyMethod: to.Ptr(armhorizondb.ParameterApplyMethodPendingReboot),
// SyncStatus: to.Ptr(armhorizondb.ParameterGroupSyncStatusPendingReboot),
// },
// ProvisioningState: to.Ptr(armhorizondb.ProvisioningStateSucceeded),
// },
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { HorizonDbClient } = require("@azure/arm-horizondb");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute model type, high-availability configuration, or associated parameter group. Omitted nodeCount and highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant may allocate a replacement node in another availability zone and replace a read-only node, disconnecting connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated against the recursively merged configuration.
*
* @summary updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute model type, high-availability configuration, or associated parameter group. Omitted nodeCount and highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant may allocate a replacement node in another availability zone and replace a read-only node, disconnecting connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated against the recursively merged configuration.
* x-ms-original-file: 2026-10-01-preview/Pools_UpdateParameterGroupPendingReboot.json
*/
async function associateAHorizonDBPoolWithAParameterGroupPendingReboot() {
const credential = new DefaultAzureCredential();
const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
const client = new HorizonDbClient(credential, subscriptionId);
const result = await client.pools.update(
"example-resource-group",
"example-cluster",
"example-pool-01",
{
properties: {
parameterGroup: {
parameterGroupResourceId:
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/maintenance-window-parameters",
applyMethod: "PendingReboot",
},
},
},
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Resposta de exemplo
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/pools/example-pool-01",
"name": "example-pool-01",
"type": "Microsoft.HorizonDb/clusters/pools",
"properties": {
"state": "Ready",
"computeModel": {
"type": "Provisioned",
"computeProcessor": "AMD",
"computeGeneration": 3,
"vCores": 8
},
"nodeCount": 3,
"highAvailability": {
"mode": "AnyZone"
},
"parameterGroup": {
"parameterGroupResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/maintenance-window-parameters",
"applyMethod": "PendingReboot",
"syncStatus": "PendingReboot"
},
"provisioningState": "Succeeded"
}
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationStatuses/45454545-4545-4545-4545-454545454545?api-version=2026-10-01-preview
Location: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationResults/45454545-4545-4545-4545-454545454545?api-version=2026-10-01-preview
Retry-After: 30
Require zone-redundant placement for a HorizonDB pool
Solicitação de exemplo
PATCH https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/pools/example-pool-01?api-version=2026-10-01-preview
{
"properties": {
"highAvailability": {
"mode": "ZoneRedundant"
}
}
}
import com.azure.resourcemanager.horizondb.models.Pool;
import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode;
import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityPatch;
import com.azure.resourcemanager.horizondb.models.PoolPropertiesForPatchUpdate;
/**
* Samples for Pools Update.
*/
public final class Main {
/*
* x-ms-original-file: 2026-10-01-preview/Pools_UpdateHighAvailabilityMode.json
*/
/**
* Sample code: Require zone-redundant placement for a HorizonDB pool.
*
* @param manager Entry point to HorizonDbManager.
*/
public static void
requireZoneRedundantPlacementForAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) {
Pool resource = manager.pools().getWithResponse("example-resource-group", "example-cluster", "example-pool-01",
com.azure.core.util.Context.NONE).getValue();
resource.update().withProperties(new PoolPropertiesForPatchUpdate()
.withHighAvailability(new PoolHighAvailabilityPatch().withMode(PoolHighAvailabilityMode.ZONE_REDUNDANT)))
.apply();
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.horizondb import HorizonDBMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-horizondb
# USAGE
python pools_update_high_availability_mode.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = HorizonDBMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
response = client.pools.begin_update(
resource_group_name="example-resource-group",
cluster_name="example-cluster",
pool_name="example-pool-01",
properties={"properties": {"highAvailability": {"mode": "ZoneRedundant"}}},
).result()
print(response)
# x-ms-original-file: 2026-10-01-preview/Pools_UpdateHighAvailabilityMode.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armhorizondb_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/horizondb/armhorizondb"
)
// Generated from example definition: 2026-10-01-preview/Pools_UpdateHighAvailabilityMode.json
func ExamplePoolsClient_BeginUpdate_requireZoneRedundantPlacementForAHorizonDbPool() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armhorizondb.NewClientFactory("ffffffff-ffff-ffff-ffff-ffffffffffff", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPoolsClient().BeginUpdate(ctx, "example-resource-group", "example-cluster", "example-pool-01", armhorizondb.PoolForPatchUpdate{
Properties: &armhorizondb.PoolPropertiesForPatchUpdate{
HighAvailability: &armhorizondb.PoolHighAvailabilityPatch{
Mode: to.Ptr(armhorizondb.PoolHighAvailabilityModeZoneRedundant),
},
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to poll the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armhorizondb.PoolsClientUpdateResponse{
// Pool: armhorizondb.Pool{
// ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/pools/example-pool-01"),
// Name: to.Ptr("example-pool-01"),
// Type: to.Ptr("Microsoft.HorizonDb/clusters/pools"),
// Properties: &armhorizondb.PoolProperties{
// State: to.Ptr(armhorizondb.PoolStateReady),
// ComputeModel: &armhorizondb.PoolComputeModel{
// Type: to.Ptr(armhorizondb.PoolComputeModelTypeProvisioned),
// ComputeProcessor: to.Ptr(armhorizondb.ComputeProcessorTypeAMD),
// ComputeGeneration: to.Ptr[int32](3),
// VCores: to.Ptr[int32](8),
// },
// NodeCount: to.Ptr[int32](3),
// HighAvailability: &armhorizondb.PoolHighAvailability{
// Mode: to.Ptr(armhorizondb.PoolHighAvailabilityModeZoneRedundant),
// },
// ParameterGroup: &armhorizondb.PoolParameterGroupReference{
// ParameterGroupResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/production-parameters"),
// ApplyMethod: to.Ptr(armhorizondb.ParameterApplyMethodImmediate),
// SyncStatus: to.Ptr(armhorizondb.ParameterGroupSyncStatusInSync),
// },
// ScheduledMaintenance: &armhorizondb.SystemScheduledMaintenanceProperties{
// MaintenanceManagementType: to.Ptr(armhorizondb.ScheduledMaintenanceManagementTypeSystem),
// },
// ProvisioningState: to.Ptr(armhorizondb.ProvisioningStateSucceeded),
// },
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { HorizonDbClient } = require("@azure/arm-horizondb");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute model type, high-availability configuration, or associated parameter group. Omitted nodeCount and highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant may allocate a replacement node in another availability zone and replace a read-only node, disconnecting connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated against the recursively merged configuration.
*
* @summary updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute model type, high-availability configuration, or associated parameter group. Omitted nodeCount and highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant may allocate a replacement node in another availability zone and replace a read-only node, disconnecting connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated against the recursively merged configuration.
* x-ms-original-file: 2026-10-01-preview/Pools_UpdateHighAvailabilityMode.json
*/
async function requireZoneRedundantPlacementForAHorizonDBPool() {
const credential = new DefaultAzureCredential();
const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
const client = new HorizonDbClient(credential, subscriptionId);
const result = await client.pools.update(
"example-resource-group",
"example-cluster",
"example-pool-01",
{ properties: { highAvailability: { mode: "ZoneRedundant" } } },
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Resposta de exemplo
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/pools/example-pool-01",
"name": "example-pool-01",
"type": "Microsoft.HorizonDb/clusters/pools",
"properties": {
"state": "Ready",
"computeModel": {
"type": "Provisioned",
"computeProcessor": "AMD",
"computeGeneration": 3,
"vCores": 8
},
"nodeCount": 3,
"highAvailability": {
"mode": "ZoneRedundant"
},
"parameterGroup": {
"parameterGroupResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/production-parameters",
"applyMethod": "Immediate",
"syncStatus": "InSync"
},
"scheduledMaintenance": {
"maintenanceManagementType": "System"
},
"provisioningState": "Succeeded"
}
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationStatuses/78787878-7878-7878-7878-787878787878?api-version=2026-10-01-preview
Location: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationResults/78787878-7878-7878-7878-787878787878?api-version=2026-10-01-preview
Retry-After: 30
Switch a HorizonDB pool back to its corresponding default parameter group
Solicitação de exemplo
PATCH https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/pools/example-pool-01?api-version=2026-10-01-preview
{
"properties": {
"parameterGroup": {
"parameterGroupResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/parameterGroups/default-postgresql-17-provisioned",
"applyMethod": "Immediate"
}
}
}
import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod;
import com.azure.resourcemanager.horizondb.models.Pool;
import com.azure.resourcemanager.horizondb.models.PoolParameterGroupReferenceForPatchUpdate;
import com.azure.resourcemanager.horizondb.models.PoolPropertiesForPatchUpdate;
/**
* Samples for Pools Update.
*/
public final class Main {
/*
* x-ms-original-file: 2026-10-01-preview/Pools_UpdateParameterGroupDefault.json
*/
/**
* Sample code: Switch a HorizonDB pool back to its corresponding default parameter group.
*
* @param manager Entry point to HorizonDbManager.
*/
public static void switchAHorizonDBPoolBackToItsCorrespondingDefaultParameterGroup(
com.azure.resourcemanager.horizondb.HorizonDbManager manager) {
Pool resource = manager.pools().getWithResponse("example-resource-group", "example-cluster", "example-pool-01",
com.azure.core.util.Context.NONE).getValue();
resource.update().withProperties(new PoolPropertiesForPatchUpdate()
.withParameterGroup(new PoolParameterGroupReferenceForPatchUpdate().withParameterGroupResourceId(
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/parameterGroups/default-postgresql-17-provisioned")
.withApplyMethod(ParameterApplyMethod.IMMEDIATE)))
.apply();
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.horizondb import HorizonDBMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-horizondb
# USAGE
python pools_update_parameter_group_default.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = HorizonDBMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
response = client.pools.begin_update(
resource_group_name="example-resource-group",
cluster_name="example-cluster",
pool_name="example-pool-01",
properties={
"properties": {
"parameterGroup": {
"applyMethod": "Immediate",
"parameterGroupResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/parameterGroups/default-postgresql-17-provisioned",
}
}
},
).result()
print(response)
# x-ms-original-file: 2026-10-01-preview/Pools_UpdateParameterGroupDefault.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armhorizondb_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/horizondb/armhorizondb"
)
// Generated from example definition: 2026-10-01-preview/Pools_UpdateParameterGroupDefault.json
func ExamplePoolsClient_BeginUpdate_switchAHorizonDbPoolBackToItsCorrespondingDefaultParameterGroup() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armhorizondb.NewClientFactory("ffffffff-ffff-ffff-ffff-ffffffffffff", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPoolsClient().BeginUpdate(ctx, "example-resource-group", "example-cluster", "example-pool-01", armhorizondb.PoolForPatchUpdate{
Properties: &armhorizondb.PoolPropertiesForPatchUpdate{
ParameterGroup: &armhorizondb.PoolParameterGroupReferenceForPatchUpdate{
ParameterGroupResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/parameterGroups/default-postgresql-17-provisioned"),
ApplyMethod: to.Ptr(armhorizondb.ParameterApplyMethodImmediate),
},
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to poll the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armhorizondb.PoolsClientUpdateResponse{
// Pool: armhorizondb.Pool{
// ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/pools/example-pool-01"),
// Name: to.Ptr("example-pool-01"),
// Type: to.Ptr("Microsoft.HorizonDb/clusters/pools"),
// Properties: &armhorizondb.PoolProperties{
// State: to.Ptr(armhorizondb.PoolStateReady),
// ComputeModel: &armhorizondb.PoolComputeModel{
// Type: to.Ptr(armhorizondb.PoolComputeModelTypeProvisioned),
// ComputeProcessor: to.Ptr(armhorizondb.ComputeProcessorTypeAMD),
// ComputeGeneration: to.Ptr[int32](3),
// VCores: to.Ptr[int32](8),
// },
// NodeCount: to.Ptr[int32](3),
// HighAvailability: &armhorizondb.PoolHighAvailability{
// Mode: to.Ptr(armhorizondb.PoolHighAvailabilityModeAnyZone),
// },
// ParameterGroup: &armhorizondb.PoolParameterGroupReference{
// ParameterGroupResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/parameterGroups/default-postgresql-17-provisioned"),
// ApplyMethod: to.Ptr(armhorizondb.ParameterApplyMethodImmediate),
// SyncStatus: to.Ptr(armhorizondb.ParameterGroupSyncStatusApplying),
// },
// ProvisioningState: to.Ptr(armhorizondb.ProvisioningStateSucceeded),
// },
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { HorizonDbClient } = require("@azure/arm-horizondb");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute model type, high-availability configuration, or associated parameter group. Omitted nodeCount and highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant may allocate a replacement node in another availability zone and replace a read-only node, disconnecting connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated against the recursively merged configuration.
*
* @summary updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute model type, high-availability configuration, or associated parameter group. Omitted nodeCount and highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant may allocate a replacement node in another availability zone and replace a read-only node, disconnecting connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated against the recursively merged configuration.
* x-ms-original-file: 2026-10-01-preview/Pools_UpdateParameterGroupDefault.json
*/
async function switchAHorizonDBPoolBackToItsCorrespondingDefaultParameterGroup() {
const credential = new DefaultAzureCredential();
const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
const client = new HorizonDbClient(credential, subscriptionId);
const result = await client.pools.update(
"example-resource-group",
"example-cluster",
"example-pool-01",
{
properties: {
parameterGroup: {
parameterGroupResourceId:
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/parameterGroups/default-postgresql-17-provisioned",
applyMethod: "Immediate",
},
},
},
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Resposta de exemplo
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/pools/example-pool-01",
"name": "example-pool-01",
"type": "Microsoft.HorizonDb/clusters/pools",
"properties": {
"state": "Ready",
"computeModel": {
"type": "Provisioned",
"computeProcessor": "AMD",
"computeGeneration": 3,
"vCores": 8
},
"nodeCount": 3,
"highAvailability": {
"mode": "AnyZone"
},
"parameterGroup": {
"parameterGroupResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/parameterGroups/default-postgresql-17-provisioned",
"applyMethod": "Immediate",
"syncStatus": "Applying"
},
"provisioningState": "Succeeded"
}
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationStatuses/56565656-5656-5656-5656-565656565656?api-version=2026-10-01-preview
Location: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationResults/56565656-5656-5656-5656-565656565656?api-version=2026-10-01-preview
Retry-After: 30
Update a single HorizonDB pool compute property
Solicitação de exemplo
PATCH https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/pools/example-pool-01?api-version=2026-10-01-preview
{
"properties": {
"computeModel": {
"vCores": 16
},
"scheduledMaintenance": {
"maintenanceManagementType": "System"
}
}
}
import com.azure.resourcemanager.horizondb.models.Pool;
import com.azure.resourcemanager.horizondb.models.PoolComputeModelForPatchUpdate;
import com.azure.resourcemanager.horizondb.models.PoolPropertiesForPatchUpdate;
import com.azure.resourcemanager.horizondb.models.ScheduledMaintenanceManagementType;
import com.azure.resourcemanager.horizondb.models.ScheduledMaintenancePropertiesForPatchUpdate;
/**
* Samples for Pools Update.
*/
public final class Main {
/*
* x-ms-original-file: 2026-10-01-preview/Pools_Update.json
*/
/**
* Sample code: Update a single HorizonDB pool compute property.
*
* @param manager Entry point to HorizonDbManager.
*/
public static void
updateASingleHorizonDBPoolComputeProperty(com.azure.resourcemanager.horizondb.HorizonDbManager manager) {
Pool resource = manager.pools().getWithResponse("example-resource-group", "example-cluster", "example-pool-01",
com.azure.core.util.Context.NONE).getValue();
resource.update()
.withProperties(
new PoolPropertiesForPatchUpdate().withComputeModel(new PoolComputeModelForPatchUpdate().withVCores(16))
.withScheduledMaintenance(new ScheduledMaintenancePropertiesForPatchUpdate()
.withMaintenanceManagementType(ScheduledMaintenanceManagementType.SYSTEM)))
.apply();
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.horizondb import HorizonDBMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-horizondb
# USAGE
python pools_update.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = HorizonDBMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
response = client.pools.begin_update(
resource_group_name="example-resource-group",
cluster_name="example-cluster",
pool_name="example-pool-01",
properties={
"properties": {
"computeModel": {"vCores": 16},
"scheduledMaintenance": {"maintenanceManagementType": "System"},
}
},
).result()
print(response)
# x-ms-original-file: 2026-10-01-preview/Pools_Update.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armhorizondb_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/horizondb/armhorizondb"
)
// Generated from example definition: 2026-10-01-preview/Pools_Update.json
func ExamplePoolsClient_BeginUpdate_updateASingleHorizonDbPoolComputeProperty() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armhorizondb.NewClientFactory("ffffffff-ffff-ffff-ffff-ffffffffffff", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPoolsClient().BeginUpdate(ctx, "example-resource-group", "example-cluster", "example-pool-01", armhorizondb.PoolForPatchUpdate{
Properties: &armhorizondb.PoolPropertiesForPatchUpdate{
ComputeModel: &armhorizondb.PoolComputeModelForPatchUpdate{
VCores: to.Ptr[int32](16),
},
ScheduledMaintenance: &armhorizondb.ScheduledMaintenancePropertiesForPatchUpdate{
MaintenanceManagementType: to.Ptr(armhorizondb.ScheduledMaintenanceManagementTypeSystem),
},
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to poll the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armhorizondb.PoolsClientUpdateResponse{
// Pool: armhorizondb.Pool{
// ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/pools/example-pool-01"),
// Name: to.Ptr("example-pool-01"),
// Type: to.Ptr("Microsoft.HorizonDb/clusters/pools"),
// Properties: &armhorizondb.PoolProperties{
// State: to.Ptr(armhorizondb.PoolStateReady),
// ComputeModel: &armhorizondb.PoolComputeModel{
// Type: to.Ptr(armhorizondb.PoolComputeModelTypeProvisioned),
// ComputeProcessor: to.Ptr(armhorizondb.ComputeProcessorTypeAMD),
// ComputeGeneration: to.Ptr[int32](3),
// VCores: to.Ptr[int32](16),
// },
// NodeCount: to.Ptr[int32](3),
// HighAvailability: &armhorizondb.PoolHighAvailability{
// Mode: to.Ptr(armhorizondb.PoolHighAvailabilityModeAnyZone),
// },
// ParameterGroup: &armhorizondb.PoolParameterGroupReference{
// ParameterGroupResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/parameterGroups/default-postgresql-17-provisioned"),
// ApplyMethod: to.Ptr(armhorizondb.ParameterApplyMethodImmediate),
// SyncStatus: to.Ptr(armhorizondb.ParameterGroupSyncStatusInSync),
// },
// ScheduledMaintenance: &armhorizondb.SystemScheduledMaintenanceProperties{
// MaintenanceManagementType: to.Ptr(armhorizondb.ScheduledMaintenanceManagementTypeSystem),
// },
// ProvisioningState: to.Ptr(armhorizondb.ProvisioningStateSucceeded),
// },
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { HorizonDbClient } = require("@azure/arm-horizondb");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute model type, high-availability configuration, or associated parameter group. Omitted nodeCount and highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant may allocate a replacement node in another availability zone and replace a read-only node, disconnecting connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated against the recursively merged configuration.
*
* @summary updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute model type, high-availability configuration, or associated parameter group. Omitted nodeCount and highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant may allocate a replacement node in another availability zone and replace a read-only node, disconnecting connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction between the corresponding default parameter group and a customer-created parameter group. applyMethod controls when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute constraints are validated against the recursively merged configuration.
* x-ms-original-file: 2026-10-01-preview/Pools_Update.json
*/
async function updateASingleHorizonDBPoolComputeProperty() {
const credential = new DefaultAzureCredential();
const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
const client = new HorizonDbClient(credential, subscriptionId);
const result = await client.pools.update(
"example-resource-group",
"example-cluster",
"example-pool-01",
{
properties: {
computeModel: { vCores: 16 },
scheduledMaintenance: { maintenanceManagementType: "System" },
},
},
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Resposta de exemplo
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/pools/example-pool-01",
"name": "example-pool-01",
"type": "Microsoft.HorizonDb/clusters/pools",
"properties": {
"state": "Ready",
"computeModel": {
"type": "Provisioned",
"computeProcessor": "AMD",
"computeGeneration": 3,
"vCores": 16
},
"nodeCount": 3,
"highAvailability": {
"mode": "AnyZone"
},
"parameterGroup": {
"parameterGroupResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/parameterGroups/default-postgresql-17-provisioned",
"applyMethod": "Immediate",
"syncStatus": "InSync"
},
"scheduledMaintenance": {
"maintenanceManagementType": "System"
},
"provisioningState": "Succeeded"
}
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationStatuses/77777777-7777-7777-7777-777777777777?api-version=2026-10-01-preview
Location: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationResults/77777777-7777-7777-7777-777777777777?api-version=2026-10-01-preview
Retry-After: 30
Definições
| Nome |
Descrição |
|
ComputeProcessorType
|
O tipo de processador de computação.
|
|
createdByType
|
O tipo de identidade que criou o recurso.
|
|
ErrorAdditionalInfo
|
Informações adicionais sobre o erro de gerenciamento de recursos.
|
|
ErrorDetail
|
O detalhe do erro.
|
|
ErrorResponse
|
Resposta de erro
|
|
ParameterApplyMethod
|
Controle quando mudanças dinâmicas de parâmetros se tornam efetivas. Mudanças estáticas de parâmetros sempre se tornam eficazes apenas após um reinício iniciado pelo cliente no pool. Parada seguida de Iniciar e manutenção programada não se aplicam alterações pendentes de parâmetro.
|
|
ParameterGroupSyncStatus
|
Indica o status de sincronização entre um recurso do HorizonDB e seu grupo de parâmetros.
|
|
Pool
|
Representa o pool do HorizonDB.
|
|
PoolComputeModel
|
O modelo de computação para um pool HorizonDB.
|
|
PoolComputeModelForPatchUpdate
|
As propriedades do modelo de computação de um pool do HorizonDB que podem ser atualizadas. O objeto é recursivamente mergável: propriedades omitidas preservam seus valores atuais. Propriedades que não se aplicam ao modelo de computação atual ou alvo são rejeitadas. Quando o tipo muda, a solicitação deve incluir o modelo completo de computação do alvo. Restrições específicas de subtipo são validadas contra a configuração efetiva de mesclada; requisições inválidas são rejeitadas sem alterar o recurso.
|
|
PoolComputeModelType
|
O tipo de modelo de computação.
|
|
PoolForPatchUpdate
|
Pool HorizonDB para operações de atualização.
|
|
PoolHighAvailability
|
A configuração de alta disponibilidade para um pool HorizonDB.
|
|
PoolHighAvailabilityMode
|
O modo de alta disponibilidade solicitado para um pool do HorizonDB.
|
|
PoolHighAvailabilityPatch
|
A configuração de alta disponibilidade para uma atualização de pool do HorizonDB.
|
|
PoolParameterGroupReference
|
Uma referência ao grupo de parâmetros associado a um pool do HorizonDB. O esquema representa tanto grupos de parâmetros padrão quanto criados pelo cliente para compatibilidade de criação e atualização. Nesta versão da API, a criação inicial do pool aceita apenas o grupo de parâmetros padrão correspondente; Atualizações PUT a um pool existente podem associar qualquer tipo de grupo.
|
|
PoolParameterGroupReferenceForPatchUpdate
|
Uma referência de grupo de parâmetros para atualizar um pool existente do HorizonDB. O pool pode alternar em qualquer direção entre seu grupo de parâmetros padrão correspondente e um grupo de parâmetros criado pelo cliente.
|
|
PoolProperties
|
Propriedades de um pool do HorizonDB.
|
|
PoolPropertiesForPatchUpdate
|
Propriedades de um pool HorizonDB para operações de atualização.
|
|
PoolState
|
Estado atual de um pool do HorizonDB.
|
|
ProvisioningState
|
O estado de provisionamento.
|
|
ScheduledMaintenanceManagementType
|
Especifica quem gerencia a manutenção programada para um pool do HorizonDB.
|
|
ScheduledMaintenancePropertiesForPatchUpdate
|
A configuração de manutenção programada para uma operação de atualização de pool.
|
|
systemData
|
Metadados relativos à criação e última modificação do recurso.
|
|
SystemScheduledMaintenanceProperties
|
A configuração de manutenção programada gerenciada pelo sistema para um pool do HorizonDB. As propriedades de cronograma gerenciadas pelo usuário devem estar ausentes.
|
ComputeProcessorType
Enumeração
O tipo de processador de computação.
| Valor |
Descrição |
|
Intel
|
Processador Intel
|
|
AMD
|
Processador AMD
|
createdByType
Enumeração
O tipo de identidade que criou o recurso.
| Valor |
Descrição |
|
User
|
|
|
Application
|
|
|
ManagedIdentity
|
|
|
Key
|
|
ErrorAdditionalInfo
Objeto
Informações adicionais sobre o erro de gerenciamento de recursos.
| Nome |
Tipo |
Descrição |
|
info
|
object
|
As informações adicionais.
|
|
type
|
string
|
O tipo de informação adicional.
|
ErrorDetail
Objeto
O detalhe do erro.
| Nome |
Tipo |
Descrição |
|
additionalInfo
|
ErrorAdditionalInfo[]
|
Informações adicionais do erro.
|
|
code
|
string
|
O código de erro.
|
|
details
|
ErrorDetail[]
|
Os detalhes do erro.
|
|
message
|
string
|
A mensagem de erro.
|
|
target
|
string
|
O alvo do erro.
|
ErrorResponse
Objeto
Resposta de erro
| Nome |
Tipo |
Descrição |
|
error
|
ErrorDetail
|
O objeto de erro.
|
ParameterApplyMethod
Enumeração
Controle quando mudanças dinâmicas de parâmetros se tornam efetivas. Mudanças estáticas de parâmetros sempre se tornam eficazes apenas após um reinício iniciado pelo cliente no pool. Parada seguida de Iniciar e manutenção programada não se aplicam alterações pendentes de parâmetro.
| Valor |
Descrição |
|
Immediate
|
Aplique mudanças dinâmicas nos parâmetros imediatamente. Mudanças estáticas de parâmetros permanecem pendentes até que um pool iniciado pelo cliente seja Reiniciado.
|
|
PendingReboot
|
Mantenha as alterações dinâmicas e estáticas de parâmetros pendentes até que um pool iniciado pelo cliente seja reiniciado. Stop seguido de Start e manutenção programada não os apliquem.
|
ParameterGroupSyncStatus
Enumeração
Indica o status de sincronização entre um recurso do HorizonDB e seu grupo de parâmetros.
| Valor |
Descrição |
|
Applying
|
Atualizações de parâmetros estão sendo aplicadas atualmente.
|
|
InSync
|
Os valores dos parâmetros são sincronizados e atualizados.
|
|
FailedToApply
|
A aplicação de atualizações de parâmetros falhou.
|
|
PendingReboot
|
Atualizações de parâmetros estão pendentes e exigem um reinício de pool iniciado pelo cliente para entrar em vigor. Parada seguida de Iniciar e manutenção programada mantêm esse status.
|
Pool
Objeto
Representa o pool do HorizonDB.
| Nome |
Tipo |
Descrição |
|
id
|
string
(arm-id)
|
ID de recurso totalmente qualificada para o recurso. Por exemplo, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
|
|
name
|
string
|
O nome do recurso
|
|
properties
|
PoolProperties
|
As propriedades específicas do recurso para esse recurso.
|
|
systemData
|
systemData
|
Metadados do Azure Resource Manager que contêm informações createdBy e modifiedBy.
|
|
tags
|
object
|
Tags de recursos.
|
|
type
|
string
|
O tipo do recurso. Por exemplo, "Microsoft.Compute/virtualMachines" ou "Microsoft.Storage/storageAccounts"
|
PoolComputeModel
Objeto
O modelo de computação para um pool HorizonDB.
| Nome |
Tipo |
Descrição |
|
computeGeneration
|
integer
(int32)
minimum: 1
|
A geração de computação para o modelo de computação.
|
|
computeProcessor
|
ComputeProcessorType
|
O tipo de processador para o modelo de computação.
|
|
type
|
PoolComputeModelType
|
O tipo de modelo computacional.
|
|
vCores
|
integer
(int32)
minimum: 2 maximum: 192
|
O número de vCores. Os valores permitidos são de 1 a 192.
|
PoolComputeModelForPatchUpdate
Objeto
As propriedades do modelo de computação de um pool do HorizonDB que podem ser atualizadas. O objeto é recursivamente mergável: propriedades omitidas preservam seus valores atuais. Propriedades que não se aplicam ao modelo de computação atual ou alvo são rejeitadas. Quando o tipo muda, a solicitação deve incluir o modelo completo de computação do alvo. Restrições específicas de subtipo são validadas contra a configuração efetiva de mesclada; requisições inválidas são rejeitadas sem alterar o recurso.
| Nome |
Tipo |
Descrição |
|
computeGeneration
|
integer
(int32)
minimum: 1
|
A geração de computação para o modelo de computação. A omissão preserva a geração atual de computação.
|
|
computeProcessor
|
ComputeProcessorType
|
O tipo de processador para o modelo de computação. A omissão preserva o tipo atual de processador.
|
|
type
|
PoolComputeModelType
|
O tipo de modelo de computação. Omita essa propriedade para manter o tipo atual. Resubmeter o tipo atual é bem-sucedido como um no-opidempotente. Para alterar o tipo, forneça todas as propriedades comuns e todas as propriedades exigidas pelo tipo-alvo.
|
|
vCores
|
integer
(int32)
minimum: 2 maximum: 192
|
O número de vCore provisionados. Os valores permitidos são de 1 a 192. Essa propriedade se aplica apenas a um modelo de computação provisionado. A omissão preserva o valor atual.
|
PoolComputeModelType
Enumeração
O tipo de modelo de computação.
| Valor |
Descrição |
|
Provisioned
|
Modelo de computação provisionada
|
PoolForPatchUpdate
Objeto
Pool HorizonDB para operações de atualização.
| Nome |
Tipo |
Descrição |
|
properties
|
PoolPropertiesForPatchUpdate
|
As propriedades que podem ser atualizadas para um pool do HorizonDB.
|
|
tags
|
object
|
Tags de recursos.
|
PoolHighAvailability
Objeto
A configuração de alta disponibilidade para um pool HorizonDB.
| Nome |
Tipo |
Descrição |
|
mode
|
PoolHighAvailabilityMode
|
O modo de alta disponibilidade. Desativado é necessário quando o número de nós é 1. AnyZone ou ZoneRedundant é necessário quando nodeCount está de 2 a 16.
|
PoolHighAvailabilityMode
Enumeração
O modo de alta disponibilidade solicitado para um pool do HorizonDB.
| Valor |
Descrição |
|
Disabled
|
Alta disponibilidade está desativada. Esse modo é válido apenas quando nodeCount é 1.
|
|
AnyZone
|
O serviço pode alocar nós na mesma zona de disponibilidade ou entre zonas de disponibilidade. Esse modo é válido apenas quando nodeCount está de 2 a 16.
|
|
ZoneRedundant
|
O serviço deve alocar nós entre as zonas de disponibilidade. Esse modo é válido apenas quando nodeCount está de 2 a 16.
|
PoolHighAvailabilityPatch
Objeto
A configuração de alta disponibilidade para uma atualização de pool do HorizonDB.
| Nome |
Tipo |
Descrição |
|
mode
|
PoolHighAvailabilityMode
|
O modo de alta disponibilidade. Omissão preserva o modo atual antes que o serviço o valide com o nodeCount efetivo.
|
PoolParameterGroupReference
Objeto
Uma referência ao grupo de parâmetros associado a um pool do HorizonDB. O esquema representa tanto grupos de parâmetros padrão quanto criados pelo cliente para compatibilidade de criação e atualização. Nesta versão da API, a criação inicial do pool aceita apenas o grupo de parâmetros padrão correspondente; Atualizações PUT a um pool existente podem associar qualquer tipo de grupo.
| Nome |
Tipo |
Descrição |
|
applyMethod
|
ParameterApplyMethod
|
Determina quando as mudanças dinâmicas dos parâmetros do grupo de parâmetros associados tornam-se efetivas. Mudanças estáticas de parâmetros sempre exigem um reinício do pool iniciado pelo cliente, independentemente desse valor. Parada seguida de Iniciar e manutenção programada não se aplicam alterações pendentes de parâmetro.
|
|
parameterGroupResourceId
|
string
(arm-id)
|
O ID de recurso do Azure do grupo de parâmetros associado. A criação inicial de pool nesta versão da API requer o recurso correspondente da Microsoft. HorizonDb/locations/parameterGroups. Para um pool existente, o PUT pode especificar tanto o grupo padrão correspondente quanto um recurso Microsoft criado pelo cliente. HorizonDb/parameterGroups.
|
|
syncStatus
|
ParameterGroupSyncStatus
|
O status de sincronização entre o pool e seu grupo de parâmetros. As mudanças no PendingReboot permanecem pendentes em Stop, Start e manutenção programada e só entram em vigor após um Reinício iniciado pelo cliente.
|
PoolParameterGroupReferenceForPatchUpdate
Objeto
Uma referência de grupo de parâmetros para atualizar um pool existente do HorizonDB. O pool pode alternar em qualquer direção entre seu grupo de parâmetros padrão correspondente e um grupo de parâmetros criado pelo cliente.
| Nome |
Tipo |
Descrição |
|
applyMethod
|
ParameterApplyMethod
|
Determina quando as mudanças dinâmicas dos parâmetros do grupo de parâmetros associados tornam-se efetivas. Mudanças estáticas de parâmetros sempre exigem um reinício do pool iniciado pelo cliente, independentemente desse valor. Parada seguida de Iniciar e manutenção programada não se aplicam alterações pendentes de parâmetro.
|
|
parameterGroupResourceId
|
string
(arm-id)
|
O ID de recurso do Azure do grupo de parâmetros padrão correspondente ou criado pelo cliente para associar ao pool existente.
|
PoolProperties
Objeto
Propriedades de um pool do HorizonDB.
| Nome |
Tipo |
Descrição |
|
computeModel
|
PoolComputeModel
|
O modelo de computação necessário para o pool do HorizonDB.
|
|
highAvailability
|
PoolHighAvailability
|
A configuração de alta disponibilidade exigida para a piscina. o modo deve ser desativado quando o número de nós é 1, e deve ser AnyZone ou ZoneRedundant quando o número de nós está de 2 a 16.
|
|
nodeCount
|
integer
(int32)
minimum: 1 maximum: 16
|
O número necessário de nós para alocar e atribuir ao pool. Os valores permitidos são de 1 a 16. Para desalocar o cálculo em tempo de execução sem alterar a contagem de nós configurada, pare o pool.
|
|
parameterGroup
|
PoolParameterGroupReference
|
O grupo de parâmetros necessário associado ao pool. Ao criar um novo pool nesta versão da API, o chamador deve fornecer o grupo de parâmetros padrão correspondente; grupos de parâmetros criados pelo cliente não são aceitos durante a criação. Para um pool existente, PUT ou PATCH podem associar tanto o grupo de parâmetros padrão correspondente quanto um grupo de parâmetros criado pelo cliente. A forma create-visible suporta intencionalmente ambos os formulários de ID de recurso para que uma versão futura da API permita grupos de parâmetros criados pelo cliente durante a criação sem que o esquema quebre.
|
|
provisioningState
|
ProvisioningState
|
O estado de abastecimento da piscina.
|
|
scheduledMaintenance
|
ScheduledMaintenanceProperties:
SystemScheduledMaintenanceProperties
|
A configuração de manutenção programada da piscina. Os imóveis disponíveis dependem do tipo de gestão de manutenção selecionado.
|
|
state
|
PoolState
|
Estado atual da piscina.
|
PoolPropertiesForPatchUpdate
Objeto
Propriedades de um pool HorizonDB para operações de atualização.
| Nome |
Tipo |
Descrição |
|
computeModel
|
PoolComputeModelForPatchUpdate
|
As propriedades do modelo de computação para atualizar. Propriedades omitidas preservam seus valores atuais. Para alterar o tipo de modelo de computação, forneça o modelo completo de computação alvo, incluindo tipo, computeProcessor, computeGeneration e todas as propriedades exigidas pelo tipo alvo.
|
|
highAvailability
|
PoolHighAvailabilityPatch
|
A configuração de alta disponibilidade para atualizar. Omissão preserva o modo atual. O serviço funde recursivamente propriedades PATCH omitidas com o recurso existente antes de validar o número efetivo de nós e o modo juntos.
|
|
nodeCount
|
integer
(int32)
minimum: 1 maximum: 16
|
O número de nós a serem alocados e atribuídos ao pool. Os valores permitidos são de 1 a 16. Omissão preserva o valor configurado atualmente. Para desalocar o cálculo em tempo de execução sem alterar a contagem de nós configurada, pare o pool.
|
|
parameterGroup
|
PoolParameterGroupReferenceForPatchUpdate
|
O padrão correspondente ou um grupo de parâmetros criado pelo cliente para associar ao pool existente. Os clientes podem alternar em qualquer direção entre esses tipos de grupo. A omissão preserva a associação atual.
|
|
scheduledMaintenance
|
ScheduledMaintenancePropertiesForPatchUpdate
|
A configuração de manutenção programada para atualizar na piscina. Quando fornecida, a configuração completa para o tipo de gerenciamento de manutenção selecionado é necessária. A omissão preserva a configuração atual.
|
PoolState
Enumeração
Estado atual de um pool do HorizonDB.
| Valor |
Descrição |
|
Ready
|
Está pronto e operacional
|
|
Provisioning
|
É provisionamento
|
|
Deleting
|
Está sendo deletado
|
|
Inaccessible
|
É inacessível
|
|
Updating
|
Está sendo atualizado
|
|
Starting
|
Está começando
|
|
Restarting
|
Está reiniciando
|
|
Stopping
|
Está parando
|
|
Stopped
|
É parado
|
ProvisioningState
Enumeração
O estado de provisionamento.
| Valor |
Descrição |
|
Succeeded
|
O recurso foi criado.
|
|
Failed
|
Falha na criação de recursos.
|
|
Canceled
|
A criação de recursos foi cancelada.
|
|
InProgress
|
A operação de recursos do HorizonDB está em execução ativa.
|
|
Provisioning
|
O recurso do HorizonDB ainda está sendo provisionado.
|
ScheduledMaintenanceManagementType
Enumeração
Especifica quem gerencia a manutenção programada para um pool do HorizonDB.
| Valor |
Descrição |
|
System
|
A manutenção programada é gerenciada pelo sistema.
|
ScheduledMaintenancePropertiesForPatchUpdate
Objeto
A configuração de manutenção programada para uma operação de atualização de pool.
| Nome |
Tipo |
Descrição |
|
maintenanceManagementType
|
ScheduledMaintenanceManagementType
|
Especifica se a manutenção programada é gerenciada pelo sistema ou pelo usuário. Quando a manutenção programada é fornecida, essa propriedade é exigida pelo serviço.
|
systemData
Objeto
Metadados relativos à criação e última modificação do recurso.
| Nome |
Tipo |
Descrição |
|
createdAt
|
string
(date-time)
|
O registro de data e hora da criação do recurso (UTC).
|
|
createdBy
|
string
|
A identidade que criou o recurso.
|
|
createdByType
|
createdByType
|
O tipo de identidade que criou o recurso.
|
|
lastModifiedAt
|
string
(date-time)
|
O carimbo de data/hora da última modificação do recurso (UTC)
|
|
lastModifiedBy
|
string
|
A identidade que modificou o recurso pela última vez.
|
|
lastModifiedByType
|
createdByType
|
O tipo de identidade que modificou o recurso pela última vez.
|
SystemScheduledMaintenanceProperties
Objeto
A configuração de manutenção programada gerenciada pelo sistema para um pool do HorizonDB. As propriedades de cronograma gerenciadas pelo usuário devem estar ausentes.
| Nome |
Tipo |
Descrição |
|
maintenanceManagementType
|
string:
System
|
Especifica se a manutenção programada é gerenciada pelo sistema ou pelo usuário.
|