Skip to content

Instantly share code, notes, and snippets.

@azurekid
Last active August 31, 2020 11:56
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 azurekid/5dbfa2da550e842256378e2e1be09985 to your computer and use it in GitHub Desktop.
Save azurekid/5dbfa2da550e842256378e2e1be09985 to your computer and use it in GitHub Desktop.
Installing Qualys Cloud Agents with ARM Template
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"virtualMachines": {
"type": "Array"
}
},
"resources": [
{
"type": "Microsoft.Compute/virtualMachines/providers/serverVulnerabilityAssessments",
"apiVersion": "2020-01-01",
"name": "[concat(parameters('virtualMachines')[copyIndex()], '/Microsoft.Security/default')]",
"copy": {
"name": "Loop",
"count": "[length(parameters('virtualMachines'))]"
}
}
]
}
@azurekid
Copy link
Author

azurekid commented Mar 4, 2020

Installing Qualys Cloud Agents with ARM Template

This template can be used to install the Qualys Cloud Agents on both Windows and Linux virtual machines in Azure.
The license is auto assigned by the Azure Security Center at deployment time.

Prerequisites

  • Virtual Machine(s) should be started (ProvisioningState: Succeeded)

To add the extension to the virtual machines, they should exist within the same Resource Group where the template is getting deployed.

  • Azure Security Center Standard

Parameters

  • virtualMachines

An array of virtual machine names that needs to be provisioned with the Qualys extension

Usage

New-AzResourceGroupDeployment -Name Qualys -ResourceGroupName <nameOfResourceGroup> -TemplateFile <pathToTemplate> -TemplateParameterFile <pathToParameterFile>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment