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
|`Name`| Yes | A unique name to label each Git repository. |
71
-
|`Patterns`| Yes | The pattern type to search in Git repositories. For each pattern, use a format such as *{application}* or *{application}/{profile}* rather than *{application}-{profile}.yml*. Separate the patterns with commas. For more information, see the [Pattern](#pattern) section of this article. |
71
+
|`Patterns`| Yes | The patterns to search for in Git repositories. For each pattern, use a format such as *{application}* or *{application}/{profile}* rather than *{application}-{profile}.yml*. Separate the patterns with commas. For more information, see the [Pattern](#pattern) section of this article. |
72
72
|`URI`| Yes | A Git URI (for example, `https://github.com/Azure-Samples/piggymetrics-config` or `[email protected]:Azure-Samples/piggymetrics-config`) |
73
-
|`Label`| Yes | The branch name to search in the Git repository.|
73
+
|`Label`| Yes | The branch name to search for in the Git repository. |
74
74
|`Search path`| No | Optional search paths, separated by commas, for searching subdirectories of the Git repository. |
75
75
76
76
### Pattern
@@ -155,7 +155,7 @@ The Application Configuration Service also supports polyglot apps like dotNET, G
155
155
When you modify and commit your configurations in a Git repository, several steps are involved before these changes are reflected in your applications. This process, though automated, involves the following distinct stages and components, each with its own timing and behavior:
156
156
157
157
- Polling by Application Configuration Service: The Application Configuration Service regularly polls the backend Git repositories to detect any changes. This polling occurs at a set frequency, defined by the refresh interval. When a change is detected, Application Configuration Service updates the Kubernetes `ConfigMap`.
158
-
- ConfigMap update and interaction with kubelet cache: In Azure Spring Apps, this `ConfigMap` is mounted as a data volume to the relevant application. However, there's a natural delay in this process due to the frequency at which the kubelet refreshes its cache to recognize changes in `ConfigMap`.
158
+
-`ConfigMap` update and interaction with kubelet cache: In Azure Spring Apps, this `ConfigMap` is mounted as a data volume to the relevant application. However, there's a natural delay in this process due to the frequency at which the kubelet refreshes its cache to recognize changes in `ConfigMap`.
159
159
- Application reads updated configuration: Your application running in the Azure Spring Apps environment can access the updated configuration values. The existing beans in the Spring Context aren't automatically refreshed to use the updated configurations.
160
160
161
161
These stages are summarized in the following diagram:
@@ -377,14 +377,16 @@ az spring application-configuration-service delete \
377
377
378
378
## Examine configuration file in ConfigMap
379
379
380
-
The following section shows you how to examine the content of the configuration file pulled by Application Configuration Service from upstream Git repositories in related Kubernetes `ConfigMap`. For more information, see the [Refresh strategies](#refresh-strategies) section of this article.
380
+
The following section shows you how to examine the content of the configuration file pulled by Application Configuration Service from upstream Git repositories in the related Kubernetes `ConfigMap`. For more information, see the [Refresh strategies](#refresh-strategies) section of this article.
381
381
382
382
### Assign an Azure role
383
383
384
-
Use the following steps to assign the`Azure Spring Apps Application Configuration Service Config File Pattern Reader Role`.
384
+
First, you must have the Azure role`Azure Spring Apps Application Configuration Service Config File Pattern Reader Role` assigned to you.
385
385
386
386
#### [Azure portal](#tab/azure-Portal)
387
387
388
+
Use the following steps to assign an Azure role:
389
+
388
390
1. Open the [Azure portal](https://portal.azure.com) and go to your Azure Spring Apps service instance.
389
391
390
392
1. In the navigation pane, select **Access Control (IAM)**.
@@ -403,6 +405,8 @@ Use the following steps to assign the `Azure Spring Apps Application Configurati
403
405
404
406
#### [Azure CLI](#tab/azure-CLI)
405
407
408
+
Use the following command to assign an Azure role:
409
+
406
410
```azurecli
407
411
az role assignment create \
408
412
--role "Azure Spring Apps Application Configuration Service Config File Pattern Reader Role" \
@@ -423,7 +427,7 @@ az spring application-configuration-service config show \
423
427
--config-file-pattern <pattern>
424
428
```
425
429
426
-
The command returns an output similar to the following example:
430
+
This command produces JSON output similar to the following example:
427
431
428
432
```json
429
433
{
@@ -436,15 +440,15 @@ The command returns an output similar to the following example:
436
440
}
437
441
```
438
442
439
-
You can also use this command with `--export-path {/path/to/target/folder}` parameter to export the configuration file to the specified folder. It supports both the relative path and the absolute path. If not specified, it takes the path of the current directory.
443
+
You can also use this command with the `--export-path {/path/to/target/folder}` parameter to export the configuration file to the specified folder. It supports both relative paths and absolute paths. If you don't specify the path, the command uses the path of the current directory by default.
440
444
441
445
## Examine configuration file in the app
442
446
443
447
After you bind the app to the Application Configuration Service and set the [Pattern](#pattern) for the app deployment, as described in the [Use Application Configuration Service with applications](#use-application-configuration-service-with-applications) section of this article, the `ConfigMap` containing the configuration file for the pattern should be mounted to the application container. Use the following steps to check the configuration files in each instance of the app deployment:
444
448
445
449
1. Connect to one of the application instances. For more information, see [Connect to an app instance for troubleshooting](./how-to-connect-to-app-instance-for-troubleshooting.md).
446
450
447
-
1. Use the `echo $AZURE_SPRING_APPS_CONFIG_FILE_PATH` command to find the folders containing the configuration files. A list of locations shows up separated by comma, as shown in the following example:
451
+
1. Use the `echo $AZURE_SPRING_APPS_CONFIG_FILE_PATH` command to find the folders containing the configuration files. A list of locations shows up separated by commas, as shown in the following example:
0 commit comments