Keyvault created is not visible under subscription for Keyvault API connection

HanumanthappaKarthik-7245 1 Reputation point
2022-12-08T13:44:43.543+00:00

I created a API connection with ARM Template for Keyvault with managed identity . i didnt create Keyvault before hand but specified the vault name as mentioned in some document.

            "parameterValueType": "Alternative",  
            "alternativeParameterValues": {  
                "vaultName": "[parameters('Connection_vaultName')]"  
            },  

Resource got created. but i am unable to find the keyvault in my subscription as well as i am unable to create a keyvault with same name as it throws error as KeyVault name already exit.

How to resolve this issue.

This is the ARM Template i used for deployment.
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"connections_keyvault_name": {
"defaultValue": "keyvault",
"type": "String"
},
"env": {
"defaultValue": "dev",
"type": "string"
},
"Connection_vaultName": {
"type": "string",
"defaultValue": ""
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Web/connections",
"apiVersion": "2016-06-01",
"name": "[parameters('connections_keyvault_name')]",
"location": "[resourceGroup().location]",
"kind": "V1",
"properties": {
"displayName": "[parameters('connections_keyvault_name')]",
"statuses": [
{
"status": "Ready"
}
],
"customParameterValues": {},
"createdTime": "2022-11-03T04:53:20.6599559Z",
"changedTime": "2022-11-03T04:53:20.6599559Z",
"api": {
"name": "keyvault",
"displayName": "Azure Key Vault",
"description": "Azure Key Vault is a service to securely store and access secrets.",
"iconUri": "https://connectoricons-prod.azureedge.net/releases/v1.0.1597/1.0.1597.3005/keyvault/icon.png",
"brandColor": "#0079d6",
"id": "[concat(subscription().id,'/providers/Microsoft.Web/locations/',resourceGroup().location,'/managedApis/keyvault')]",
"type": "Microsoft.Web/locations/managedApis"
},
"parameterValueType": "Alternative",
"alternativeParameterValues": {
"vaultName": "[parameters('Connection_vaultName')]"
},
"testLinks": []
}
}
]
}

Azure Key Vault
Azure Key Vault

An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.

Azure Logic Apps
Azure Logic Apps

An Azure service that automates the access and use of data across clouds without writing code.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.