The "Create" button is grayed out when publishing an Azure Function project.

Talia 20 Reputation points
2025-11-27T06:12:07.8+00:00

Hello,

I created an Azure Function project in Visual Studio2019. When I tried to publish this project to the Azure portal, I encountered an issue: the "Create" button on the publish interface is grayed out. However, using the same account, I can successfully publish an ASP.NET Web project to Azure. How can I resolve this issue? Please refer to the screenshot below:

User's image

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


Answer accepted by question author

Pravallika KV 18,765 Reputation points Microsoft External Staff Moderator
2025-11-27T06:46:15.1466667+00:00

Hi @Talia,

Thanks for reaching out to Microsoft Q&A.

You can't create function App because your account lacks the required subscription-level permissions to register resource providers or create Function App resources.

If you have Contributor/Owner permission at subscription level, you can create the function app directly. If you have the owner/contributor access on the subscription and still facing issue, try logging out and re-login to your subscription and check.

  • I have tested the same from my end and faced the same issue. You will not be able to create function App with only Contributor role at resource group even through portal:
The client 'XXX.om' with object id 'cdXXee0be' does not have authorization to perform action 'Microsoft.App/register/action' over scope '/subscriptions/5XXX88f855' or the scope is invalid. If access was recently granted, please refresh your credentials. (Code: AuthorizationFailed) (Code: AuthorizationFailed)
  • Even if you have access at the resource group level, actions like Microsoft.App/register/action can only be performed at the subscription scope.
  • Assigning Contributor or Owner at the subscription level allows creating and registering resources. After the role is added, refresh your credentials and retry publishing.

Ask an existing Owner or User Access Administrator of the subscription to grant access Contributor or Owner role to your user account.

image

Could you please provide me with a detailed step-by-step tutorial on how to add Owner/Contributor access permissions to a subscription?

  1. To assign Owner/Contributor roles at the subscription level, go to Azure Portal => Subscriptions => Access control (IAM) and click Add role assignment.
  2. Choose the appropriate role (Owner or Contributor) and assign it to a user, group, or service principal.
  3. If you don't have permission to assign at subscription level, ask an existing Owner or User Access Administrator to grant access.

Hope it helps!


Please do not forget to click "Accept the answer” and Yes, this can be beneficial to other community members.

User's image

If you have any other questions, let me know in the "comments" and I would be happy to help you.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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