[Az.Compute] Remove AFEC check for UseStandardSecurityType; Standard SecurityType now first-class#29739
Draft
Copilot wants to merge 3 commits into
Draft
Conversation
| Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
Copilot
AI
changed the title
[WIP] Remove check for 'UseStandardSecurityType' AFEC for security-type Standard
[Az.Compute] Remove AFEC check for UseStandardSecurityType; Standard SecurityType now first-class
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CRP API 2025-11-01 promotes
Standardto a first-classsecurityTypeenum — no AFEC registration required. The API also now returns"securityProfile": {"securityType": "Standard"}in all GET responses by default (previously returned null/empty).Changes
Test assertions (
VirtualMachineTests.ps1,VirtualMachineScaleSetTests.ps1)Assert-Null $vm.SecurityProfile→Assert-AreEqual $vm.SecurityProfile.SecurityType "Standard"acrossTest-VirtualMachineSecurityTypeStandard,Test-VirtualMachineSecurityTypeStandardWithConfig,Test-VirtualMachineScaleSetSecurityTypeStandard,Test-VirtualMachineScaleSetSecurityTypeStandardWithConfig, and the Standard-update branches ofTest-VirtualMachineSecurityTypeWithoutConfig/Test-VirtualMachineScaleSetSecurityTypeAssert-Nulllines and stale comments referencing the old API limitationSession recordings (6 files)
"securityProfile": {"securityType": "Standard"}into GET (and relevant PUT/PATCH) response bodies for all Standard-security VMs and VMSSes"securityProfile": {}with{"securityType": "Standard"}in responses after an Update-to-Standard operationStale code comment (
VirtualMachineScaleSetCreateOrUpdateMethod.cs)"Standard"and merely normalizing its casingChangelog
src/Compute/Compute/ChangeLog.mdunder## Upcoming Release