Password Authentications - Update

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

Name Type Description
properties

PasswordAuthenticationPropertiesForPatchUpdate

The PostgreSQL username-and-password authentication properties to update.

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
Enable password authentication and reset the existing administrator password
Reset the sole PostgreSQL administrator role password

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"
  }
}

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": "********"
  }
}

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": "********"
  }
}

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

Indicates if authentication state is enabled or not.

Value Description
Enabled

Is enabled

Disabled

Is disabled

createdByType

The type of identity that created the resource.

Value Description
User
Application
ManagedIdentity
Key

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

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

Error response

Name Type Description
error

ErrorDetail

The error object.

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.

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

A sparse update request for PostgreSQL username-and-password authentication.

Name Type Description
properties

PasswordAuthenticationPropertiesForPatchUpdate

The PostgreSQL username-and-password authentication properties to update.

PasswordAuthenticationProperties

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

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

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

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.