Publishing Azure Function using Visual Studio not possible: Create button disabled
Asked Answered
I

3

7

I want to publish an Azure Function Project using the Visual Studio 2022 publish option, but the Create button is always disabled without any visible reason for it:

enter image description here

How can I further research on this, get any error message or so?

Integrand answered 21/1, 2023 at 16:49 Comment(3)
As a workaround, could you try to create function app manually on Azure portal? Then you could download "Publish Profile", and use that to publish this function app from Visual Studio.Armbrecht
thanks for the hint, that indeed worked like a charm. Still wondering what's wrong with the assistant.Integrand
Not Sure, multiple time I too faced similar issue and haven't found any permanent solution to it. #67813149. After Sign-out and Sign-in, System Restart, I got this fixed but this should not be the fix.Triquetrous
M
6

I got this to work by going to the Azure portal directly and first manually creating the three dependencies, ie:

  • resource group
  • storage account
  • application insights

I could then return to this form (ie close and reopen it) and select those items I'd created, instead of using this form to create new ones.

Medullary answered 2/10, 2023 at 8:25 Comment(1)
Thanks, I've only created resource group and storage account before and it work, no problem with application insightsTootsy
T
0

enter image description here

Multiple times, Even I too faced the similar issue and haven’t found any permanent solution to it where I’m having the latest Version of Azure Functions Core Tools (4.0.4915), VS 2022 17.4.4 Version, .NET 6 SDK & Runtime installed.

I found the Similar SO issue where many users faced this issue #67813149.

I also found one of the causes of above issue - i.e., If we do not have access to the Azure Subscription, then I observed this Create button is greyed or disabled in the Visual Studio Azure Functions Project > Publish > Create New Function App Window.

enter image description here

Also, Please check you have right RBAC Access to manage the resources in the Subscription such as Contributor role for the Azure Function App Management. Visit this MS Q&A #669276 for more information.

After Sign-out and Sign-in in Visual Studio, System Restart, I got this fixed and working good as of now, but this should not be the fix. If you are facing this issue frequently, mail to [email protected].

Triquetrous answered 23/1, 2023 at 12:32 Comment(0)
U
0

Uncheck the "Run from package file (recommended)" box from the "Publish" screen.

Unionize answered 13/6, 2024 at 16:19 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.