Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.3k stars 1.96k forks source link

Cant create keyClient with AzureSDK for Java #38302

Open lucas-penna opened 8 months ago

lucas-penna commented 8 months ago

I'm trying to create KeyClient with azure sdk for java, as documetation suggests:

KeyClient keyClient = new KeyClientBuilder() .vaultUrl(keyVaultUrl) .credential(new DefaultAzureCredentialBuilder().build()) .buildClient();

My dependencies are also the ones in the documentation(https://learn.microsoft.com/en-us/azure/key-vault/keys/quick-create-java?tabs=azure-cli):

com.azure azure-security-keyvault-keys 4.2.3
    <dependency>
        <groupId>com.azure</groupId>
        <artifactId>azure-identity</artifactId>
        <version>1.2.0</version>
    </dependency>

Every time I create a key client, it has an error inside service:

image

Someone can help?

joshfree commented 7 months ago

@vcolin7 could you please follow up with @lucas-penna