YannickRe / azuredevops-buildagents

Generate self-hosted build agents for Azure DevOps, just like Microsoft does.
MIT License
153 stars 90 forks source link

Getting the following error: PlatformImageNotFound : The platform image 'xxx' is not available #45

Closed Tjeerd-menno closed 1 year ago

Tjeerd-menno commented 1 year ago

I've tried with all versions which are in your pipelines by default. But neither Ubuntu (20.04/22.04) nor Windows (2019/2022) work. They all give the same error.

image

I've checked the availability of the images using the Azure CLI. The sku's are available in my region.

az vm image list-skus --location westeurope --publisher MicrosoftWindowsServer --offer WindowsServer

The error happened during the Build VM step.

YannickRe commented 1 year ago

Could this possibly be your issue too? https://github.com/YannickRe/azuredevops-buildagents/issues/30#issuecomment-1516728423

Tjeerd-menno commented 1 year ago

Yes. That was it!

A bit strange though. Packer's docs clearly state that for VHD builds ZRS is supported. https://developer.hashicorp.com/packer/plugins/builders/azure/arm#storage_account_type

When building managed images only LRS is supported according to the docs. https://developer.hashicorp.com/packer/plugins/builders/azure/arm#managed_image_storage_account_type