---
title: "Update Azure scan options"
method: PATCH
path: "/api/v2/agentless_scanning/accounts/azure/{subscription_id}"
tags: ["Agentless Scanning"]
---

# Update Azure scan options

`PATCH /api/v2/agentless_scanning/accounts/azure/{subscription_id}`

Update the Agentless scan options for an activated subscription.

## Path parameters

- `subscription_id` string, required

## Request body

- AzureScanOptionsInputUpdate — Request object for updating Azure scan options.
  - `data` AzureScanOptionsInputUpdateData — Data object for updating the scan options of a single Azure subscription.
    - `attributes` AzureScanOptionsInputUpdateDataAttributes — Attributes for updating Azure scan options configuration.
      - `compliance_host` boolean — Indicates whether host compliance scanning is enabled.
      - `vuln_containers_os` boolean — Indicates if scanning for vulnerabilities in containers is enabled.
      - `vuln_host_os` boolean — Indicates if scanning for vulnerabilities in hosts is enabled.
    - `id` string, required — The Azure subscription ID.
    - `type` 'azure_scan_options', required — Azure scan options resource type.

## Response `200`

OK

- AzureScanOptions — Response object containing Azure scan options for a single subscription.
  - `data` AzureScanOptionsData — Single Azure scan options entry.
    - `attributes` AzureScanOptionsDataAttributes — Attributes for Azure scan options configuration.
      - `compliance_host` boolean — Indicates whether host compliance scanning is enabled.
      - `vuln_containers_os` boolean — Indicates if scanning for vulnerabilities in containers is enabled.
      - `vuln_host_os` boolean — Indicates if scanning for vulnerabilities in hosts is enabled.
    - `id` string, required — The Azure subscription ID.
    - `type` 'azure_scan_options', required — The type of the resource. The value should always be `azure_scan_options`.

## Other responses

- `429` — Too many requests

---

[API](https://skmtc.dev/datadog/apis/api-v2.md) · [All operations](https://skmtc.dev/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
