You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 359ef73
Browse filesBrowse the repository at this point in the historyBrowse files
The Azure SQL Database and Synapse purchase bodies sent hand-written
reservedResourceType literals ("SqlDatabase", "SqlDW") that are not
members of the armreservations ReservedResourceType enum; Azure would
reject calculatePrice with an invalid-value error once non-VM purchases
become reachable (known-issues #731). Replace them with the canonical
SDK constants ReservedResourceTypeSQLDatabases ("SqlDatabases") and
ReservedResourceTypeSQLDataWarehouse ("SqlDataWarehouse").
Also convert the already-correct literals in cache, cosmosdb, compute,
and managedredis to their SDK constants so all purchase bodies are
compile-time-checked enum members, and document that search's
"SearchService" has no SDK enum counterpart (v1.1.0 and v2.0.0).
Regression tests capture the calculatePrice request body and assert the
sent value equals the SDK constant and is a member of
PossibleReservedResourceTypeValues(); both fail against the old
literals.
Closes#1189
0 commit comments