Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The provided script failed with the following error: Microsoft.PowerShell.Commands.HttpResponseException: Response status code does not indicate success: 400 (Bad Request) #11376

Closed
a-balde opened this issue Nov 5, 2024 · 4 comments
Assignees
Labels
Solution Solution specialty review needed

Comments

@a-balde
Copy link

a-balde commented Nov 5, 2024

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

@v-sudkharat v-sudkharat added the Solution Solution specialty review needed label Nov 5, 2024
@v-rusraut
Copy link
Contributor

Hi @a-balde , Thanks for flagging this issue, we will investigate this issue and get back to you with some updates. Thanks!

@lussierd16
Copy link

I had this same issue when I would run this and passing a parameters file. I fixed this by changing one of the inputs for the "enabelSolutions1P" to "Entra ID" instead of "Azure AD". I found that on some old tenants "Azure AD" works but with newer tenants it needs "Entra ID".

@a-balde
Copy link
Author

a-balde commented Nov 11, 2024

Hi @lussierd16, I replaced AzureAD with Entra ID in the solutions.json file but that did not resolve the issue.

@v-sudkharat
Copy link
Contributor

@a-balde, This issue we are addressing here - #11329 in which we tagged to respective Author, you can track and also share you response over here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Solution Solution specialty review needed
Projects
None yet
Development

No branches or pull requests

4 participants