Repository navigation
Conversation
Generate GET and PUT models for SQL DB, managed DB, and restorable dropped managed DB policies using 2026-08-01-preview. Corresponding CLI PR: Azure/azure-cli#34207. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
3 tasks done
The public SQL STR handlers supply the default policy name internally. Keep the command examples runnable through those existing handlers. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
please provide the link to the corresponding pull request in Azure/azure-cli or Azure/azure-cli-extensions:
Azure/azure-cli#34207
Description
Generate SQL short-term retention policy command models from the public
2026-08-01-previewREST specifications using aaz-dev-tools 4.7.1.lockImmutabilityandimmutabilityStatus; hide the shared-schema lock argument for dropped managed databases.The linked CLI implementation generates unregistered bases, keeping its existing public handlers for conditional irreversible-action confirmation, required MI retention, dropped-database validation/routing, and other compatibility behavior. The dropped-policy command subgroup is internal and does not introduce public CLI commands.
REST source: Azure/azure-rest-api-specs commit
2e2b290fd446b03bbddcdc31098ff97e7218f0cf. CLI implementation: commit03307dd24188df4fce24d1223c51430d19eb144fin Azure/azure-cli#34207.Validation
E:\CLI\aaz-env\Scripts\aaz-dev.exe command-model verify --aaz-path E:\CLI\aaz --target sql(exit 0).The exact CLI validation commands/results are recorded in Azure/azure-cli#34207. The full-repository AAZ verification was not completed locally; the focused SQL check passed and hosted verification remains authoritative.
SQL integer-wire compatibility
The linked CLI PR now contains a targeted custom serialization correction for
diffBackupIntervalInHours: the current Swagger numeric enum generates floating-point values, while the SQL service requires integer JSON tokens. The compatibility adapter preserves omission, rejects fractional input, and leaves these generated AAZ models unchanged.Validation after the correction: 50 offline tests passed and eight live interval updates passed across disposable Locked/Enabled SQL databases, including normal and no-wait paths. Actual outgoing JSON integer types were checked, original policy values restored, and existing resources verified unchanged. Exact commands and limitations are documented in Azure/azure-cli#34207.