Closed ubaidullahshuaib closed 6 months ago
Transferring this to the Static Web Apps extension repository.
This means that somehow the Microsoft.Resources
provider doesn't have the resourceGroups resource. You should be able to fix it by unregistering and re-registering the Microsoft.Resources
provider.
Using the Azure CLI, you can do this like so:
az provider unregister --namespace Microsoft.Resources
az provider register --namespace Microsoft.Resources
When using these commands, make sure you have the right subscription selected. You can use az account set --subscription "subscription name"
to change the selected subscription.
Similar to https://github.com/microsoft/vscode-azurefunctions/issues/3620
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
Description: I encountered an issue while attempting to create a static web app in Visual Studio Code using the steps outlined in the documentation. After entering the required information, I received the following error message:
[Provider "/subscriptions/<mySubscriptionID>/providers/Microsoft.Resources" does not have resource type "resourceGroups"]
Steps to Reproduce:
Attempted Solutions:
Additional Information:
Expected Outcome: A successful creation of the static web app without encountering the mentioned error.
Environment:
Reference: Original Microsoft Learn Q&A Page
Note: This might be related to a Visual Studio Code extension issue. Please advise on how to proceed or if further information is needed.