Azure / Azure/azure-rest-api-specs

VirtualNetwork defines deprecated property enableVmProtection

Open
#23,287 3 comments 1 reaction 0 assignees View on GitHub
customer-reported Network - Virtual Network question Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

[According to the Azure CLI team](https://github.com/Azure/azure-cli/issues/14059#issuecomment-667289923), the property [enableVmProtection](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/virtualNetwork.json#L1910) is deprecated. It is indeed _not_ returned anymore by the endpoint.

However, it's not marked as deprecated in the spec. This is confusing for automated tools built on the API spec like Pulumi, which assume the property is still expected.

Contributor guide

Open the contributing guide

Research direction

Open specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/virtualNetwork.json and inspect the enableVmProtection definition, using the linked Azure CLI discussion for context. Mark the property as deprecated in the spec, then run the repository's relevant validation checks and confirm the specification accepts the change.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, openapi
Domain
api, cloud
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.