0
votes

I want to create RSA Key in Azure Key Vault using ARM template

All what I found is a REST API to do it https://docs.microsoft.com/en-us/rest/api/keyvault/createkey/createkey any ideas if this applicable through ARM template

1

1 Answers

0
votes

no, its not, unfortunately. Only "things" exposed to ARM are keyvault resources, secrets and accessPolicies:

https://docs.microsoft.com/en-us/azure/templates/microsoft.keyvault/allversions

update:

possible now.

        {
            "type": "Microsoft.KeyVault/vaults/keys",
            "apiVersion": "2019-09-01",
            "name": "[concat(parameters('vaultName'), '/', parameters('keyName'))]",
            "tags": "[parameters('tags')]",
            "properties": {
                "attributes": "[parameters('attributes')]",
                "crv": "[parameters('crv')]",
                "kty": "[parameters('kty')]",
                "key_ops": "[parameters('key_ops')]",
                "key_size": "[parameters('key_size')]"
            }
        }

https://github.com/Azure/azure-quickstart-templates/blob/master/modules/Microsoft.KeyVault/vaults/keys/0.9/azuredeploy.json