Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PlagueHO/782c67cc6647bf3b77783a15d1b887b3 to your computer and use it in GitHub Desktop.
Save PlagueHO/782c67cc6647bf3b77783a15d1b887b3 to your computer and use it in GitHub Desktop.
PowerShell Command to deploy Azure Arc Monitoring Extensions using ARM Template
New-AzResourceGroupDeployment `
-ResourceGroupName '<NAME OF RESOURCE GROUP CONTAINING ARC MACHINES>' `
-TemplateFile ~/AzureArcLinuxMonitoringExtensions.json `
-TemplateParameterObject @{
MachineName = '<NAME OF AZURE ARC MACHINE>'
Location = '<LOCATION OF AZURE ARM MACHINE>'
WorkspaceId = '<WORKSPACE ID OF LOG ANALYTICS WORKSPACE>'
WorkspaceKey = '<WORKSPACE KEY OF LOG ANALYTICS WORKSPACE>'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment