Open dotnet-7 opened 6 months ago
@weikanglim can you triage this?
@dotnet-7 - Currently the error in down seems to be caused by an error which happened during provisioning.
does not support the API version '2024-03-15-preview'. (Code: UnsupportedApiVersion)
AZD does not have control of the resources and its versions. It should all be part of your infra/ definitions.Getting the apicenter provisioning to be successful. Should fix azd down
.
cc @hemarina @weikanglim please chime-in you find something else.
@dotnet-7 Based on the error message, it's likely that the error is occurring upstream on the ARM service. azd
is making a DELETE call on the resource group:
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}?api-version=2021-04-01
The resources, which includes Microsoft.ApiCenter
in this case, would be expected to be deleted. However, ARM failed to delete the resource based on the API version mismatch in this case.
Does it also reproduce if you delete the resource group containing the Microsoft.ApiCenter
in the Azure Portal? Or via az group delete -n <resource group>
? I'm not sure what causes this -- it's likely that there's a mismatch of API versions somewhere in the ARM services.
@weikanglim - I tried to delete apicenter
in the Azure Portal directly and it gave the same error as below:
Could you please contact service team to help us with it? We are not sure who can fix this.
Describe the issue: Run
azd down
, get error as follow:We created an
apicenter
resource using the version2024-03-01
/2023-07-01-preview
, while the version in the error log is2024-03-15-preview
. Also, we can't use the2024-03-15-preview
version, for its not available in bicep yet.Repro Steps:
azd init -t dotnet-7/APICenter-Analyzer-justinyoo -b feature/azd-template
.azd auth login
andaz login
.azd provision
.azd down --force --purge
.Environment:
APICenter-Analyzer-justinyoo
.Expected behavior: Run
azd down
can pass and all the resources are deleted.@rajeshkamal5050 for notification.