When deploying bicep file in vscode after trying to create a resource group I get providers/Microsoft.Resources" does not have resource type "resourceGroups".

Chase Goebel 0 Reputation points
2023-11-17T15:34:01.7333333+00:00

When deploying bicep file in vscode after trying to create a resource group I get providers/Microsoft.Resources" does not have resource type "resourceGroups". I cant deploy Bicep file because of this error.

Azure Resource Mover
Azure Resource Mover
An Azure service used for moving multiple resources between Azure regions.
236 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. AnuragSingh-MSFT 21,386 Reputation points
    2023-11-24T06:01:23.7466667+00:00

    Chase Goebel, thank you for providing additional details about this issue.

    I tested the bicep code shared above and it worked fine for me. This issue seems to be related to absence of resource group in subscription or you do not have access to a resource group to which you can deploy bicep file. Ensure that a resource group is already created and available in Azure Portal. RG creation during the bicep deployment process does not work. Even when you do bicep deploy using CLI, a resource group is created first Deployment scope. For more details, see https://learn.microsoft.com/en-us/answers/questions/1431322/how-to-resolve-azure-static-web-(extension)-error

    In case the steps above do not help, I would suggest reaching out to Azure Support as it will require 1:1 troubleshooting with access to logs and machine to understand the root cause.

    Hope this helps.

    If the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.