How do I configure Backup Reports' Diagnostics settings to connect a vault to a Log Analytics workspace thru PowerShell?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@Ayanmullick Thanks for the Comment. We are actively investigating and will get back to you soon.
The below runs successfully but doesn't update anything for the Vault diagnostics settings.
Set-AzureRmDiagnosticSetting -ResourceId /subscriptions/<SubID>/resourceGroups/<RGName>/providers/Microsoft.RecoveryServices/vaults/<Vaultname> -StorageAccountId /subscriptions/<SubID>/resourceGroups/<RGName>/providers/Microsoft.Storage/storageAccounts/<StorageAccountName> -WorkspaceId /subscriptions/<SubID>c/resourcegroups/<RGName>/providers/microsoft.operationalinsights/workspaces/<WorkspaceName> -Enabled $true -Verbose
We will now close this issue. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.