moirK
moirK

Reputation: 681

How to run Azure Function as administrator?

I have a .NET project which requires administrator permissions to run. I have converted it to Azure Function App consisting of multiple functions and running it in Azure. It seems like it is not running as administrator because I am getting the error that:

The application must run as Administrator.

I am actually trying to get data from an API using a Http Request but which requires Admin permissions as shown here:

"identities": [
{
   "type": "WebJobsAuthLevel",
   "level": "Admin"
}
]

Is there a way to provide admin rights to Azure Function app?

Thanks.

Upvotes: 0

Views: 1105

Answers (1)

John Leidegren
John Leidegren

Reputation: 61037

There is no such thing as an administrator role in Azure App Service. You do not have this kind of access on top of the VM that is running your code. I suspect that the code you are trying to run in your Azure Function isn't cloud compatible and will not run as is.

Upvotes: 2

Related Questions