The provided script failed with the following error: Microsoft.PowerShell.Commands.HttpResponseException: Response status code does not indicate success: 400 (Bad Request) #11376
Labels
Solution
Solution specialty review needed
Describe the bug
The provided script failed with the following error:\r\nMicrosoft.PowerShell.Commands.HttpResponseException: Response status code does not indicate success: 400 (Bad Request).\n at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)\r\nat , /mnt/azscripts/azscriptinput/Create-NewSolutionAndRulesFromList.ps1: line 44\r\nat , : line 1\r\nat , /mnt/azscripts/azscriptinput/DeploymentScript.ps1: line 310. Please refer to https://aka.ms/DeploymentScriptsTroubleshoot for more deployment script information.
ARM Template: https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2FAzure-Sentinel%2Fmaster%2FTools%2FSentinel-All-In-One%2Fv2%2Fazuredeploy.json/createUIDefinitionUri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2FAzure-Sentinel%2Fmaster%2FTools%2FSentinel-All-In-One%2Fv2%2FcreateUiDefinition.json
Script: https://github.com/Azure/Azure-Sentinel/blob/master/Tools/Sentinel-All-In-One/v2/Scripts/Create-NewSolutionAndRulesFromList.ps1
To Reproduce
To replicate the issue, deploy the ARM template selecting 'Azure Activity' as Content Hub Solution and Data connector, leaving all other settings as default. The 'deployRules' resource will fail, and the Azure Activity solution wont be installed.
Expected behavior
There should not be an error on 'deployRules' resource. The Azure Activity Sentinel solution should be installed.
Screenshots
![Image](https://private-user-images.githubusercontent.com/66168724/383108246-b59b6007-aed2-4463-bcba-0bac7c66c95f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MTI1NDIsIm5iZiI6MTczOTQxMjI0MiwicGF0aCI6Ii82NjE2ODcyNC8zODMxMDgyNDYtYjU5YjYwMDctYWVkMi00NDYzLWJjYmEtMGJhYzdjNjZjOTVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDAyMDQwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ2ZTcyMzUzNDdmNjkzZGQ5MjAwZmZhODI5MDg2ODRjZGUxMDk3ZGQzZTIyNjY0MmQ4YzFlZjcyZjExZWI1MGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hlb3g7Kl_YEZgNvcoU1egEhFqkoQg3Q13PKQa8JhN9c)
The text was updated successfully, but these errors were encountered: