I am currently having an issue creating multiple secrets in a keyvault in the same arm template deployment. The problem is that the arm template is trying to create the keys at the same time, and that is not supported. What I want to do is to make the second secret dependent on the first.
The name of the first key is
"name": "[format('{0}/{1}', variables('kvName'), 'StorageAccountConnString')]"
I can't seem to get it to work. I am not sure what to write in the dependsOn array. I tried using the value above as it is, I also tried using resourceId, but it tells me that I only sent a single parameter in, even though it is not true:
"[resourceId('Microsoft.KeyVault/vaults/secrets', format('{0}/{1}', variables('kvName'), 'StorageAccountConnString'))]"
Can someone help me? Is there someway to tell azure NOT to deploy these secrets at the same time? Or how do I get it run sequentially?