-
Notifications
You must be signed in to change notification settings - Fork 585
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
Log Analytics Subscription Id missing from Policy Parameter ID #85
Comments
Great catch... we only enabled the integration on the "Deploy-Log-Analytics" Policy Assignment as this is at the Management landing zone scope, however we absolutely need to add these. Adding this to our backlog for the next release. |
@krowlandson I have the 0.3.1 version of the module and when I deploy the Also, if I were to set the Extract from
I'd like to understand if using |
So I created a remediation task based on non-compliance report of the
Am I doing something wrong? Or is the policy definition template really invalid? @krowlandson Is there any other way to communicate to the team other then GitHub Issues? Or would you like us to raise and issue on all the unclear stuff regarding policy deployments? |
Did you set the management group Id as a variable during your deployment? Was this an upgrade or a fresh deployment of 0.3.1? |
@grtn316 I started testing from an empty canvas again. All goes well until it's time to deploy the At the time of writing this. I took another look at it. And seems like the Portal GUI is either extremely slow or it just takes some time for the role assignments to be effective. But now I can see both permissions: Log Analytics Contributor and Monitoring Contributor. Going to try the remediation task next. |
Remediation task fails with the previously reported InvalidTemplate error. Frustrating. Seems like there is something wrong with the I've used all my skills to deploy the Log Analytics workspace via policy but seems like the policy Gods are against me. |
The management subscription must be set for the policies to be configured properly:
Please be aware that the Subscription Id context that your TF Apply is being ran under must be the subscription Id of your management subscription. |
@grtn316 Hmm... seems like we're talking different things here. I'm just trying to deploy the policy assignment that has a |
Okay, looked at the pull requests and there is a not-yet-merged documentation of management resources. Just for clarification: if using management resources method then those policies |
@grtn316 I'll look into that demo, thank you very much for your help! |
@tohov, looking at the information provided it looks like @grtn316 is on the right track with his suggestion. To clarify a couple of additional points around this:
If you do not wish to deploy the management resources (e.g. Log Analytics workspace) using the module you can simply rely on Policy, but our recommendation is to set Also, we are working behind the scenes to update the Wiki documentation for this which will hopefully help in the future. Hope this helps, but please keep posting questions here and we will do our best to support you. |
@krowlandson Thanks for the help. It really helped to see @grtn316's configuration as it was almost (not entirely) what I was looking for. I now understand lot better how to deploy management resources. Going to test management resource deployment out today with 0.3.2 version of the module. |
@krowlandson Even with my best efforts, I got stuck with the deployment. Went through the issues again and there was one similar issue but it does not resolve my situation. I will post a new issue about it. #116 |
Policies that enforce Diagnostic Logs to be configured to send to Log Analytics appear to not be adding in the subscription ID or the unique GUID for the workspace name:
Example of the parameter in an assigned policy: Deploy-Diagnostics-PublicIP
/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/main-mgmt/providers/Microsoft.OperationalInsights/workspaces/main-la-00000000-0000-0000-0000-000000000000
The text was updated successfully, but these errors were encountered: