Comments (4)
@chenrujun @moarychan @Netyyyy @saragluna
from azure-sdk-for-java.
Thank you for your feedback. Tagging and routing to the team member best able to assist.
from azure-sdk-for-java.
@kirankumar994 are you using the com.azure.spring spring-cloud-azure-starter-keyvault
to retrieve the kv property source, instead of using the kv secret client and get the secret by yourself?
from azure-sdk-for-java.
Hi @saragluna , here is the dependency I am using.
<dependency> <groupId>com.azure.spring</groupId> <artifactId>spring-cloud-azure-starter-keyvault</artifactId> <version>5.11.0</version> </dependency>
But, as I mentioned in the above I am able to run the application on my local by configurin the bean in my Reactive Mongo config as below
`@Bean
public SecretClient createSecretClient() {
ClientSecretCredential clientSecretCredential = new ClientSecretCredentialBuilder()
.clientId(clientId)
.clientSecret(clientSecret)
.tenantId(tenantId)
.build();
// Azure SDK client builders accept the credential as a parameter.
return new SecretClientBuilder()
.vaultUrl(keyVaultEndpoint)
.credential(clientSecretCredential)
.buildClient();
}`
The clientId, secret and tenantId are reading from the application properties file. I am not facing any issue on my local. Here is the following I am trying to do.
- Keeping clientId, secret and tenantId in the application properties file and reading in the above code. The application is up and runnin after I login with az login service principal.
- Later, I copied the same properties in the azure spring apps environment variables and tried to deploy the application on azure spring apps, then it is failing to start the application and throwing the below exception.
java.lang.IllegalStateException: Failed to configure KeyVault property source
I would like to know what I am doing wrong here. Thank you in advance.
from azure-sdk-for-java.
Related Issues (20)
- [BUG] Netty HTTP Server exception for There is a blocking call in the CosmosClientAsync HOT 7
- UUF - azure-dev-docs-pr - Configure logging in the Azure SDK for Java - Java on Azure | Microsoft Learn HOT 1
- Connection reset by peer HOT 5
- [BUG] RuntimeException when using BlobContainerClient HOT 2
- Checksum verification not working when uploading using stageBlock/commitBlockList or when using blobClient.getBlockBlobClient().getBlobOutputStream HOT 4
- [BUG] 7.16.0 LinkagerError HOT 9
- Azure Identity => ERROR in getToken() call for scopes [https://database.windows.net//.default] HOT 3
- [BUG] NoClassDefFoundError: io/netty/handler/codec/http/HttpDecoderConfig HOT 4
- [BUG] no azure-spring-data-cosmos 3.45.0 find in Maven HOT 2
- Error log from compute client sdk HOT 5
- [QUERY] How to get total count of blobs size in a container? HOT 3
- Azure Identity => ERROR in getToken() call for scopes []: Managed Identity authentication is not available. HOT 7
- [QUERY] How to catch the networking error while use the azure-stream-binder SDK HOT 6
- [BUG] azure-spring-data-cosmos Query Methods always require Criteria inappropriately HOT 4
- [BUG] EventHubConsumerAsyncClient - Connection Aborted HOT 6
- [BUG] StacklessClosedChannelException on Blob Downloads in Windows Azure Functions on Version 12.25.4 HOT 4
- [BUG] Version checking in azure-core-http-netty may encourage users to expose their app to a CVE HOT 4
- [QUERY] Service bus Delivery not on receive link error HOT 2
- ServiceBusMessageSender should refresh maximum message size when service settings change
- Create a BOM for clientcore packages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-java.