azure-keyvault

Adding a Key Vault Access Policy to an Existing Key Vault via ARM

℡╲_俬逩灬. 提交于 2021-01-29 08:58:18
问题 I am trying to do an ARM deployment in Azure Devops whereby I add a key vault access policy to an existing key vault in Azure. I want to use the following ARM template which adds an access policy to an existing Key Vault: https://github.com/Azure/azure-quickstart-templates/tree/master/101-keyvault-add-access-policy I have a separate template that deploys an App service and creates a system assigned managed identity. What is the best way to link the two templates? how do i reference the System

Exception while connecting to KeyVault from Azure VM

狂风中的少年 提交于 2021-01-29 07:58:53
问题 I am running my applictaion from Azure VM and trying to connect with KeyVault. But I am getting below exception Parameters: Connectionstring: [No connection string specified], Resource: https://vault.azure.net, Authority: https://login.windows.net/1e465dc8-5f36-4ab9-9a49-57cbfdcfdf9a. Exception Message: Tried the following 3 methods to get an access token, but none of them worked. Parameters: Connectionstring: [No connection string specified], Resource: https://vault.azure.net, Authority:

Databricks dbutils throwing NullPointerException

余生长醉 提交于 2021-01-29 07:22:02
问题 Trying to read secret from Azure Key Vault using databricks dbutils, but facing the following exception: OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0 Warning: Ignoring non-Spark config property: eventLog.rolloverIntervalSeconds Exception in thread "main" java.lang.NullPointerException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect

How to connect Azure-key-vault with a AKS pod?

余生颓废 提交于 2021-01-28 11:19:01
问题 I have nodeJs application with docker file deployed in AKS with HelmChart, and I have azure key vault with some keys in Azure Portal and I need to connect my running POD with that KeyVault. 回答1: I use akv2k8s. Akv2k8s contains two main components: The akv2k8s Controller syncs Azure Key Vault objects to Kubernetes as native Secret's The akv2k8s Injector injects Azure Key Vault objects as environment variables directly into your application. Diagram: Before you start with the installation I

Azure ARM template add deployer object id to key vault access policies

烂漫一生 提交于 2021-01-28 05:27:37
问题 I have a service principal which I am using to deploy key vault. How can I fetch that service principals object id automatically with ARM template similarly as I can fetch MSI object id with line: "objectId": "[reference(concat('Microsoft.Web/sites/', variables('function')), '2018-02-01', 'Full').identity.principalId]", 回答1: I dont think you can. Your only option would be to pass it from the level above (ie from the powershell script that is invoking the template). Also, if you want to do

SQL Server Column Encryption using Azure Key Vault and Spring Boot

元气小坏坏 提交于 2021-01-28 02:12:06
问题 I need to save the data in SQL server having column encryption using the Azure Key vault @Bean @Primary public DataSource dataSource() throws SQLException { KeyVaultClient client = new KeyVaultClient(keyVaultCredentialService); String userName = client.getSecret(vaultURL, "spring-datasource-username").value(); String password = client.getSecret(vaultURL, "spring-datasource-password").value(); String url = "jdbc:sqlserver://test.database.windows.net;databaseName=encryption_demo

Azure Key Vault secret access intermittently failing to connect with socket exception

回眸只為那壹抹淺笑 提交于 2021-01-27 06:07:39
问题 I have an MVC 5 web application running on .NET 4.7.2 and hosted in an Azure AppService, that uses Azure Key Vault to hold secrets. The project uses the Microsoft.Azure.KeyVault 3.0.3 NuGet package and the secrets are accessed using the KeyVaultClient and .GetSecretAsync() . All resources are located in the same Azure region. For the most part this works very well, and for about 90% of the time it returns the secret in milliseconds. But every now and then the call to access the Key Vault

Azure Key Vault secret access intermittently failing to connect with socket exception

假如想象 提交于 2021-01-27 06:06:40
问题 I have an MVC 5 web application running on .NET 4.7.2 and hosted in an Azure AppService, that uses Azure Key Vault to hold secrets. The project uses the Microsoft.Azure.KeyVault 3.0.3 NuGet package and the secrets are accessed using the KeyVaultClient and .GetSecretAsync() . All resources are located in the same Azure region. For the most part this works very well, and for about 90% of the time it returns the secret in milliseconds. But every now and then the call to access the Key Vault

Azure Key Vault secret access intermittently failing to connect with socket exception

▼魔方 西西 提交于 2021-01-27 06:06:22
问题 I have an MVC 5 web application running on .NET 4.7.2 and hosted in an Azure AppService, that uses Azure Key Vault to hold secrets. The project uses the Microsoft.Azure.KeyVault 3.0.3 NuGet package and the secrets are accessed using the KeyVaultClient and .GetSecretAsync() . All resources are located in the same Azure region. For the most part this works very well, and for about 90% of the time it returns the secret in milliseconds. But every now and then the call to access the Key Vault

Acquire Keyvault Secret within a httptrigger and Use it to Acquire Info to be output by Function-Python

大城市里の小女人 提交于 2021-01-20 07:15:21
问题 I have the following code which I use to acquire a secret, use secret to log into portal and download a csv table. This works ok outside a function. import pandas as pd import pandas as pd from arcgis.gis import GIS from azure.identity import DefaultAzureCredential from azure.keyvault.secrets import SecretClient credential = DefaultAzureCredential() secret_client = SecretClient(vault_url="https://xxxx-dev-vault.vault.azure.net/", credential=credential) secret = secret_client.get_secret(