azure-keyvault

Unable to import App Service Certificate after Subscription transfer

混江龙づ霸主 提交于 2020-04-18 03:49:14
问题 I recently transferred an Azure Subscription to a new account owner in a new directory. After doing so, I am no longer able to import an App Service Certificate into my App Service, and am thus unable to create any TSL/SSL bindings . When I click Import App Service Certificate , the certificate correctly shows up; when I click on the certificate it correctly displays Validated the App Service Certificate ; but when I click OK , I get the following error: Failed to add App Service certificate

How can i get secret from key vault?

大城市里の小女人 提交于 2020-03-05 04:44:13
问题 I want to get secret from Azure key vault. I found codes below and tried it. But I failed with error. private String clientId= '<I put my client Id here>'; private String secret= '<I put my client secret here>'; KeyVaultClient client = new KeyVaultClient(credentials); String secret = client.getSecret("https://<myVault>.vault.azure.net", "secret name").value(); log.debug("secret=============",secret); } ServiceClientCredentials credentials = new KeyVaultCredentials() { @Override public String

Suppressing Console Logging by Azure KeyVault

雨燕双飞 提交于 2020-02-24 11:42:26
问题 I'm accessing an Azure key vault, using C#, in a Net Core 2 console app. Whenever the app runs, the console window gets hit with messages like this when I retrieve a secret from the vault: 2017-12-26T18:03:49.8610049Z: 29c98a86-9e1d-4a5d-86d6-daf8f2cfdc56 - AcquireTokenHandlerBase.cs: ADAL PCL.CoreCLR with assembly version '3.17.3.35304', file version '3.17.41219.2324' and informational version 'b6afaeae7cff965e66649e0ee7e8c29071d5a7e6' is running... 2017-12-26T18:03:49.8621855Z: 29c98a86

Azure DevOps Build Pipeline can't get secrets from Key Vault when secured with vnet and firewall

匆匆过客 提交于 2020-02-02 11:32:28
问题 Can't get secrets from Key Vault when it's secured with vnet and firewall. I would like to use secrets stored in key vault from DevOps Build Pipeline task and I would like to follow security best practice and defense in depth. As security best practice, I want key vault to be accessible from selected virtual networks, selected azure services and from trusted internet ip's. Of course, I would use a service principal and appropriate permissions (list/get). Unfortunately, Azure DevOps is not one

Azure DevOps Build Pipeline can't get secrets from Key Vault when secured with vnet and firewall

浪子不回头ぞ 提交于 2020-02-02 11:28:11
问题 Can't get secrets from Key Vault when it's secured with vnet and firewall. I would like to use secrets stored in key vault from DevOps Build Pipeline task and I would like to follow security best practice and defense in depth. As security best practice, I want key vault to be accessible from selected virtual networks, selected azure services and from trusted internet ip's. Of course, I would use a service principal and appropriate permissions (list/get). Unfortunately, Azure DevOps is not one

Recommended Way of Deploying Azure Key Vault

左心房为你撑大大i 提交于 2020-01-25 11:18:04
问题 What is the recommended way of deploying Azure Key Vault: One Key Vault per environment e.g. Production, Test etc. One Key Vault used globally. If I want to automate creation of Azure resources using ARM templates, it seems the second method is preferable. However, storing Test and Production secrets together could cause mistakes to happen unless you use some kind of naming scheme for secret names. 回答1: The official recommendation is that a Key Vault is not shared across environments. Don't

Azure Key Vault: Backup Secrets using PowerShell

戏子无情 提交于 2020-01-25 06:49:11
问题 I am trying to run the following PS script to back-up all of the Secrets, in a specific Azure Key Vault: $secret = Get-AzureKeyVaultSecret –VaultName 'testkeyvault-1' | ForEach-Object { $Name = $_."Name" Backup-AzureKeyVaultSecret -Secret $Name -OutputFile 'C:\Backup.blob' } Though this is failing with the following PS error, any help would be appreciated: Backup-AzureKeyVaultSecret : Cannot bind parameter 'Secret'. Cannot convert the "SQLSecret" value of type "System.String" to type

Azure Key Vault access from ARM Template

假如想象 提交于 2020-01-24 11:18:18
问题 I was trying to add Azure key vault integration with our ARM deployment, so we can keep all password in Azure Key-Vault. I was following this to try to access secret (adminPassword) I have created in Azure KeyVault (dSentienceAnalytics). Here is my template I tried to deploy this template through powershell, but it asked me to enter value for variable “adminPassword”, which it supposed to retrieve from Azure key vault. Do you see what I am missing here ? anyone can help me with this ? 回答1:

Purpose of going for an Azure Key Vault storage

我只是一个虾纸丫 提交于 2020-01-24 09:51:05
问题 I'm new to azure cloud services platform. Today i came across the Key-Vault storage service provided by azure. It has the ability to store application level keys and settings. It is safe and secure with enhanced data protection. But what i'm not clearly getting is to connect to Key-Vault i need the artifacts of my Key-Vault stored in my application config. If that is the case when someone eves-drop on the key values will he not connect to my Key-Vault and read all my keys. If I should encrypt

Creating Azure Key Vault using .NET assembly (Microsoft.Azure.KeyVault)

感情迁移 提交于 2020-01-24 01:08:35
问题 I am writing a .Net console application to create Key Vault but not able to find class/method in Microsoft.Azure.KeyVault assembly that allows creating Vault and setting service principal to that vault. Can someone please point me to the assembly/class that i can use to create vault. Thanks 回答1: The class you are looking for is the KeyVaultManagementClient in the Microsoft.Azure. Management .KeyVault namespace. This is defined in the management KeyVault assembly you can get from NuGet. The