Correct role/permissions for publishing Function App?

Kevin Foley 0 Reputation points
2024-09-18T20:26:47.52+00:00

I'm trying to publish an Azure Function app. We already have an Azure subscription and have created the Function App. The team lead is the Owner of the Azure Subscription; my Microsoft account has the Contributor role for the Subscription.

When I try to configure Visual Studio for publishing the Function App with my Microsoft account, it says "We did not find an Azure subscription", and there doesn't seem to be any way to go further.

Microsoft Copilot is telling me that I need the Contributor role on the subscription. Answers on Stack Overflow also suggest that the Contributor role is needed. However, I already have the Contributor role on the Subscription (and this is inherited by the Function App).

What permissions/roles do I need beside the Contributor role in order to be able to publish to the Function App from my Microsoft account in Visual Studio?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,911 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Kevin Foley 0 Reputation points
    2024-09-18T20:37:22.25+00:00

    I had to add a filter to my account in Visual Studio to get the Subscription to show up. See the second answer here: https://stackoverflow.com/questions/24507589/visual-studio-not-finding-my-azure-subscriptions

    After adding the filter, I had to restart Visual Studio before the subscription showed up.

    0 comments No comments

  2. JananiRamesh-MSFT 26,631 Reputation points
    2024-09-19T04:30:00.6133333+00:00

    @Kevin Foley Thanks for reaching out. glad to see you were able to resolve your issue. Thanks for posting your solution so that others experiencing the same thing can easily reference this.

    Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer, they can only accept answers by others, I'll repost your solution in case you'd like to Accept the answer.

    Issue: Visual Studio not finding Azure subscription despite having the Contributor role.

    Solution: The solution to the issue of Visual Studio not finding the Azure subscription was to add a filter to the account in Visual Studio. This can be done by going to the "Account Settings" in Visual Studio and adding a filter for the Azure subscription. The steps to add a filter are: Go to file "Account Settings" in Visual Studio. Click on the "Add" button under the "Filters" section. Select "Azure Subscription" from the list of filter types. Click "OK" to save the filter. After adding the filter, Visual Studio needs to be restarted before the subscription will show up.

    https://stackoverflow.com/questions/24507589/visual-studio-not-finding-my-azure-subscriptions

     

    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.