Azure does not have any 22.04-LTS OS image version.
I checked with this command:
az vm image list-skus --publisher Canonical --offer UbuntuServer --location westus | more
It does show 16.04-LTS and 18.04-LTS but does not show any 22.04-LTS OS at all.
So I currently get this error:
{
"error": {
"code": "InvalidTemplateDeployment",
"message": "The template deployment 'BaseImageVMDeployment_dev-westus_20230323204936' is not valid according to the validation procedure. The tracking id is 'dcdd26b0-daad-44c1-a1a7-b43a205f7de6'. See inner errors for details.",
"details": [{
"code": "InvalidParameter",
"target": "imageReference",
"message": "The following list of images referenced from the deployment template are not found: Publisher: Canonical, Offer: UbuntuServer, Sku: 22.04-LTS, Version: latest. Please refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/cli-ps-findimage for instructions on finding available images."
}]
}
}