Perform the following steps:
- Create a new HTTP trigger function (or open an existing HTTP function). Make sure that when creating the function, you select Function as the option in the Authorization level drop-down.
If you would like to go with an existing HTTP trigger function that we have created in one of our previous recipes, click on the Integrate tab, change the Authorization level to Function and click on the Save button to save the changes.
- In the Code Editor tab, grab the function URL by clicking on the Get Function URL link available in the right-hand corner of the code editor in the run.csx file.
- Navigate to Postman and paste the function URL:

- Observe that the URL has the following query strings:
- code: This is the default query string that is expected by the function runtime and validates the access rights of the function. The validation functionality is automatically enabled without the need for writing the code by the developer. All of this is taken care of just by setting the Authorization level to Function.
- name: This is a query string that is required by the HTTP trigger function.
- Let's remove the code query string from the URL in Postman and try to make a request. You will get a 401 Unauthorized error.