Open
Description
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