Microsoft.Sql managedInstances/databases/vulnerabilityAssessments 2017-10-01-preview

Template format

To create a Microsoft.Sql/managedInstances/databases/vulnerabilityAssessments resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.Sql/managedInstances/databases/vulnerabilityAssessments",
  "apiVersion": "2017-10-01-preview",
  "properties": {
    "storageContainerPath": "string",
    "storageContainerSasKey": "string",
    "storageAccountAccessKey": "string",
    "recurringScans": {
      "isEnabled": "boolean",
      "emailSubscriptionAdmins": "boolean",
      "emails": [
        "string"
      ]
    }
  }
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Sql/managedInstances/databases/vulnerabilityAssessments object

Name Type Required Value
name string Yes The name of the vulnerability assessment.
type enum Yes vulnerabilityAssessments
-or-
Microsoft.Sql/managedInstances/databases/vulnerabilityAssessments

See Set name and type for child resources.
apiVersion enum Yes 2017-10-01-preview
properties object Yes Resource properties. - DatabaseVulnerabilityAssessmentProperties object

DatabaseVulnerabilityAssessmentProperties object

Name Type Required Value
storageContainerPath string No A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set
storageContainerSasKey string No A shared access signature (SAS Key) that has read and write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.
storageAccountAccessKey string No Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required.
recurringScans object No The recurring scans settings - VulnerabilityAssessmentRecurringScansProperties object

VulnerabilityAssessmentRecurringScansProperties object

Name Type Required Value
isEnabled boolean No Recurring scans state.
emailSubscriptionAdmins boolean No Specifies that the schedule scan notification will be is sent to the subscription administrators.
emails array No Specifies an array of e-mail addresses to which the scan notification is sent. - string