Step 2: Create the Proxy Service (Azure API Management Service) in the Portal¶
Snowflake does not send data (HTTP POST requests) directly to a remote service. Instead, Snowflake sends the data to a proxy service that relays the data from Snowflake to the remote service (i.e. Azure Function) and back again.
This topic provides instructions for creating and configuring an Azure API Management service for use as the proxy service for your external function.
Create the API Management Service¶
The first step is to create the API Management service in the Azure Portal:
If you haven’t already, log into the Portal.
To create the API Management service, follow the instructions provided in the Microsoft documentation: Create an API Management service.
As you perform the tasks described in the instructions, remember to record the API Management service name (which might be titled Resource name) in the
API Management service namefield in your tracking worksheet.
Deploying the API Management service can take 30-40 minutes or more. When deployment completes, you should see a message similar to Your deployment is complete.
After the deployment completes, click the Go to resource button.
Import the API Containing the Azure Function¶
After you create the API Management service, the next step is to import and publish the Azure Function app that contains the APIs (functions) to call through that API Management service:
To import and publish an Azure Function, follow the instructions provided in the Microsoft documentation: Import a function app.
This document includes instructions for other tasks, as well as importing APIs. For this demonstration, you typically need only the instructions for importing an Azure Function app as a new API.
As you perform the tasks described in the instructions, remember the following:
One of the steps requires that you specify an option for Product. For this demonstration, choose Starter rather than Unlimited. For a production system, you might choose differently.
Record the API URL suffix in the
API Management API URL suffixfield in your tracking worksheet.
After completing the tasks to import an Azure Function app, you should be back on the API Management service page.
Find and click on the Settings tab, which is next to the Design tab on the panel of the screen below your API’s revision number (e.g. REVISION 1).
If the Subscription Required checkbox has a checkmark, then uncheck it unless you want to require a subscription.
If you do not see the Subscription section, scroll down.
Click the Save button.
Snowflake strongly recommends creating a security policy on the Azure API Management service.
You can create the security policy now or you can finish creating the external function first and test the external function before creating the security policy. To simplify debugging, this topic finishes creating and testing the external function before creating the security policy.