Azure-docs: How do I connect to Log Analytics thru PowerShell?

Created on 7 Mar 2019  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-docs

How do I configure Backup Reports' Diagnostics settings to connect a vault to a Log Analytics workspace thru PowerShell?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

backusvc cxp product-question triaged

All 4 comments

@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

@Ayanmullick AFAIK this is currently not supported. Here's a list of supported Log Analytics mgmt. operations via PowerShell. Full list of Log Analytics PS cmdlets here.

We will now close this issue. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.

Was this page helpful?
0 / 5 - 0 ratings