Forum Discussion
ARM template and how to test it partially
Hi all,
If you have a long deployment template and performing that takes 10 - 15 minutes, what would be the best option for troubleshooting the process if that e.g fail at the end?
At the moment I'm failing to the Access Denied (I believe so) when the deployment is trying to use ARM Function: Reference to get the Key Vault SecretURI. Of course there is lot of different parameters on it to get that information, but the error message is "AccesstoKeyVaultDenied (code:BadRequest)". So far I have not been able get knowledge where the access denied is coming nor what resource that is trying to get.
It is possible to manually test those ARM functions somehow, like with PS command? Or is the only option to Enable ARM debugging, and hope the best? It is just a bit hard to wait over 10min to see if the actions has been helpful or (as too often now) not :D
Did you enable Debugging or consider Azure monitor?
- Petri-XBronze Contributor
Hi Kidd_Ip
Actually I did not yet did that, just reading how that should work and help in this kind of scenarios. Somehow just I feels it would be 10x easier, if I can break that line into individual requests and debug which part is really failing. But need to test this debug logging. I was just a bit surprise that I can perform the deployment with PS, but for reading the debug logging I need Azure CLI.