title: How I can change auth level of azure functions and secure it?
body: <p>I am having an azure function and i want to change authlevel of my azure function from <code>authLevel = AuthorizationLevel.ANONYMOUS</code> to <code>FUNCTION</code> or <code>ADMIN</code>. How I can implement and I am using java spring boot function app?</p>
  <p>Code:</p>
  <pre><code>@FunctionName(&quot;funcName&quot;)
  public HttpResponseMessage execute(@HttpTrigger(name = &quot;request&quot;, methods = { HttpMethod.GET,HttpMethod.POST }, 
  authLevel = AuthorizationLevel.ANONYMOUS) 
  HttpRequestMessage&lt;Optional&lt;User&gt;&gt; request,
  ExecutionContext context){
  &lt;------body ------&gt;
  }
  </code></pre>