Questions tagged [azure-keyvault]

Microsoft Azure Key Vault is a cloud-hosted service that allows applications to encrypt/decrypt data using (HSM stored) cryptographic keys and store and retrieve secrets.

Azure Key Vault helps safeguard cryptographic keys and secrets used by cloud applications and services. By using Key Vault, you can encrypt keys and secrets (such as authentication keys, storage account keys, data encryption keys, .PFX files, and passwords) by using keys that are protected by hardware security modules (HSMs). For added assurance, you can import or generate keys in HSMs (keys never leave the HSM boundary). The HSMs are FIPS 140-2 Level 2 validated.

Key Vault streamlines the key management process and enables you to maintain control of keys that access and encrypt your data. Developers can create keys for development and testing in minutes, and then seamlessly migrate them to production keys. Security administrators can grant (and revoke) permission to keys, as needed.

2719 questions
4
votes
2 answers

Set key vault access policies for multiple object ids using parameter (array type) via ARM Template

Is it possible to set key vault access policies for multiple object ids using a parameter of array type via ARM Template? "policies": { "value": [ { "objectId": "", …
4
votes
0 answers

connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed

I am trying to connect app service and key vault. I am getting the below error message from app service on connecting to key vault. 'connection attempt failed because the connected party did not properly respond after a period of time, or…
4
votes
1 answer

Accessing the Azure Key Vault from a .Net Application - getting DefaultAzureCredential authentication failed

I'm trying to connect my .Net Core 3.1 app up to an Azure Key Vault. I've followed the quickstart tutorial, and am getting the following error: Microsoft.Extensions.Configuration.AzureAppConfiguration.KeyVaultReferenceException: …
Paul Michaels
  • 16,185
  • 43
  • 146
  • 269
4
votes
1 answer

Dynamic Variables in Azure Pipeline Template

I am working on a template to help streamline our deployments to our on-premise IIS Servers. Usernames and passwords are stored in an Azure Key Vault, but when I go to use them in the Web App Management Task, I cannot access them. I am thinking I…
Scott
  • 43
  • 3
4
votes
1 answer

How to dynamically get certificate thumbprint in ARM template from certificate in Azure key vault?

How can I get a certifcate's thumbprint in an ARM template, where the certificate is stored in Azure key vault? The reason being I would like to dynamically get the certificate thumbprint by simply providing the name rather than hard-coding the…
user13308826
4
votes
2 answers

How do you have multiple Add Access Policy in ARM Template

I'm trying to conditionally add Access Policies to a Key Vault and the problem is that you can't have more than 1 resource in the template with the name of KeyVault/accessPolicies/add This is effectively what I want to achieve: { "$schema":…
David C
  • 501
  • 1
  • 4
  • 16
4
votes
1 answer

Use encrypted Azure credentials when initializing new SecretClient

I've been following this tutorial Azure Key Vault client library for .NET (v4) trying to learn about Key Vaults in desktop applications. I set up a Service Principal as instructed and gave it access to my Vault, and I was then successful in…
4
votes
3 answers

Get X509 Certificate from Azure Keyvault to use in a REST call

I'm trying to get a certificate from Azure Keyvault, and then use it to call a REST API which requires a certificate for its authentication. I've tried doing this locally - I have the .pfx file on disk, I load it into a byte array, and then create…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
4
votes
1 answer

Use X509Certificate2 with Windows certificate store, HSM, and Azure Key Vault

I have many methods like the below which uses X509Certificate2.PrivateKey public SomeValue DoSomething(X509Certificate2 cert) { // do something that needs the cert.PrivateKey } They are working well so far with certificates that…
Thuan
  • 1,618
  • 1
  • 10
  • 21
4
votes
1 answer

Azure Managed Service Identity endpoint missing in App Service for Containers

I'm trying to deploy my app to Azure App Service for Containers, using the docker-compose preview. The deployment configuration is as follows: version: "3.7" services: auth: image: myorg/myimage environment: -…
4
votes
4 answers

Update Azure keyvault secret through Azure API

I am trying to update keyvault secret in Azure through Postman. But getting Authorization error. Any suggestions. Anything I am missing. Thanks in advance { "error": { "code": "Unauthorized", "message": "AKV10022: Invalid audience.…
user47
  • 105
  • 2
  • 12
4
votes
2 answers

.NET Core 3.1 Docker in Visual Studio accessing Azure Key Vault

I am trying to run a .NET Core 3.1 Application in Docker locally in Visual Studio. The application needs to access a Azure Key Vault. When I run the application I get the following error: One or more errors occurred. (Parameters: Connection String:…
4
votes
3 answers

Accessing Key vault in Azure active directory App registration

Is there a way to connect an Azure Active Directory application to a key vault to access a certificate rather than uploading the certificate file in the Certificate & Secrets section in the Azure portal?
4
votes
0 answers

Azure Key Vault Configuration - Intermittent "Unauthorized" response

I have the following code loading Azure Key Vault secrets into the configuration of a worker process on startup. The process is configured in Azure and associated to a certificate which is also installed on the machine where the process runs. This…
SouthShoreAK
  • 4,176
  • 2
  • 26
  • 48
4
votes
1 answer

Accessing Key Vault with @azure/identity and get error 'Request is missing a Bearer or PoP token Error 401'

I'm trying to retrieve some secrets from Azure's keyvault but I cannot seem to authenticate using @azure/identity module. Versions: "@azure/identity": "^1.0.0-preview.6", "@azure/keyvault-secrets": "^4.0.0-preview.9", I have an azure functions app…