Azure Marketplace Deployment Fails Validation For Resource Group-Related Configuration

Post deployment of Orchestrator from the Azure Marketplace, why does the validation fail?

Issue Description: While Attempting to use the Azure Marketplace Orchestrator Deployment https://azuremarketplace.microsoft.com/en-us/marketplace/apps/uipath-5054924.uipath_orchestrator_automated_deployment_webapp?tab=overview and after completing the wizard, below error is thrown:

{

"code": "InvalidPolicyParameters",

"message": "A function or parameter in policy assignment 'xxxxxxxxxxxx' associated with the policy definition 'xxxxxx-xxxx-xxxx-xxxx-xxxxxxx' could not be validated. Please either fix the policy or remove the policy assignment to unblock. If using template functions, try following the tips in: Avoiding Template Failures . The inner error is 'Unable to evaluate the template language function 'json'. The argument provided is not a valid JSON string.'."

}

Resolution:

  1. Create the RG first, then use the wizard to deploy to the RG.
  2. Create a policy to handle situations when "tags" are not specified (even if empty).
  3. It is not observed before creating an RG via Azure Portal passes "tags: {}" when no tags are specified.