How to get what all the Recovery Services Vault added into the Log Analytics

Kalaimani Thirupathi 411 Reputation points
2021-01-10T13:05:55.81+00:00

Dear Team,

I'm looking for the script to get what all the Recovery Services Vault added into the Log Analytics

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,308 questions
Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,280 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SadiqhAhmed-MSFT 46,036 Reputation points Microsoft Employee
    2021-01-11T11:25:48.627+00:00

    @Kalaimani Thirupathi We don't have a sample script readily available. However, you can write your own script using Azure Monitor powershell. The main cmdlet involved is Get-AzDiagnosticSetting (https://learn.microsoft.com/powershell/module/az.monitor/get-azdiagnosticsetting?view=azps-5.3.0)

    You can run this cmdlet for all your vaults, and if the output has 'WorkspaceId' field as non-null, it means that vault is enabled for Log Analytics.

    ----------------------------------------------------------------------------------------------------------------------

    If the response helped, do "Accept Answer" and up-vote it

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.