Step 2: Use the Template to Create the Remote Service (Azure Function) and Proxy Service (API Management Service)¶
This topic provides detailed instructions for using the ARM template provided by Snowflake. The template simplifies the tasks for creating the Azure Function (to use as the remote service) and API Management service (to use as the proxy service) for your external function.
Import the Template¶
Before you can use the template, you have to import it into the Azure Portal:
If you haven’t already, log into the Azure Portal.
In the Azure search bar, search for Template.
Under Services, click on Deploy a custom template.
Select Build your own template in the editor.
Select Load file.
Navigate to the directory on the machine where you downloaded the template, then select that template.
This takes you to the Custom deployment screen.
Create the Azure Function and API Management Service¶
In the Custom deployment screen:
Select an existing (or create a new) Resource group.
If you create a new resource group solely for this demonstration, then you might want to record the name so that you can delete it later when you are done with it.
Select the appropriate Region.
Enter an API Management Service Name.
Record the API Management Service name in the
API Management service namefield in your tracking worksheet.
In the Function App Name field, enter a unique name.
Record the Function App Name in the
Azure Function app namefield in your tracking worksheet.
In the Publisher email field, enter your email address. Microsoft uses this email to notify you after the API Management service has been created.
In the Azuread Application Id field, enter the ID of the Azure AD application you created earlier. This is the value in the
Azure Function AD Application IDfield in your tracking worksheet.
Click on Review + create.
Click on Create.
Creating the Azure Function app and API Management service typically takes approximately half an hour.
Obtain the Required URLs for the API Inegration and External Function¶
To create the API integration and external function in Snowflake, you need the API Management service’s URL, which you can find by following the steps below after Azure has finished creating the API Management service.
At this point, the Azure Portal should show the message Your deployment is complete and should show the Deployment name.
Click on Outputs in the left-hand column.
Record the api Management URL in the
API Management URLfield in your tracking worksheet.
Record the azure Function Http Trigger URL in the
Azure Function HTTP Trigger URLfield in your tracking worksheet.