neilpeterson / azure-blueprints-pipeline-tasks

MIT License
17 stars 16 forks source link

assignBlueprint - changed converTo-Json depth to 5 #39

Closed erleonard closed 5 years ago

erleonard commented 5 years ago

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.