Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PlagueHO/48e3339513f5a6479dabc8affaecea42 to your computer and use it in GitHub Desktop.
Save PlagueHO/48e3339513f5a6479dabc8affaecea42 to your computer and use it in GitHub Desktop.
PowerShell Command to deploy Azure Arc Custom Script Extensions using ARM Template
New-AzResourceGroupDeployment `
-ResourceGroupName '<NAME OF RESOURCE GROUP CONTAINING ARC MACHINES>' `
-TemplateFile ~/AzureArcLinuxCustomScriptExtensions.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