Skip to content

Commit 55e971b

Browse files
committed
Add description on how to show ACS commit id (a.k.a Git revision) with Azure CLI
1 parent 0cacd08 commit 55e971b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,16 @@ This command produces JSON output similar to the following example:
436436
"example.property.application.name: example-service",
437437
"example.property.cloud: Azure"
438438
]
439+
},
440+
"metadata": {
441+
"gitRevisions": "[{\"url\":\"{gitRepoUrl}\",\"revision\":\"{revisionInfo}\"}]"
439442
}
440443
}
441444
```
442445

446+
> [!NOTE]
447+
> The "metadata" and "gitRevisions" are not available for Application Configuration Service Gen1 version.
448+
443449
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.
444450

445451
## Examine configuration file in the app
@@ -457,6 +463,9 @@ After you bind the app to the Application Configuration Service and set the [Pat
457463

458464
1. Check the content of the configuration file using commands such as `cat`.
459465

466+
> [!NOTE]
467+
> The Git revision information is not available in the app.
468+
460469
## Check logs
461470

462471
The following sections show you how to view application logs by using either the Azure CLI or the Azure portal.

0 commit comments

Comments
 (0)