-
Notifications
You must be signed in to change notification settings - Fork 5
Configure Function App
Download the PowerShell Script function-app.ps1 file from the latest release.
Select App files under the Functions menu. Click on the selected file to change it to the profile.ps1 script.

Comment out the highlighted section, and save the file.

Add 'PnP.PowerShell' = '2.12' as the required library for the script, and save the file.

Note - v2.12 was the latest version at the time of creation of this page.
From the Overview menu, click on Create function under the Functions tab.

Select the HTTP trigger template, and click on Next.

Set the name and click on Create.

Copy the contents of the script from the releases page. Review the connection to ensure it is configured for your environment. The azureEnv variable has an associated connection that is commented out. If you need to set the environment, make sure to update both lines of code.

Click on the Get function URL menu item and note the api url.

Click on Environment variables from the Settings menu. Click on Add to create the required environment variables for the script:
- CLIENT_ID - The application (client) id we created earlier.
- TENANT_ID - The tenant id.
- WEBSITE_LOAD_CERTIFICATES - The certificate thumbprint.
Once the variables are created, click on Apply and confirm the changes.

Select CORS under the API menu. Select the checkbox and enter your tenant url (Ex: https://tenant.sharepoint.com). Click on Save to apply the changes.

- Select
Networkingfrom the left navigation - Click on the
Enabled with no access restrictionslink

- Select the option to
Enabled from select virtual networks and IP addresses - Click on
+Addto add a new inbound rule - Set the following properties:
| Name | Value |
|---|---|
| Name | Allow Inbound Power Automate |
| Priority | 100 |
| Type | Service Tag |
| Service Tag | LogicApps |
- Click on
Add ruleto save the rule - Click on
Saveand then confirm it by checking the box and clicking onConfirmto apply them

- Home
- App Overview
- Setup
- SharePoint Framework App
- Function App
- Import Flow
- Map Crawled Property