Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and omitted properties preserve their current values. This API version supports enabling the method, disabling the method, and resetting its password. For a cluster that already has an administrator but currently has password authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable password authentication and reset the password. Disabling cannot include credentials and does not remove or modify existing database users or roles. Administrator rename is not supported in this API version.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications/passwordMethod?api-version=2026-10-01-preview
URI Parameters
| Name |
In |
Required |
Type |
Description |
|
clusterName
|
path |
True
|
string
minLength: 1 maxLength: 63 pattern: ^[a-z0-9](?:[-a-z0-9]*[a-z0-9])?$
|
The name of the HorizonDB cluster.
|
|
resourceGroupName
|
path |
True
|
string
minLength: 1 maxLength: 90
|
The name of the resource group. The name is case insensitive.
|
|
subscriptionId
|
path |
True
|
string
(uuid)
|
The ID of the target subscription. The value must be an UUID.
|
|
api-version
|
query |
True
|
string
minLength: 1
|
The API version to use for this operation.
|
Request Body
Responses
| Name |
Type |
Description |
|
200 OK
|
PasswordAuthentication
|
Azure operation completed successfully.
|
|
202 Accepted
|
|
Resource update request accepted.
Headers
- Azure-AsyncOperation: string
- Location: string
- Retry-After: integer
|
|
Other Status Codes
|
ErrorResponse
|
An unexpected error response.
|
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name |
Description |
|
user_impersonation
|
impersonate your user account
|
Examples
Disable password authentication
Sample request
PATCH https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod?api-version=2026-10-01-preview
{
"properties": {
"state": "Disabled"
}
}
import com.azure.resourcemanager.horizondb.models.AuthenticationState;
import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationForPatchUpdate;
import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationPropertiesForPatchUpdate;
/**
* Samples for PasswordAuthentications Update.
*/
public final class Main {
/*
* x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Disable.json
*/
/**
* Sample code: Disable password authentication.
*
* @param manager Entry point to HorizonDbManager.
*/
public static void disablePasswordAuthentication(com.azure.resourcemanager.horizondb.HorizonDbManager manager) {
manager.passwordAuthentications().update("example-resource-group", "example-cluster",
new PasswordAuthenticationForPatchUpdate().withProperties(
new PasswordAuthenticationPropertiesForPatchUpdate().withState(AuthenticationState.DISABLED)),
com.azure.core.util.Context.NONE);
}
}
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 password_authentications_disable.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.password_authentications.begin_update(
resource_group_name="example-resource-group",
cluster_name="example-cluster",
properties={"properties": {"state": "Disabled"}},
).result()
print(response)
# x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Disable.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/PasswordAuthentications_Disable.json
func ExamplePasswordAuthenticationsClient_BeginUpdate_disablePasswordAuthentication() {
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.NewPasswordAuthenticationsClient().BeginUpdate(ctx, "example-resource-group", "example-cluster", armhorizondb.PasswordAuthenticationForPatchUpdate{
Properties: &armhorizondb.PasswordAuthenticationPropertiesForPatchUpdate{
State: to.Ptr(armhorizondb.AuthenticationStateDisabled),
},
}, 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.PasswordAuthenticationsClientUpdateResponse{
// PasswordAuthentication: armhorizondb.PasswordAuthentication{
// ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod"),
// Name: to.Ptr("passwordMethod"),
// Type: to.Ptr("Microsoft.HorizonDb/clusters/authentications"),
// Properties: &armhorizondb.PasswordAuthenticationProperties{
// State: to.Ptr(armhorizondb.AuthenticationStateDisabled),
// AdministratorLogin: to.Ptr("adminlogin1"),
// 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 the service-created PostgreSQL username-and-password authentication method. The request is sparse and omitted properties preserve their current values. This API version supports enabling the method, disabling the method, and resetting its password. For a cluster that already has an administrator but currently has password authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable password authentication and reset the password. Disabling cannot include credentials and does not remove or modify existing database users or roles. Administrator rename is not supported in this API version.
*
* @summary updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and omitted properties preserve their current values. This API version supports enabling the method, disabling the method, and resetting its password. For a cluster that already has an administrator but currently has password authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable password authentication and reset the password. Disabling cannot include credentials and does not remove or modify existing database users or roles. Administrator rename is not supported in this API version.
* x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Disable.json
*/
async function disablePasswordAuthentication() {
const credential = new DefaultAzureCredential();
const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
const client = new HorizonDbClient(credential, subscriptionId);
const result = await client.passwordAuthentications.update(
"example-resource-group",
"example-cluster",
{ properties: { state: "Disabled" } },
);
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
Sample response
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod",
"name": "passwordMethod",
"type": "Microsoft.HorizonDb/clusters/authentications",
"properties": {
"state": "Disabled",
"administratorLogin": "adminlogin1",
"provisioningState": "Succeeded"
}
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationStatuses/11111111-1111-1111-1111-111111111111?api-version=2026-10-01-preview
Location: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationResults/11111111-1111-1111-1111-111111111111?api-version=2026-10-01-preview
Retry-After: 30
Enable password authentication and reset the existing administrator password
Sample request
PATCH https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod?api-version=2026-10-01-preview
{
"properties": {
"state": "Enabled",
"administratorLoginPassword": "********"
}
}
import com.azure.resourcemanager.horizondb.models.AuthenticationState;
import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationForPatchUpdate;
import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationPropertiesForPatchUpdate;
/**
* Samples for PasswordAuthentications Update.
*/
public final class Main {
/*
* x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Enable.json
*/
/**
* Sample code: Enable password authentication and reset the existing administrator password.
*
* @param manager Entry point to HorizonDbManager.
*/
public static void enablePasswordAuthenticationAndResetTheExistingAdministratorPassword(
com.azure.resourcemanager.horizondb.HorizonDbManager manager) {
manager.passwordAuthentications().update("example-resource-group", "example-cluster",
new PasswordAuthenticationForPatchUpdate().withProperties(
new PasswordAuthenticationPropertiesForPatchUpdate().withState(AuthenticationState.ENABLED)
.withAdministratorLoginPassword("fakeTokenPlaceholder")),
com.azure.core.util.Context.NONE);
}
}
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 password_authentications_enable.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.password_authentications.begin_update(
resource_group_name="example-resource-group",
cluster_name="example-cluster",
properties={"properties": {"administratorLoginPassword": "********", "state": "Enabled"}},
).result()
print(response)
# x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Enable.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/PasswordAuthentications_Enable.json
func ExamplePasswordAuthenticationsClient_BeginUpdate_enablePasswordAuthenticationAndResetTheExistingAdministratorPassword() {
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.NewPasswordAuthenticationsClient().BeginUpdate(ctx, "example-resource-group", "example-cluster", armhorizondb.PasswordAuthenticationForPatchUpdate{
Properties: &armhorizondb.PasswordAuthenticationPropertiesForPatchUpdate{
State: to.Ptr(armhorizondb.AuthenticationStateEnabled),
AdministratorLoginPassword: to.Ptr("********"),
},
}, 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.PasswordAuthenticationsClientUpdateResponse{
// PasswordAuthentication: armhorizondb.PasswordAuthentication{
// ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod"),
// Name: to.Ptr("passwordMethod"),
// Type: to.Ptr("Microsoft.HorizonDb/clusters/authentications"),
// Properties: &armhorizondb.PasswordAuthenticationProperties{
// State: to.Ptr(armhorizondb.AuthenticationStateEnabled),
// AdministratorLogin: to.Ptr("adminlogin1"),
// 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 the service-created PostgreSQL username-and-password authentication method. The request is sparse and omitted properties preserve their current values. This API version supports enabling the method, disabling the method, and resetting its password. For a cluster that already has an administrator but currently has password authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable password authentication and reset the password. Disabling cannot include credentials and does not remove or modify existing database users or roles. Administrator rename is not supported in this API version.
*
* @summary updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and omitted properties preserve their current values. This API version supports enabling the method, disabling the method, and resetting its password. For a cluster that already has an administrator but currently has password authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable password authentication and reset the password. Disabling cannot include credentials and does not remove or modify existing database users or roles. Administrator rename is not supported in this API version.
* x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Enable.json
*/
async function enablePasswordAuthenticationAndResetTheExistingAdministratorPassword() {
const credential = new DefaultAzureCredential();
const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
const client = new HorizonDbClient(credential, subscriptionId);
const result = await client.passwordAuthentications.update(
"example-resource-group",
"example-cluster",
{ properties: { state: "Enabled", administratorLoginPassword: "********" } },
);
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
Sample response
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod",
"name": "passwordMethod",
"type": "Microsoft.HorizonDb/clusters/authentications",
"properties": {
"state": "Enabled",
"administratorLogin": "adminlogin1",
"provisioningState": "Succeeded"
}
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationStatuses/11111111-1111-1111-1111-111111111111?api-version=2026-10-01-preview
Location: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationResults/11111111-1111-1111-1111-111111111111?api-version=2026-10-01-preview
Retry-After: 30
Reset the sole PostgreSQL administrator role password
Sample request
PATCH https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod?api-version=2026-10-01-preview
{
"properties": {
"administratorLoginPassword": "********"
}
}
import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationForPatchUpdate;
import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationPropertiesForPatchUpdate;
/**
* Samples for PasswordAuthentications Update.
*/
public final class Main {
/*
* x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_ResetPassword.json
*/
/**
* Sample code: Reset the sole PostgreSQL administrator role password.
*
* @param manager Entry point to HorizonDbManager.
*/
public static void
resetTheSolePostgreSQLAdministratorRolePassword(com.azure.resourcemanager.horizondb.HorizonDbManager manager) {
manager.passwordAuthentications().update("example-resource-group", "example-cluster",
new PasswordAuthenticationForPatchUpdate()
.withProperties(new PasswordAuthenticationPropertiesForPatchUpdate()
.withAdministratorLoginPassword("fakeTokenPlaceholder")),
com.azure.core.util.Context.NONE);
}
}
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 password_authentications_reset_password.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.password_authentications.begin_update(
resource_group_name="example-resource-group",
cluster_name="example-cluster",
properties={"properties": {"administratorLoginPassword": "********"}},
).result()
print(response)
# x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_ResetPassword.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/PasswordAuthentications_ResetPassword.json
func ExamplePasswordAuthenticationsClient_BeginUpdate_resetTheSolePostgreSqlAdministratorRolePassword() {
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.NewPasswordAuthenticationsClient().BeginUpdate(ctx, "example-resource-group", "example-cluster", armhorizondb.PasswordAuthenticationForPatchUpdate{
Properties: &armhorizondb.PasswordAuthenticationPropertiesForPatchUpdate{
AdministratorLoginPassword: to.Ptr("********"),
},
}, 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.PasswordAuthenticationsClientUpdateResponse{
// PasswordAuthentication: armhorizondb.PasswordAuthentication{
// ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod"),
// Name: to.Ptr("passwordMethod"),
// Type: to.Ptr("Microsoft.HorizonDb/clusters/authentications"),
// Properties: &armhorizondb.PasswordAuthenticationProperties{
// State: to.Ptr(armhorizondb.AuthenticationStateEnabled),
// AdministratorLogin: to.Ptr("adminlogin1"),
// 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 the service-created PostgreSQL username-and-password authentication method. The request is sparse and omitted properties preserve their current values. This API version supports enabling the method, disabling the method, and resetting its password. For a cluster that already has an administrator but currently has password authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable password authentication and reset the password. Disabling cannot include credentials and does not remove or modify existing database users or roles. Administrator rename is not supported in this API version.
*
* @summary updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and omitted properties preserve their current values. This API version supports enabling the method, disabling the method, and resetting its password. For a cluster that already has an administrator but currently has password authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable password authentication and reset the password. Disabling cannot include credentials and does not remove or modify existing database users or roles. Administrator rename is not supported in this API version.
* x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_ResetPassword.json
*/
async function resetTheSolePostgreSQLAdministratorRolePassword() {
const credential = new DefaultAzureCredential();
const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
const client = new HorizonDbClient(credential, subscriptionId);
const result = await client.passwordAuthentications.update(
"example-resource-group",
"example-cluster",
{ properties: { administratorLoginPassword: "********" } },
);
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
Sample response
{
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/authentications/passwordMethod",
"name": "passwordMethod",
"type": "Microsoft.HorizonDb/clusters/authentications",
"properties": {
"state": "Enabled",
"administratorLogin": "adminlogin1",
"provisioningState": "Succeeded"
}
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationStatuses/11111111-1111-1111-1111-111111111111?api-version=2026-10-01-preview
Location: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/operationResults/11111111-1111-1111-1111-111111111111?api-version=2026-10-01-preview
Retry-After: 30
Definitions
| Name |
Description |
|
AuthenticationState
|
Indicates if authentication state is enabled or not.
|
|
createdByType
|
The type of identity that created the resource.
|
|
ErrorAdditionalInfo
|
The resource management error additional info.
|
|
ErrorDetail
|
The error detail.
|
|
ErrorResponse
|
Error response
|
|
PasswordAuthentication
|
The service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster. This resource configures the authentication mechanism, including its enabled state and administrator login credentials; it is not a password-only resource.
|
|
PasswordAuthenticationForPatchUpdate
|
A sparse update request for PostgreSQL username-and-password authentication.
|
|
PasswordAuthenticationProperties
|
Properties of the service-created PostgreSQL username-and-password authentication method.
|
|
PasswordAuthenticationPropertiesForPatchUpdate
|
Properties for updating PostgreSQL username-and-password authentication. Omitted properties preserve their current values. This API version supports enabling or disabling the authentication method, and resetting its password. Supported changes can be combined.
|
|
ProvisioningState
|
The provisioning state.
|
|
systemData
|
Metadata pertaining to creation and last modification of the resource.
|
AuthenticationState
Enumeration
Indicates if authentication state is enabled or not.
| Value |
Description |
|
Enabled
|
Is enabled
|
|
Disabled
|
Is disabled
|
createdByType
Enumeration
The type of identity that created the resource.
| Value |
Description |
|
User
|
|
|
Application
|
|
|
ManagedIdentity
|
|
|
Key
|
|
ErrorAdditionalInfo
Object
The resource management error additional info.
| Name |
Type |
Description |
|
info
|
object
|
The additional info.
|
|
type
|
string
|
The additional info type.
|
ErrorDetail
Object
The error detail.
| Name |
Type |
Description |
|
additionalInfo
|
ErrorAdditionalInfo[]
|
The error additional info.
|
|
code
|
string
|
The error code.
|
|
details
|
ErrorDetail[]
|
The error details.
|
|
message
|
string
|
The error message.
|
|
target
|
string
|
The error target.
|
ErrorResponse
Object
Error response
| Name |
Type |
Description |
|
error
|
ErrorDetail
|
The error object.
|
PasswordAuthentication
Object
The service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster. This resource configures the authentication mechanism, including its enabled state and administrator login credentials; it is not a password-only resource.
| Name |
Type |
Description |
|
id
|
string
(arm-id)
|
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
|
|
name
|
string
|
The name of the resource
|
|
properties
|
PasswordAuthenticationProperties
|
The resource-specific properties for this resource.
|
|
systemData
|
systemData
|
Azure Resource Manager metadata containing createdBy and modifiedBy information.
|
|
type
|
string
|
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
PasswordAuthenticationForPatchUpdate
Object
A sparse update request for PostgreSQL username-and-password authentication.
PasswordAuthenticationProperties
Object
Properties of the service-created PostgreSQL username-and-password authentication method.
| Name |
Type |
Description |
|
administratorLogin
|
string
minLength: 1 maxLength: 63
|
The PostgreSQL administrator login name. This value is returned in responses after it is set. After it is set, renaming is not supported. Setting the login requires password authentication state to be Enabled in the same request.
|
|
administratorLoginPassword
|
string
(password)
minLength: 8 maxLength: 128
|
The PostgreSQL administrator password. Setting the password requires password authentication state to be Enabled in the same request.
|
|
provisioningState
|
ProvisioningState
|
The provisioning state of the PostgreSQL username-and-password authentication method.
|
|
state
|
AuthenticationState
|
The state of PostgreSQL username-and-password authentication.
|
PasswordAuthenticationPropertiesForPatchUpdate
Object
Properties for updating PostgreSQL username-and-password authentication. Omitted properties preserve their current values. This API version supports enabling or disabling the authentication method, and resetting its password. Supported changes can be combined.
| Name |
Type |
Description |
|
administratorLoginPassword
|
string
(password)
minLength: 8 maxLength: 128
|
The PostgreSQL administrator password. Supplying this property resets the configured administrator's password. When password authentication is currently disabled for a cluster that already has an administrator, this property can be combined with state Enabled to re-enable password authentication and reset the password.
|
|
state
|
AuthenticationState
|
The target password-authentication state. Enabled can be combined with administratorLoginPassword to re-enable password authentication and reset the password for a cluster that already has an administrator. Disabling password authentication does not remove or modify existing database users or roles. Disabled cannot be combined with administratorLoginPassword.
|
ProvisioningState
Enumeration
The provisioning state.
| Value |
Description |
|
Succeeded
|
Resource has been created.
|
|
Failed
|
Resource creation failed.
|
|
Canceled
|
Resource creation was canceled.
|
|
InProgress
|
The HorizonDB resource operation is actively running.
|
|
Provisioning
|
The HorizonDB resource is still provisioning.
|
|
Updating
|
The resource is being updated.
|
systemData
Object
Metadata pertaining to creation and last modification of the resource.
| Name |
Type |
Description |
|
createdAt
|
string
(date-time)
|
The timestamp of resource creation (UTC).
|
|
createdBy
|
string
|
The identity that created the resource.
|
|
createdByType
|
createdByType
|
The type of identity that created the resource.
|
|
lastModifiedAt
|
string
(date-time)
|
The timestamp of resource last modification (UTC)
|
|
lastModifiedBy
|
string
|
The identity that last modified the resource.
|
|
lastModifiedByType
|
createdByType
|
The type of identity that last modified the resource.
|