Azure / Azure/azure-rest-api-specs

[BUG] The response does not return any values about 'Vulnerability assessment for machines' component

Open
#34,845 3 comments 0 reactions 0 assignees View on GitHub
bug customer-reported question Security Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

### API Spec link

https://learn.microsoft.com/en-us/rest/api/defenderforcloud/pricings/list?view=rest-defenderforcloud-2024-01-01&tabs=HTTP#code-try-0

### API Spec version

2024-01-01

### Describe the bug

The response does not return any values about 'Vulnerability assessment for machines' component. It has only AgentlessVmScanning, but I want to receive information about Vulnerability assessment for machines status. Please add this property.

### Expected behavior

[
{
"id": "/subscriptions/9fafec62-0f51-41df-be3c-72e6a9b46431/providers/Microsoft.Security/pricings/VirtualMachines",
"name": "VirtualMachines",
"type": "Microsoft.Security/pricings",
"properties": {
"pricingTier": "Standard",
"subPlan": "P2",
"freeTrialRemainingTime": "P0D",
"enablementTime": "2024-11-28T17:31:27.431819Z",
"resourcesCoverageStatus": "FullyCovered",
"extensions": [
{
"name": "MdeDesignatedSubscription",
"isEnabled": "False"
},
{
"name": "AgentlessVmScanning",
"isEnabled": "True",
"additionalExtensionProperties": {
"ExclusionTags": "[]"
}
},
{
"name": "FileIntegrityMonitoring",
"isEnabled": "False"
},
{
**"name": "VulnerabilityAssessment",
"isEnabled": "False"**
}
]
}
}
]

### Actual behavior

[
{
"id": "/subscriptions/9fafec62-0f51-41df-be3c-72e6a9b46431/providers/Microsoft.Security/pricings/VirtualMachines",
"name": "VirtualMachines",
"type": "Microsoft.Security/pricings",
"properties": {
"pricingTier": "Standard",
"subPlan": "P2",
"freeTrialRemainingTime": "P0D",
"enablementTime": "2024-11-28T17:31:27.431819Z",
"resourcesCoverageStatus": "FullyCovered",
"extensions": [
{
"name": "MdeDesignatedSubscription",
"isEnabled": "False"
},
{
"name": "AgentlessVmScanning",
"isEnabled": "True",
"additionalExtensionProperties": {
"ExclusionTags": "[]"
}
},
{
"name": "FileIntegrityMonitoring",
"isEnabled": "False"
}
]
}
}
]

### Reproduction Steps

Simple list operation.

### Environment

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the linked Defender for Cloud pricings API specification for version 2024-01-01 and inspect the List operation's VirtualMachines response schema. Compare the documented extensions with the expected VulnerabilityAssessment entry, then verify that the schema represents this property without removing existing extensions.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.