Unable to reference secret in Azure Key Vault from assign.json file. During the conversion back to Json, the convertTo-Json was set to 4 which would result in a error.
[error]Can't deserialize the JSON file 'D:\a\1\s\Blueprint\assign.json'. 'Error converting value "@{id=/subscriptions/Msub-id>/resourceGroups/providers/Microsoft.KeyVault/vaults/<keyvaultname}" to type 'Microsoft.Azure.Management.Blueprint.Models.KeyVaultReference'. Path 'reference.keyVault', line 68, position 245.'
Changing the depth to 5 resolved the error with Azure Key Vault.
Unable to reference secret in Azure Key Vault from assign.json file. During the conversion back to Json, the convertTo-Json was set to 4 which would result in a error.
Changing the depth to 5 resolved the error with Azure Key Vault.