Is it possible to restrict access to "Get publish profile" functionality?

Dan Vasilov 21 Reputation points
2021-10-29T11:58:04.153+00:00

Is it possible, in Azure, to only allow specific people to execute the operation "Get publish profile" for an app service? The restriction should be active regardless of the method a person would try to use to obtain a publish profile, such as clicking the "Get publish profile" button in the Azure portal, or using Visual Studio, or using the PowerShell GetPublishProfile cmdlet.

Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
878 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 29,651 Reputation points Microsoft Employee
    2021-10-29T17:30:42.79+00:00

    There isn't a built-in role like WebSite Contributor that you can set. But you can either allow or deny Microsoft.Web/sites/publishxml/Action to a custom role, which is the preferred method and the assign the role to the designated users.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.