Getting error while creating Azure Function all at a sudden

Zhu, Ning (CTR) 0 Reputation points
2024-10-04T15:45:40.46+00:00

I have been able to create Azure functions for a long time, however, today I am getting an error message.

The client 'xxxx' with object id 'xxxx' does not have authorization to perform action 'Microsoft.App/register/action' over scope '/subscriptions/xxxx' or the scope is invalid. If access was recently granted, please refresh your credentials. (Code: AuthorizationFailed) (Code: AuthorizationFailed)

I do not require an app registration for the Azure function no idea what is going on. Any help is highly appreciated!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
    2024-10-04T15:57:09.58+00:00

  2. LeelaRajeshSayana-MSFT 17,766 Reputation points Moderator
    2024-10-07T23:55:54.5366667+00:00

    Hi @Zhu, Ning (CTR) I'm glad that you were able to resolve your issue and thank you for letting us know what worked for you so that others experiencing the same thing can easily reference this! I'll repost your solution in case you'd like to accept the answer.

    Error Message:

    The client 'xxxx' with object id 'xxxx' does not have authorization to perform action 'Microsoft.App/register/action' over scope '/subscriptions/xxxx' or the scope is invalid. If access was recently granted, please refresh your credentials. (Code: AuthorizationFailed) (Code: AuthorizationFailed)

    Issue:

    Trying to create an Azure function inside a GCC cloud environment and stumbled into the above-mentioned error

    Solution:

    You need to 'register' the Microsoft.App resource with your subscription.

    • Select the subscription you're using.
    • Go to Resource Providers.
    • Search for Microsoft.App and click Register.

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    I hope this helps!

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.

    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.