-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
Describe the bug
I am a developer at Cisco, and our customers are facing an issue while installing the Duo Connector for Sentinel from the Microsoft Sentinel solutions marketplace. I am experiencing the same issue. The package validates successfully before upload, and the deployment works when I deploy the same [mainTemplate.json] using Custom deployment. However, after publishing the solution, installing it from Content Hub / Marketplace fails with a location validation error (minLength: 1).
{
"code": "InvalidTemplate",
"message": "Deployment template validation failed: 'The provided value for the template parameter 'location' is not valid. Length of the value should be greater than or equal to '1'. Please see https://aka.ms/arm-syntax-parameters for usage details.'."
}This happens even though:
- The solution deploys successfully when running the same [mainTemplate.json] via custom deployment (manual ARM deployment).
- The packaging/upload/publish step does not show any errors, but installation from Content Hub/Marketplace fails.
Impact: published solution cannot be installed through the normal marketplace/Content Hub flow due to location being passed as an empty string.
To Reproduce
Steps to reproduce the behavior:
- In Azure Portal, go to Microsoft Sentinel -> Content hub.
- Select the published solution and click Install.
- Installation fails during ARM template validation with the error shown above: template parameter
locationhas length< 1.
Expected behavior
The install flow should always pass a non-empty location parameter (or the template engine should fall back to resourceGroup().location), so the solution installs successfully from Content Hub/Marketplace, the same way it installs via custom deployment.
Screenshots
- Add screenshot of the Azure Portal install failure showing the
InvalidTemplate/location minLengtherror. -
Desktop (please complete the following information):
- OS: macOS
- Browser: Chrome
- Version: N/A
Smartphone (please complete the following information):
- Device: N/A
- OS: N/A
- Browser: N/A
- Version: N/A
Additional context
-
The issue appears only in the published install flow; direct ARM “custom deployment” works.
-
Error indicates the
locationparameter is being passed as an empty string during the marketplace/Content Hub install. -
In the generated templates,
locationtypically hasminLength: 1. If the UI definition ([createUiDefinition.json] output uses[location()]and the portal hides/doesn’t populate it, the output can be empty and fails validation. -
Request: confirm if this is a known limitation/bug in Solution V3 packaging or portal install flow, and provide the recommended pattern to guarantee a valid
locationis passed during Content Hub installation (without breaking validation rules like ARM-TTK). -
Solution name (Cisco Duo Security Sentinel) and package version (3.1.0).