Skip to content

Commit f59834c

Browse files
committed
missed edits
1 parent f8aeed7 commit f59834c

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

articles/spring-apps/tutorial-managed-identities-functions.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ az functionapp create \
6767

6868
Make a note of the returned `hostNames` value, which is in the format *https://\<your-functionapp-name>.azurewebsites.net*. Use this value in the Function app's root URL for testing the Function app.
6969

70-
## Enable Azure Active Directory Authentication
70+
## Enable Azure Active Directory authentication
7171

7272
Use the following steps to enable Azure Active Directory authentication to access your Function app.
7373

@@ -87,16 +87,16 @@ Use the following steps to enable Azure Active Directory authentication to acces
8787

8888
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.
8989

90-
## Create an HTTP Triggered Function
90+
## Create an HTTP triggered function
9191

92-
In an empty local directory, use the following commands to create a new function and add an HTTP triggered function.
92+
In an empty local directory, use the following commands to create a new function app and add an HTTP triggered function.
9393

9494
```console
9595
func init --worker-runtime node
9696
func new --template HttpTrigger --name HttpTrigger
9797
```
9898

99-
By default, Functions use key-based authentication to secure HTTP endpoints. To enable Azure AD authentication to secure access to the Functions, set the `authLevel` key to `anonymous`in the *function.json* file.
99+
By default, functions use key-based authentication to secure HTTP endpoints. To enable Azure AD authentication to secure access to the functions, set the `authLevel` key to `anonymous`in the *function.json* file as shown in the following code:
100100

101101
```json
102102
{
@@ -115,32 +115,32 @@ For more information, see the [Secure an HTTP endpoint in production](../azure-f
115115
Use the following command to publish the app to the instance created in the previous step:
116116

117117
```console
118-
func azure functionapp publish <your-functionapp-name>
118+
func azure functionapp publish <function-app-name>
119119
```
120120

121-
The output from the publish command should list the URL to your newly created function.
121+
The output from the publish command should list the URL to your newly created function, as shown in the following output:
122122

123123
```output
124124
Deployment completed successfully.
125125
Syncing triggers...
126126
Functions in <your-functionapp-name>:
127127
HttpTrigger - [httpTrigger]
128-
Invoke url: https://<your-functionapp-name>.azurewebsites.net/api/httptrigger
128+
Invoke url: https://<function-app-name>.azurewebsites.net/api/httptrigger
129129
```
130130

131-
## Create Azure Spring Apps service and app
131+
## Create an Azure Spring Apps service instance and application
132132

133133
Use the following commands to add the spring extension and to create a new instance of Azure Spring Apps.
134134

135135
```azurecli
136136
az extension add --upgrade --name spring
137137
az spring create \
138138
--resource-group <resource-group-name> \
139-
--name <Azure-Spring-Instance-name> \
139+
--name <Azure-Spring-Apps-instance-name> \
140140
--location <location>
141141
```
142142

143-
Use the following command to create an app named `msiapp` with a system-assigned managed identity, as requested by the `--assign-identity` parameter.
143+
Use the following command to create an application named `msiapp` with a system-assigned managed identity, as requested by the `--assign-identity` parameter.
144144

145145
```azurecli
146146
az spring app create \
@@ -153,7 +153,7 @@ az spring app create \
153153

154154
## Build sample Spring Boot app to invoke the Function
155155

156-
This sample invokes the HTTP triggered function by first requesting an access token from the [MSI endpoint](../active-directory/managed-identities-azure-resources/how-to-use-vm-token.md#get-a-token-using-http) and using that token to authenticate the Function http request.
156+
This sample invokes the HTTP triggered function by first requesting an access token from the MSI endpoint and using that token to authenticate the function HTTP request. For more information, see the [Get a token using HTTP](../active-directory/managed-identities-azure-resources/how-to-use-vm-token.md#get-a-token-using-http) section of [How to use managed identities for Azure resources on an Azure VM to acquire an access token](../active-directory/managed-identities-azure-resources/how-to-use-vm-token.md).
157157

158158
1. Use the following command clone the sample project.
159159

@@ -168,7 +168,7 @@ This sample invokes the HTTP triggered function by first requesting an access to
168168
vim src/main/resources/application.properties
169169
```
170170

171-
To use managed identity for Azure Spring Apps apps, add properties with the following content to *src/main/resources/application.properties*.
171+
To use managed identity for Azure Spring Apps apps, add the following properties with these values to *src/main/resources/application.properties*.
172172

173173
```text
174174
azure.function.uri=https://<function-app-name>.azurewebsites.net
@@ -181,20 +181,20 @@ This sample invokes the HTTP triggered function by first requesting an access to
181181
mvn clean package
182182
```
183183

184-
1. Use the following command to deploy the app to Azure.
184+
1. Use the following command to deploy the app to Azure Spring Apps.
185185

186186
```azurecli
187187
az spring app deploy \
188-
--resource-group "myResourceGroup" \
189-
--service "mymsispringcloud" \
188+
--resource-group <resource-group-name> \
189+
--service <Azure-Spring-Apps-instance-name> \
190190
--name "msiapp" \
191191
--jar-path target/asc-managed-identity-function-sample-0.1.0.jar
192192
```
193193

194194
1. Use the following command to access the public endpoint or test endpoint to test your app.
195195

196196
```bash
197-
curl https://mymsispringcloud-msiapp.azuremicroservices.io/func/springcloud
197+
curl https://<Azure-Spring-Apps-instance-name>-msiapp.azuremicroservices.io/func/springcloud
198198
```
199199

200200
The following message is returned in the response body.

0 commit comments

Comments
 (0)