Step 6: Update the Azure Security Policy for the Proxy Service in the Portal¶
The ARM template provided by Snowflake creates a security policy to validate a JWT (JSON Web Token) that authorizes Snowflake to call your Azure Function.
However, the security policy is missing one field, which you need to fill in to ensure the policy provides the necessary level of security.
Snowflake strongly recommends updating the security policy for the API Management service. After completing this step, only Snowflake is allowed to call your Azure Function through the API Management service.
Update the Security Policy in the Azure API Management Service¶
To update the policy:
If you haven’t already, log into the Azure Portal.
Select API Management Services.
Find the API Management service instance that you created. The name of this instance is recorded in the
API Management service namefield in your tracking worksheet.
Click on the API Management service instance name.
Select APIs » APIs.
Under All APIs, select ext-func-api.
Select POST echo.
Click on the validate-JWT button, which is in the Inbound processing box.
If you do not see this button, please scroll down.
Search for “SNOWFLAKE_SERVICE_PRINCIPAL_ID”, and replace it with the Snowflake app ID.
If you do not already have the Snowflake app ID, you can get it by performing the following steps:
In the worksheet, find the AZURE_MULTI_TENANT_APP_NAME that you filled in earlier.
In the Azure Portal search box, look for Enterprise Applications.
This takes you to the Enterprise applications | All applications screen.
In that screen, search for the AZURE_MULTI_TENANT_APP_NAME.
The enterprise applications search box does not have a label. Look for a wide field immediately above the list of enterprise applications. The box might say something similar to First 50 shown, to search all of your applications, enter a display name or the application ID.
If you do not find an exact match for the AZURE_MULTI_TENANT_APP_NAME, then search again using only the first several characters of this name (if the name contains an underscore, then do not include the underscore or any characters after the underscore).
Find the Application ID value for the AZURE_MULTI_TENANT_APP_NAME.
Test Your External Function¶
To make sure that your external function works correctly with the updated security policy, call your external function again.
For details, see Calling an External Function for Azure.
None. You’ve successfully created an external function for Azure.