[POSTGRESQL] az postgres flexible-server create/restore/geo-restore/replica create: Add new arguments --federated-client-id and --backup-federated-client-id to support multi-tenant application registration#33645
Open
nasc17 wants to merge 3 commits into
Conversation
️✔️AzureCLI-FullTest
|
|
Hi @nasc17, |
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| postgres flexible-server create | cmd postgres flexible-server create added parameter backup_federated_client_id |
||
| postgres flexible-server create | cmd postgres flexible-server create added parameter federated_client_id |
||
| postgres flexible-server geo-restore | cmd postgres flexible-server geo-restore added parameter backup_federated_client_id |
||
| postgres flexible-server geo-restore | cmd postgres flexible-server geo-restore added parameter federated_client_id |
||
| postgres flexible-server replica create | cmd postgres flexible-server replica create added parameter backup_federated_client_id |
||
| postgres flexible-server replica create | cmd postgres flexible-server replica create added parameter federated_client_id |
||
| postgres flexible-server restore | cmd postgres flexible-server restore added parameter backup_federated_client_id |
||
| postgres flexible-server restore | cmd postgres flexible-server restore added parameter federated_client_id |
||
| postgres flexible-server update | cmd postgres flexible-server update added parameter backup_federated_client_id |
||
| postgres flexible-server update | cmd postgres flexible-server update added parameter federated_client_id |
Collaborator
|
POSTGRESQL |
az postgres flexible-server create/restore/geo-restore/replica create: Add new arguments --federated-client-id and --geo-backup-federated-client-id to support multi-tenant application registrationaz postgres flexible-server create/restore/geo-restore/replica create: Add new arguments --federated-client-id and --backup-federated-client-id to support multi-tenant application registration
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the PostgreSQL flexible server BYOK (Azure Key Vault) flow to support multi-tenant application registration by introducing new CLI arguments for federated identity client IDs, and wiring them through validation and request payload construction.
Changes:
- Added
--federated-client-idand--backup-federated-client-idCLI parameters and surfaced them in help. - Extended BYOK validation to account for federated client IDs.
- Passed federated client IDs into the
DataEncryptionpayload when building server parameters.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 15 comments.
Show a summary per file
| File | Description |
|---|---|
src/azure-cli/azure/cli/command_modules/postgresql/utils/validators.py |
Adds federated client ID validation to BYOK validator flow. |
src/azure-cli/azure/cli/command_modules/postgresql/utils/_flexible_server_util.py |
Extends BYOK identity/encryption payload builder to include federated client IDs. |
src/azure-cli/azure/cli/command_modules/postgresql/commands/replica_commands.py |
Threads new federated client ID args through replica create validation and payload building. |
src/azure-cli/azure/cli/command_modules/postgresql/commands/custom_commands.py |
Threads new federated client ID args through create/restore/update/geo-restore command paths. |
src/azure-cli/azure/cli/command_modules/postgresql/_params.py |
Adds the new arguments to command argument contexts. |
src/azure-cli/azure/cli/command_modules/postgresql/_help.py |
Documents an example of using --federated-client-id for cross-tenant Key Vault. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Member
Author
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related command
az postgres flexible-server createaz postgres flexible-server restoreaz postgres flexible-server geo-restoreaz postgres flexible-server replica createDescription
Allow support for servers with Azure Key Vault from a different Microsoft Entra tenant using multi-tenant application registration.
Testing Guide
Manual
History Notes
[POSTGRESQL]
az postgres flexible-server create/restore/geo-restore/replica create: Add new arguments--federated-client-idand--backup-federated-client-idto support multi-tenant application registration