Mismatch API Version with Azure Resource Graph

Ben Bernays 0 Reputation points
2024-12-23T21:15:42.52+00:00

I am trying to find the full schema for the microsoft.security/assessments/subassessments. Azure Resource Graph is telling me that the resource is using version 2020-01-01 of the API. There is no corresponding version or release notes of that API. Here is the query I used to get the version:

azure % az graph query -q "securityresources | distinct type, apiVersion | where type == 'microsoft.security/assessments/subassessments' | order by type asc"
{
  "count": 1,
  "data": [
    {
      "apiVersion": "2020-01-01",
      "type": "microsoft.security/assessments/subassessments"
    }
  ],
  "skip_token": null,
  "total_records": 1
}
Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,452 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andriy Bilous 11,616 Reputation points MVP
    2024-12-23T21:53:00.6033333+00:00

    Hello Ben Bernays

    I was trying to find microsoft.security/assessments/subassessments resource API version 2020-01-01 but it seems that the version 2020-01-01 you're seeing might be a typo or an outdated reference.
    According to the information I found, the latest documented API version for this resource is 2019-01-01-preview.

    https://learn.microsoft.com/en-us/rest/api/defenderforcloud/sub-assessments/get?view=rest-defenderforcloud-2019-01-01-preview&tabs=HTTP


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.