Skip to content

ZonePlacementPolicy not enforced at VM creation #27855

Open
@gbordier

Description

@gbordier

Description

The documentation states that the -ZonePlacementPolicy Any parameter should trigger the Azure-selected availability zone feature the same way it is selected in the portal. however, using this parameter has no effect and the VM gets created without an availability zone.
repro with v10.0.0 of the Az.Compute module

Issue script & Debug output

no output since the command is running fine

Environment data

Name                           Value
----                           -----
PSVersion                      5.1.26100.4061
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.4061
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Module versions

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     5.0.1      Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault...}
Script     10.0.0     Az.Compute                          {Add-AzImageDataDisk, Add-AzVhd, Add-AzVMAdditionalUnattendContent, Add-AzVMDataDisk...}

Error output

no error output

Metadata

Metadata

Assignees

No one assigned

    Labels

    ComputeService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reported

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions