Skip to content

Cant create keyClient with AzureSDK for Java #38302

Open
@lucas-penna

Description

@lucas-penna

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?

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.KeyVaultcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

Status

Not Started

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions