You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/spring-apps/tutorial-managed-identities-functions.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,6 @@ Both Azure Functions and App Services have built in support for Azure Active Dir
27
27
-[Apache Maven](https://maven.apache.org/download.cgi) version 3.0 or higher.
28
28
-[Install the Azure Functions Core Tools](../azure-functions/functions-run-local.md#install-the-azure-functions-core-tools) version 4.x.
29
29
30
-
31
30
## Create a resource group
32
31
33
32
A resource group is a logical container into which Azure resources are deployed and managed. Use the following command to create a resource group to contain a Function app. For more information, see the [az group create](/cli/azure/group#az-group-create) command.
@@ -72,7 +71,6 @@ Make a note of the returned `hostNames` value, which is in the format *https://\
72
71
73
72
Use the following steps to enable Azure Active Directory authentication to access your Function app.
74
73
75
-
76
74
1. In the Azure portal, navigate to your resource group and then open the Function app you created.
77
75
1. In the navigation pane, select **Authentication** and then select **Add identity provider** on the main pane.
78
76
1. On the **Add an identity provider** page, select **Microsoft** from the **Identity provider** dropdown menu.
@@ -89,12 +87,15 @@ Use the following steps to enable Azure Active Directory authentication to acces
89
87
90
88
After you add the settings, the Function app restarts and all subsequent requests are prompted to sign in through Azure AD. You can test that unauthenticated requests are currently being rejected with the Function app's root URL (returned in the `hostNames` output of the `az functionapp create` command). You should then be redirected to your organization's Azure Active Directory sign-in screen.
91
89
92
-
Before we proceed to the next step, navigate to the application you just created, go the the **Expose an API** page, and copy the Application ID URI for later use.
90
+
You will need the Application ID and the Application ID URI for later use. In the Azure portal, navigate to the Function app you just created.
91
+
92
+
- To get the Application ID, in the navigation pane select **Authentication** and then copy **App (client) ID** for the identity provider that includes the name of the Function app.
93
93
94
-
:::image type="content" source="media/spring-cloud-tutorial-managed-identities-functions/function-auth-config-3.png" alt-text="Screenshot of the Azure portal showing the Microsoft identity provider application." lightbox="media/spring-cloud-tutorial-managed-identities-functions/function-auth-config-3.png":::
94
+
:::image type="content" source="media/spring-cloud-tutorial-managed-identities-functions/function-auth-config-3.png" alt-text="Screenshot of the Azure portal showing the Authentication page for a Function app with the Function app name highlighted in the Identity provider name." lightbox="media/spring-cloud-tutorial-managed-identities-functions/function-auth-config-3.png":::
95
95
96
-
:::image type="content" source="media/spring-cloud-tutorial-managed-identities-functions/function-auth-config-4.png" alt-text="Screenshot of the Azure portal showing the AAD application." lightbox="media/spring-cloud-tutorial-managed-identities-functions/function-auth-config-4.png":::
96
+
- To get the Application ID URI, in the navigation pane select **Expose an API** and then copy **Application ID URI**.
97
97
98
+
:::image type="content" source="media/spring-cloud-tutorial-managed-identities-functions/function-auth-config-4.png" alt-text="Screenshot of the Azure portal showing the Expose an API page for a Function app the the Application ID URI highlighted." lightbox="media/spring-cloud-tutorial-managed-identities-functions/function-auth-config-4.png":::
98
99
99
100
## Create an HTTP triggered function
100
101
@@ -182,7 +183,7 @@ This sample invokes the HTTP triggered function by first requesting an access to
0 commit comments