0

I'm wondering if there is a specific Powershell command to create Azure SQL Analytics resource. So far I've only found how to enable sending diagnostics logs to a Log Analytics workspace.

I assume I can try arm template, but it will be nice if there is a dedicated command to avoid creating another json template.

Kiryl
  • 1,416
  • 9
  • 21

1 Answers1

0

You can use the following powershell:

Set-AzOperationalInsightsIntelligencePack -ResourceGroupName rgName -WorkspaceName workspaceName -IntelligencePackName AzureSQLAnalytics -Enabled $true

Reading: https://learn.microsoft.com/en-us/azure/azure-monitor/platform/powershell-workspace-configuration#create-and-configure-a-log-analytics-workspace

4c74356b41
  • 69,186
  • 6
  • 100
  • 141