Creates a Key Vault with a list of secrets
{"type": "microsoft.keyvault/vaults", "apiversion": "2021-04-01-preview", "name": "[parameters('keyvaultname')]", "location": "[parameters('location')]", "properties": {"enabledfordeployment": "[parameters('enabledfordeployment')]", "enabledfortemplatedeployment": "[parameters('enabledfortemplatedeployment')]", "enabledfordiskencryption": "[parameters('enabledfordiskencryption')]", "tenantid": "[parameters('tenantid')]", "accesspolicies": [{"objectid": "[parameters('objectid')]", "tenantid": "[parameters('tenantid')]", "permissions": {"keys": "[parameters('keyspermissions')]", "secrets": "[parameters('secretspermissions')]"}}], "sku": {"name": "[parameters('skuname')]", "family": "a"}, "networkacls": {"defaultaction": "allow", "bypass": "azureservices"}}}{"copy": {"name": "secrets", "count": "[length(parameters('secretsobject').secrets)]"}, "type": "microsoft.keyvault/vaults/secrets", "apiversion": "2021-04-01-preview", "name": "[format('{0}/{1}", parameters('keyvaultname'), parameters('secretsobject').secrets[copyindex()].secretname)]", "properties": {"value": "[parameters('secretsobject').secrets[copyindex()].secretvalue]"}, "dependson": ["[resourceid('microsoft.keyvault/vaults", parameters('keyvaultname'))]"]} 