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

Add Diagnostics Settings to Virtual Hub - Point to Site #16

Open
aavdberg opened this issue Aug 30, 2024 · 2 comments
Open

Add Diagnostics Settings to Virtual Hub - Point to Site #16

aavdberg opened this issue Aug 30, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@aavdberg
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
Want to do with code the Diagnostic Settings to the Point to Site in Virtual Hub in the Virtual WAN.

Additional context
image

@aavdberg aavdberg added the enhancement New feature or request label Aug 30, 2024
@aavdberg
Copy link
Author

Can do it through the portal but can't find it anywhere in the documentation of ARM or BICEP.

image

@StefanIvemo
Copy link
Owner

Hello,

You should be able to add diagnostics by adding this to your point to site gateway template:

resource diagnosticSettings 'Microsoft.Insights/diagnosticSettings@2021-05-01-preview' = {
  name: 'diagnostics'
  scope: pointtositegw //resource identitfier to the point to site gw
  properties: {
    logs: [
      {
        enabled: true
        categoryGroup: 'allLogs'
        retentionPolicy: {
          days: 0
          enabled: false 
        }
      }
    ]
    metrics: [
      {
        enabled: true
        category: 'AllMetrics'
        retentionPolicy: {
          days: 0
          enabled: false 
        }
      }
    ]
    workspaceId: 'resourceId to workspace'
    logAnalyticsDestinationType: 'Dedicated'
  }
}

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

No branches or pull requests

2 participants