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 Deployment fails in 3 different environments with different configuration on the same point - enableSolutionAndAlerts - Create-NewSolutionAndRulesFromList.ps1: line 44 #11111

Open
WVDAdminTF opened this issue Sep 11, 2024 · 10 comments
Assignees
Labels
help wanted Extra attention is needed scripts

Comments

@WVDAdminTF
Copy link

Describe the bug
A clear and concise description of what the bug is.

The resource write operation failed to complete successfully, because it reached terminal provisioning state 'failed'. (Code: ResourceDeploymentFailure)
The provided script failed with the following error:
Microsoft.PowerShell.Commands.HttpResponseException: Response status code does not indicate success: 400 (Bad Request).
at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
at , /mnt/azscripts/azscriptinput/Create-NewSolutionAndRulesFromList.ps1: line 44
at , : line 1
at , /mnt/azscripts/azscriptinput/DeploymentScript.ps1: line 310. Please refer to
https://aka.ms/DeploymentScriptsTroubleshoot
for more deployment script information. (Code: DeploymentScriptError)

To Reproduce
Simply deploy the Template it WILL fail.

Expected behavior
The resource write operation failed to complete successfully, because it reached terminal provisioning state 'failed'. (Code: ResourceDeploymentFailure)
The provided script failed with the following error:
Microsoft.PowerShell.Commands.HttpResponseException: Response status code does not indicate success: 400 (Bad Request).
at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
at , /mnt/azscripts/azscriptinput/Create-NewSolutionAndRulesFromList.ps1: line 44
at , : line 1
at , /mnt/azscripts/azscriptinput/DeploymentScript.ps1: line 310. Please refer to
https://aka.ms/DeploymentScriptsTroubleshoot
for more deployment script information. (Code: DeploymentScriptError)

Please refer the Screenshot, @pemontto

Screenshots
If applicable, add screenshots to help explain your problem.
Environment 1
image

Environment 2
image

Desktop (please complete the following information):
Azure Portal

Smartphone (please complete the following information):

Additional context

@v-sudkharat v-sudkharat added the help wanted Extra attention is needed label Sep 11, 2024
@WVDAdminTF
Copy link
Author

Dear @v-rusraut @v-sudkharat please can you let me know if there is any update on the same

@v-sudkharat
Copy link
Contributor

Hi @WVDAdminTF, Could you please provide more info about the in which sentinel solution or its content the deployment is failing?

@WVDAdminTF
Copy link
Author

Hi @v-sudkharat could you please be more specific what you would like apart from the information already shared that your repo - https://github.com/Azure/Azure-Sentinel/blob/master/Tools/Sentinel-All-In-One/v2/Scripts/**Create-NewSolutionAndRulesFromList.ps1**

ps1 file line 44 - is causing the deployment to fail.
image

Please can you deploy the template and confirm that it is working with a screenshot.

@WVDAdminTF
Copy link
Author

Hi @v-sudkharat

yes, this is the template. Please can you advise when are we expected to have the issue fixed.

If there is any workaround for the same, please can you share the steps.

@garybushey
Copy link
Contributor

This was due to some change so that the Get-AzContext did not return the SubscriptionId. Changes have been made to fix this as well as add a delay so that the managed identity's permissions get fully distributed. The changes in the pipeline to get accepted.

@WVDAdminTF
Copy link
Author

Hi @garybushey,

Thank you for the update. I will execute the same and let you know if the Deployment completes

@v-sudkharat
Copy link
Contributor

@WVDAdminTF, Please let us know once it done. Thanks!

@v-sudkharat
Copy link
Contributor

Hi @WVDAdminTF, Did you get a chance to check on above suggestion?

@v-sudkharat
Copy link
Contributor

Hi @WVDAdminTF, Gentle Reminder: We are waiting for your response on this issue. If you still need to keep this issue active, please respond to it in the next 2 days. If we don't receive a response by 22-10-2024 date, we will be closing this issue.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed scripts
Projects
None yet
Development

No branches or pull requests

4 participants