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

azurepolicy.bastion-la.json contains diagnostics for Microsoft.Web/sites #6

Closed
Astashin opened this issue Jan 30, 2020 · 1 comment
Closed

Comments

@Astashin
Copy link

Seems like copy-paste for web apps without changing config for bastion.
Below are correct fields for policy definition:

        "policyRule": {
          "if": {
            "field": "type",
            "equals": "Microsoft.Network/bastionHosts"
          },

Resource type:

"resources": [
                      {
                        "type": "Microsoft.Network/bastionHosts/providers/diagnosticSettings",

Log and metrics config:

                          "metrics": [],
                          "logs": [
                            {
                              "category": "BastionAuditLogs",
                              "enabled": true
                            }
@tyconsulting
Copy link
Owner

resolved - using log category group instead

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

No branches or pull requests

2 participants