-
Notifications
You must be signed in to change notification settings - Fork 238
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
Failed deployments in the Activity log #719
Labels
Comments
This could be from our telemetry, it attempts to create a deployment which will fail, we do this so our backend tools can discover the actions that users are trying to run.
https://azure.github.io/enterprise-azure-policy-as-code/#opt-out-of-telemetry-data-collection-telemetryoptout
If you set the telemetry opt out to false in global-settings.jsonc it should stop.
In terms of telemetry we simply collect that someone has executed one of the EPAC scripts, not details about what is being deployed is ever collected.
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: teemukom ***@***.***>
Sent: Friday, August 2, 2024 5:07:42 PM
To: Azure/enterprise-azure-policy-as-code ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [Azure/enterprise-azure-policy-as-code] Failed deployments in the Activity log (Issue #719)
Describe the bug
When running EPAC I can see failed Deployments in the activity log. The policy definitions / assignments are still correctly placed and Deploy-PolicyPlan returns no errors. The deployment error is pretty non-informative:
"properties": { "statusCode": "BadRequest", "serviceRequestId": null, "statusMessage": "{\"error\":{\"code\":\"InvalidRequestContent\",\"message\":\"The deployment request content is invalid. Please see https://aka.ms/arm-deploy for usage details.\"}}", "eventCategory": "Administrative", "entity": "/providers/Microsoft.Management/managementGroups/EPAC/providers/Microsoft.Resources/deployments/pid-fe9ff1e8-5521-4b9d-ab1d-84e15447565e", "message": "Microsoft.Resources/deployments/write",
To Reproduce
Deploy any change (assignment, definition, exemption)
Watch the management group level action log
Monitor for failed deployments
Expected behavior
No failed Deployments
Screenshots
image.png (view on web)<https://github.com/user-attachments/assets/6f6e11a7-8825-483c-ab72-5b69a0a9d018>
EPAC Version
v10.5.1
—
Reply to this email directly, view it on GitHub<#719> or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACWCJVXBLDQSLVQVT4HEYBDZPMV37BFKMF2HI4TJMJ2XIZLTSSBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJLJONZXKZNENZQW2ZNLORUHEZLBMRPXI6LQMWBKK5TBNR2WLKRSG4ZDKOJYHE2DOOFENZQW2ZNJNBQXGX3MMFRGK3ECUV3GC3DVMWSHI4TVMWSG4YLNMWXHOYLUMNUF6YLDORUXM2LUPGWHG5LCNJSWG5C7OR4XAZNFJFZXG5LFUZ2G64DJMNZZHAVEOR4XAZNKOJSXA33TNF2G64TZUV3GC3DVMWUTGMZXGE3DEOBTHCBKI5DZOBS2K2LTON2WLJLWMFWHKZNKGI2DINBSGM4DEMJSQKSHI6LQMWSWYYLCMVWKK5TBNR2WLKRSG4ZDKOJYHE2DOOFHORZGSZ3HMVZKMY3SMVQXIZI>.
You are receiving this email because you are subscribed to this thread.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Thanks for the response @anwather. Seems like this was it. Might be good to have note in the documentation. |
Good idea. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When running EPAC I can see failed Deployments in the activity log. The policy definitions / assignments are still correctly placed and Deploy-PolicyPlan returns no errors. The deployment error is pretty non-informative:
"properties": { "statusCode": "BadRequest", "serviceRequestId": null, "statusMessage": "{\"error\":{\"code\":\"InvalidRequestContent\",\"message\":\"The deployment request content is invalid. Please see https://aka.ms/arm-deploy for usage details.\"}}", "eventCategory": "Administrative", "entity": "/providers/Microsoft.Management/managementGroups/EPAC/providers/Microsoft.Resources/deployments/pid-fe9ff1e8-5521-4b9d-ab1d-84e15447565e", "message": "Microsoft.Resources/deployments/write",
To Reproduce
Deploy any change (assignment, definition, exemption)
Watch the management group level action log
Monitor for failed deployments
Expected behavior
No failed Deployments
Screenshots
EPAC Version
v10.5.1
The text was updated successfully, but these errors were encountered: