title: API version 2022-03-01 does not have operation group 'virtual_machine_images'
body: <p>I run following command</p>
  <pre><code>az vm create --resource-group MyRG --name myVMName --image windows-11:win11–21h2-pro:22000.376.2112072052
  </code></pre>
  <p>This causes following error.</p>
  <pre><code>API version 2022-03-01 does not have operation group 'virtual_machine_images'
  </code></pre>
  <p>I assume this means --image no more support but what's the alternative? Couldn't find anything relevant in the Auzre cli documentation about this. My az cli version seems upto date</p>
  <pre><code>az --version                                                                                                                                        
  azure-cli                         2.37.0
   
  core                              2.37.0
  telemetry                          1.0.6
   
  Extensions:
  azure-devops                      0.24.0
   
  Dependencies:
  msal                            1.18.0b1
  azure-mgmt-resource               21.0.0
   
  Python location '/usr/bin/python3'
  Extensions directory '/home/kali/.azure/cliextensions'
  Extensions system directory '/usr/lib/python3/dist-packages/azure-cli-extensions'
   
  Python (Linux) 3.10.5 (main, Jun  8 2022, 09:26:22) [GCC 11.3.0]
   
  Legal docs and information: aka.ms/AzureCliLegal
   
   
  Your CLI is up-to-date.
  </code></pre>
  <p><strong>Update:</strong>
  This error is not specific to windows-11, I am getting same error with other OS too. See image below for detailed error.</p>
  <p><a href="https://i.stack.imgur.com/BYjhs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BYjhs.png" alt="enter image description here" /></a></p>