Skip to content

Commit

Permalink
{SQL} Fix Azure#13600 Add message for compute model check
Browse files Browse the repository at this point in the history
  • Loading branch information
RakeshMohanMSFT authored Aug 4, 2022
1 parent 31329bd commit 6e3ab13
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/azure-cli/azure/cli/command_modules/sql/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,14 @@ def _find_performance_level_capability(sku, supported_service_level_objectives,
raise CLIError(
"Could not find sku in tier '{tier}' with family '{family}', capacity {capacity}."
" Supported families & capacities for '{tier}' are: {skus}. Please specify one of these"
" supported combinations of family and capacity.".format(
" supported combinations of family and capacity."
" And ensure that the sku supports '{compute_model}' compute model.".format(
tier=sku.tier,
family=sku.family,
capacity=sku.capacity,
skus=[(slo.sku.family, slo.sku.capacity)
for slo in supported_service_level_objectives]
for slo in supported_service_level_objectives],
compute_model=compute_model
))
elif sku.family:
# Error - cannot find based on family alone.
Expand Down

0 comments on commit 6e3ab13

Please sign in to comment.