2
votes

In the documentation of ARM templates resources types, there is no Microsoft.KeyVault/vaults/keys resource type.

This means that it is not possible to create a key in an Azure key vault by using arm templates.

I would like to know if this is actually intended for security reasons maybe, or just not supported yet.

I am experimenting with the new server side storage encryption with customer manager keys and I would like to create the following in a single template:

  • Key vault
  • Key in the key vault
  • Disk encryption set
1
Presumably because the contents of a Key Vault are not Azure resources, any more than files in a Storage Account.Hong Ooi
But @HongOoi, it is possible to create secrets via ARM templates why not keys?Chedy2149

1 Answers

1
votes

Because create key operation is not exposed with the ARM Rest API. Only with the Key Vault Rest API. But ARM Templates only operate against ARM Rest Api.