Skip to content

Commit 3a02fb3

Browse files
Merge pull request #273843 from KarlErickson/revert-273841-revert-273730-jiec-msft-mason/leverage-acs-commit-id-for-troubleshoot-273630
Add description on how to examine Git revisions
2 parents 6cfd2a7 + 1f78c18 commit 3a02fb3

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

articles/spring-apps/enterprise/how-to-enterprise-application-configuration-service.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ az role assignment create \
416416

417417
---
418418

419-
### Examine configuration file with Azure CLI
419+
### Examine configuration file with the Azure CLI
420420

421421
Use the following command to view the content of the configuration file by [Pattern](#pattern):
422422

@@ -553,6 +553,19 @@ To check the logs of `application-configuration-service` and `flux-source-contro
553553
> [!NOTE]
554554
> There might could be a few minutes delay before the logs are available in Log Analytics.
555555
556+
## Examine Git revisions of the configuration files
557+
558+
You can find the Git revision of the configuration file of the [Pattern](#pattern) in the logs of Application Configuration Service. The following example log indicates that the configuration file for the `payment/default` pattern is pulled with `example-commit-id` from the `main` branch of the `https://github.com/Azure-Samples/acme-fitness-store-config` repository. You can learn how to query logs in the [Check logs](#check-logs) section.
559+
560+
```output
561+
Applied ConfigMap ({config-map-name}) for content (payment/default) from Git repositories https://github.com/Azure-Samples/acme-fitness-store-config@main@sha1:{example-commit-id}
562+
```
563+
564+
You can also find the Git revision by using the Azure CLI. For more information, see the [Examine configuration file with Azure CLI](#examine-configuration-file-with-the-azure-cli) section.
565+
566+
> [!NOTE]
567+
> Git revision is not available for the Gen1 version of Application Configuration Service.
568+
556569
## Troubleshoot known issues
557570

558571
If the latest changes aren't reflected in the applications, check the following items based on the [Refresh strategies](#refresh-strategies) section:
@@ -561,6 +574,7 @@ If the latest changes aren't reflected in the applications, check the following
561574
- Confirm that the branch of the desired config file changes is updated.
562575
- Confirm that the pattern configured in the Application Configuration Service matches the updated config files.
563576
- Confirm that the application is bound to the Application Configuration Service.
577+
- Confirm that the Application Configuration Service is using the correct Git revisions as described in the [Examine Git revisions of the configuration files](#examine-git-revisions-of-the-configuration-files) section.
564578
- Confirm that the `ConfigMap` containing the configuration file for the [Pattern](#pattern) used by the application is updated, as described in the [Examine configuration file in ConfigMap](#examine-configuration-file-in-configmap) section of this article. If it isn't updated, raise a ticket.
565579
- Confirm that the `ConfigMap` is mounted to the application as a file, as described in the [Examine configuration file in the app](#examine-configuration-file-in-the-app) section of this article. If the file isn't updated, wait for the Kubernetes refresh interval (1 minute), or force a refresh by restarting the application.
566580

0 commit comments

Comments
 (0)