Skip to content

az postgres flexible-server replica promote failing when doing planned promote #33776

Description

@narayana471

Describe the bug

In version 2.87.0 * , this command worked without issue.

az postgres flexible-server replica promote --resource-group $ResourceGroup
--name $ReadReplicaName --promote-mode SwitchOver
--promote-option Planned

But when doing promote in 2.88.0 * version, it is failing with bellow error. I did check there is no parameter to provide source server. Also I ran show for readable replica which has source server info.

(MissingRequiredParameter) Parameter 'properties.sourceServerResourceId' must be specified. This parameter cannot be NULL or empty.
Code: MissingRequiredParameter
Message: Parameter 'properties.sourceServerResourceId' must be specified. This parameter cannot be NULL or empty.

Related command

Used the same command in both version

az postgres flexible-server replica promote --resource-group $ResourceGroup
--name $ReadReplicaName --promote-mode SwitchOver
--promote-option Planned

Errors

(MissingRequiredParameter) Parameter 'properties.sourceServerResourceId' must be specified. This parameter cannot be NULL or empty.
Code: MissingRequiredParameter
Message: Parameter 'properties.sourceServerResourceId' must be specified. This parameter cannot be NULL or empty.

Issue script & Debug output

File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/postgresqlflexibleservers/operations/_operations.py", line 3640, in begin_update
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/postgresqlflexibleservers/operations/_operations.py", line 3503, in _update_initial
azure.core.exceptions.HttpResponseError: (MissingRequiredParameter) Parameter 'properties.sourceServerResourceId' must be specified. This parameter cannot be NULL or empty.
Code: MissingRequiredParameter
Message: Parameter 'properties.sourceServerResourceId' must be specified. This parameter cannot be NULL or empty.

cli.azure.cli.core.azclierror: (MissingRequiredParameter) Parameter 'properties.sourceServerResourceId' must be specified. This parameter cannot be NULL or empty.
Code: MissingRequiredParameter
Message: Parameter 'properties.sourceServerResourceId' must be specified. This parameter cannot be NULL or empty.
az_command_data_logger: (MissingRequiredParameter) Parameter 'properties.sourceServerResourceId' must be specified. This parameter cannot be NULL or empty.
Code: MissingRequiredParameter
Message: Parameter 'properties.sourceServerResourceId' must be specified. This parameter cannot be NULL or empty.

Expected behavior

Should make readable replica as primary

Environment Summary

azure-cli 2.88.0

core 2.88.0
telemetry 1.1.0

Extensions:
arcdata 1.5.24

Dependencies:
msal 1.36.0
azure-mgmt-resource 24.0.0

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users*.azure'
Extensions directory 'C:\Users*
.azure\cliextensions'

Python (Windows) 3.14.5 (tags/v3.14.5:5607950, May 10 2026, 10:43:50) [MSC v.1944 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botPostgreSQLService AttentionThis issue is responsible by Azure service team.act-codegen-extensibility-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions