christophetd / Adaz

:wrench: Deploy customizable Active Directory labs in Azure - automatically.
https://blog.christophetd.fr/automating-the-provisioning-of-active-directory-labs-in-azure/
410 stars 84 forks source link

MicrosoftWindowsDesktop:Windows-10:19h1-pron:latest' is not available. #58

Closed rstar13as closed 11 months ago

rstar13as commented 11 months ago

What is not working?

After running terraform apply; get the following error.

╷ │ Error: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=404 -- Original Error: Code="PlatformImageNotFound" Message="The platform image 'MicrosoftWindowsDesktop:Windows-10:19h1-pron:latest' is not available. Verify that all fields in the storage profile are correct. For more details about storage profile information, please refer to https://aka.ms/storageprofile" Target="imageReference" │ │ with azurerm_virtual_machine.workstation[1], │ on workstations.tf line 23, in resource "azurerm_virtual_machine" "workstation": │ 23: resource "azurerm_virtual_machine" "workstation" { │ ╵ ╷ │ Error: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=404 -- Original Error: Code="PlatformImageNotFound" Message="The platform image 'MicrosoftWindowsDesktop:Windows-10:19h1-pron:latest' is not available. Verify that all fields in the storage profile are correct. For more details about storage profile information, please refer to https://aka.ms/storageprofile" Target="imageReference" │ │ with azurerm_virtual_machine.workstation[0], │ on workstations.tf line 23, in resource "azurerm_virtual_machine" "workstation": │ 23: resource "azurerm_virtual_machine" "workstation" { │ ╵

What OS are you using? Mac OS X

Your domain.yml file? If you customized the domain.yml file, please include it below

No, customisation

Full Terraform / Ansible output? If applicable, please include the full Terraform / Ansible output

christophetd commented 11 months ago

Thanks for reporting! Having a look now.

christophetd commented 11 months ago

Reproduced

christophetd commented 11 months ago

should be fixed by https://github.com/christophetd/Adaz/pull/59, can you checkout this branch and confirms it solves the issue? (works for me at least)

git fetch origin
git checkout win10-version-fix
cd terraform
terraform apply
rstar13as commented 11 months ago

Thank you very much, ran the above commands and the build was successful, please can you advise the cause and your fix for this issues and changes made?

christophetd commented 11 months ago

See changes here: https://github.com/christophetd/Adaz/pull/59/files

Glad it's solved! Now merged into the main branch. Thanks again for reporting