Can we deploy a zip file to Azure Functions using application-scope credentials?

Makoto Oda 296 Reputation points
2022-01-24T07:44:23.957+00:00

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?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Makoto Oda 296 Reputation points
    2022-01-24T07:52:56.817+00:00

    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.


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.