-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ff26bc
commit 38a4112
Showing
3 changed files
with
53 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,40 +4,41 @@ languages: | |
- java | ||
products: | ||
- azure | ||
- azure-cosmos-db | ||
- azure-key-vault | ||
description: "Azure App Service basic sample for managing web apps." | ||
urlFragment: app-service-java-access-key-vault-by-msi-for-web-apps | ||
extensions: | ||
- services: Appservice | ||
- platforms: java | ||
--- | ||
|
||
# Manage Web App with Cosmos DB and Key Vault (Java) | ||
# Getting Started with Appservice - Manage Web App Cosmos Db Through Key Vault - in Java # | ||
|
||
Azure App Service basic sample for managing web apps. | ||
|
||
- Create a Cosmos DB with credentials stored in a Key Vault | ||
- Create a web app which interacts with the Cosmos DB by first | ||
reading the secrets from the Key Vault. | ||
|
||
The source code of the web app is located at | ||
https://github.com/Microsoft/todo-app-java-on-azure/tree/keyvault-secrets | ||
Azure App Service basic sample for managing web apps. | ||
- Create a Cosmos DB with credentials stored in a Key Vault | ||
- Create a web app which interacts with the Cosmos DB by first | ||
reading the secrets from the Key Vault. | ||
|
||
The source code of the web app is located at | ||
https://github.com/Microsoft/todo-app-java-on-azure/tree/keyvault-secrets | ||
|
||
|
||
## Running this sample | ||
## Running this Sample ## | ||
|
||
To run this sample: | ||
|
||
Set the environment variable `AZURE_AUTH_LOCATION` with the full path for an auth file. See [how to create an auth file](https://github.com/Azure/azure-libraries-for-java/blob/master/AUTH.md). | ||
|
||
```bash | ||
git clone https://github.com/Azure-Samples/app-service-java-access-key-vault-by-msi-for-web-apps.git | ||
cd app-service-java-access-key-vault-by-msi-for-web-apps | ||
mvn clean compile exec:java | ||
``` | ||
git clone https://github.com/Azure-Samples/app-service-java-access-key-vault-by-msi-for-web-apps.git | ||
|
||
cd app-service-java-access-key-vault-by-msi-for-web-apps | ||
|
||
## More information | ||
mvn clean compile exec:java | ||
|
||
## More information ## | ||
|
||
[http://azure.com/java](http://azure.com/java) | ||
|
||
If you don't have a Microsoft Azure subscription you can get a FREE trial account [here](http://go.microsoft.com/fwlink/?LinkId=330212). | ||
If you don't have a Microsoft Azure subscription you can get a FREE trial account [here](http://go.microsoft.com/fwlink/?LinkId=330212) | ||
|
||
--- | ||
|
||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments. | ||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters