Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I read 3 articles to deploy a zip file to Azure Functions.
When I used user-scope credentials, the following command worked fine.
curl -X POST -u <user> https://{sitename}.scm.azurewebsites.net/api/zipdeploy -T <zipfile>
However, when I used application-scope credentials, the following error output was returned.
<html>
<head><!-- ... --></head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
<div class="content-container"><fieldset>
<h2>401 - Unauthorized: Access is denied due to invalid credentials.</h2>
<h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
</fieldset></div>
</div>
</body>
</html>
Do I need other settings elsewhere?
I solved the problem myself.
I set <funtionapp-name>\$<funtionapp-name>
to the <user>
parameter.
However, I found that I need to set only $<funtionapp-name>
to it.