Blog Post

Azure Compute Blog
4 MIN READ

Upcoming Compute API Change: Always return non-null securityType

AjKundnani's avatar
AjKundnani
Icon for Microsoft rankMicrosoft
Mar 09, 2026

Starting with Azure Compute API version 2025‑11‑01, API responses for Virtual Machines and Virtual Machine Scale Sets will always include a non‑null securityType value. This change does not affect runtime behavior; it may impact validations that relies on null checks. Current versions of Azure PowerShell and Azure CLI are not impacted.

Overview

Starting with Azure Compute API version 2025‑11‑01, responses for Azure Virtual Machines (VMs) and Virtual Machine Scale Sets (VMSS) will include a non‑null securityType value in all operations.

While this is a small behavioral change, it can impact deployments if they rely on null checks in automation, validation, or post‑deployment scripts. This post explains what is changing, why the change was made, and what—if anything—you need to do to prepare.

This update applies only to the 2025‑11‑01 API version. Older API versions are unaffected and will continue to behave as they do today.

What’s changing?

With Azure Compute API version 2025‑11‑01, all VM and VM Scale Set operations—including create, update, and GET—will always return a populated securityType field in the response.

Specifically:

  • The securityType field will always return one of the following values, based on the resource configuration:

    Input Security Type

    Returned Security Type with new API version

    <null>

    Standard

    Standard

    Standard

    TrustedLaunch

    TrustedLaunch

    ConfidentialVM

    ConfidentialVM

  • If a VM or scale set is created or updated without specifying a securityType (that is, the value is omitted or set to null), the API response will now return securityType: "Standard"
  • Existing VMs or scale sets that already have a defined securityType (TrustedLaunch or ConfidentialVM) will continue to return their configured value, unchanged.

Important: This behavior change applies only to API version 2025‑11‑01. API versions prior to this will continue returning null when no securityType is specified.

Why this change is made

The securityType field represents an explicit security posture for a VM or scale set. Returning a consistent, non‑null value improves response clarity and aligns the API contract with actual runtime behavior, where resources always operate under a defined security model—even when not explicitly specified during creation.

This change makes API responses more predictable and reduces ambiguity for consumers interpreting resource configuration.

Will this impact existing workloads?

No. This change does not affect the runtime behavior of your existing VMs or scale sets. There is no impact to deployed resources, workloads, or infrastructure behavior.

However, you may be impacted if:

  • You use API version 2025‑11‑01, AND
  • You have automation, validation logic, or post-deployment scripts that:
    • Explicitly check for securityType == null
    • Treat a missing or null securityType as a special case

Only requests made using API version 2025‑11‑01 will return the updated, always‑present securityType value. Requests using older API versions are unchanged.

Azure PowerShell and Azure CLI: Current released versions of Azure PowerShell (Az.Compute) and Azure CLI (az vm / az vmss) are not impacted by this change. These tools use API versions prior to 2025‑11‑01 and will continue to behave as they do today. When future releases of these tools adopt API version 2025‑11‑01, the change will be documented in the release notes for the respective tools.

Impact on Azure PowerShell and Azure CLI

Current released versions of Azure PowerShell (Az.Compute module) and Azure CLI (az CLI) are not affected by this change. They rely on Azure Compute API versions earlier than 2025‑11‑01, which continue to return null for securityType when none is specified — consistent with today's behavior.

When these tools are updated to use API version 2025‑11‑01 in a future release, release notes for Azure PowerShell and Azure CLI will call out any behavioral changes customers should be aware of. No action is needed from PowerShell or CLI users at this time.

What actions do customers need to take?

If you will be using Azure Compute API version 2025‑11‑01, review and update any code that assumes securityType may be null.

Recommended actions:

No action required for Azure PowerShell or Azure CLI users. The current versions of these tools are unaffected. Monitor the release notes for Az.Compute and Azure CLI for the version that adopts API version 2025‑11‑01 — that release will note any client-side impacts.

✅ Update validation logic to accept "Standard" as the default value

✅ Remove or adjust null checks that gate logic or fail deployments

✅ Ensure post‑deployment checks and compliance scripts handle all supported securityType values

For example, a VM created without specifying securityType will now return "Standard" instead of null.

No action is required if you are using API versions earlier than 2025‑11‑01.

Example: GET response behavior (API version 2025‑11‑01)

The following example shows a GET VM response where no securityType was specified at creation time. Note that the response still includes a non‑null value (Standard).

{
  "id": "<vmResourceId>",
  "name": "<vmName>",
  "type": "Microsoft.Compute/virtualMachines",
  "properties": {
    "securityProfile": {
      "securityType": "Standard"
    }
  }
}

Next steps

Review your automation, validation or/and post-deployemnt scripts now to ensure a smooth transition when adopting Azure Compute API version 2025‑11‑01.

Updated Apr 29, 2026
Version 2.0

1 Comment

  • Klaas-'s avatar
    Klaas-
    Copper Contributor

    I applaud this behavior change and I think you should also do more of this :) For example 

    https://github.com/Azure/azure-rest-api-specs/issues/24660 and in general you should document in specs which fields are always returned, which are only returned if set and which are implicitly set to a default even when not returned. Same for tags 

    https://github.com/Azure/azure-rest-api-specs/issues/35693 those do not have consistent behavior across resources.