Open danbrad opened 3 years ago
Indeed, I have the same problem with Azure CLI. It always shows as if I'm changing SKU while I'm not
Same with other tiers:
Scope: /subscriptions/8a4fb900-f5b3-4645-a52b-7faf38f07f51/resourceGroups/sqltest-rg
~ Microsoft.Sql/servers/xyz-test-sqlserver/databases/my-sql [2020-11-01-preview]
- sku.family: "Gen5"
~ sku.name: "GP_S_Gen5" => "GP_S_Gen5_2"
5 months without triage?
The reason we have stopped triaging is because there is now a pipeline for detecting REST API spec violations for resolving the issue that is handled by a separate team.
w.r.t. this specific case, it looks like there are two things happening:
The sku.name
sku is being normalized. You should be able to safely replace "S2" with "Standard" and replace "GP_S_Gen5_2" with "GP_S_Gen5" in the template. I'd be curious why this is being normalized, but that is a question for the SQL team. I will send them this issue and see if they can add context.
The sku.family
property is a default value. You can add that property to your template to remove the noise, but it should be fixed in their API spec.
Using sku.family: 'Gen5'
+ name: 'GP_S_Gen5'
or name: 'GP_S_Gen5'
alone without family property did not work:
sku.family: 'Gen5'
+ name: 'GP_S_Gen5'
: What-If analysis displayed no changes and validation did not detect any problemsname: 'GP_S_Gen5'
:What-If analysis displayed only family property change and validation did not detect any problems | usage details. (Code: DeploymentFailed) - { "status":
| "Failed", "error": { "code":
| "ResourceDeploymentFailure", "message": "The resource
| operation completed with terminal provisioning state
| 'Failed'.", "details": [ { "code":
| "InvalidTierSkuCombination", "message": "The tier
| 'GeneralPurpose' does not support the sku 'SQLDB_GP_S_Gen5'."
| } ] } } (Code:Conflict)
Using
family: 'Gen5'
name: 'GP_S_Gen5_2'
works but generates what-if change
Looks like this needs some attention from the product team to be fixed.
@alex-frankel Can you forward findings to the correct team(s)?
Describe the noise
Resource type
Microsoft.Sql/servers/databases
apiVersion
2020-08-01-preview
Client (PowerShell, Azure CLI, or API)
Bicep
Relevant ARM Template code
Expected response
I expected no noise since the template has not been modified since the resources were deployed)
Current (noisy) response (either include a screenshot of the what-if output, or copy/paste the text)