Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az deploy complaining about windowsConfiguration trying to deploy a Linux VM ??? #51

Open
lovettchris opened this issue Jul 21, 2023 · 2 comments

Comments

@lovettchris
Copy link

lovettchris commented Jul 21, 2023

I'm suddenly getting a very weird error about windowsConfiguration trying to deploy a Linux VM. The VM is in my image gallery and I can deploy a VM using that image no problem using the portal, and this ARM template was working fine up until today, now it suddenly complains about windowsConfiguration? Is something busted in the ARM image builder cloud service?

> az deployment group create --resource-group clovett-rg \
     --template-file trainervm_deployment_template.json \
     --parameters trainervm_deployment_template.parameters.json

Please provide securestring value for 'adminPassword' (? for help):
{
    "status": "Failed",
    "error": {
        "code": "DeploymentFailed",
        "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
        "details": [
            {
                "code": "BadRequest",
                "message": "{
                     "error": {
                            "code":  "InvalidParameter",
                            "message":  "The value of parameter windowsConfiguration is invalid.",
                            "target":  "windowsConfiguration" 
                     }
                }
            }
        ]
    }
}

The arm templates is attached:

trainervm_deployment_template.parameters.zip

Note: I'm running this az command from a windows machine but that has never mattered before, nor should it.

@lovettchris
Copy link
Author

Oh, and now I have the opposite problem, I successfully created a windows game vm, then tried again with a different machine name, but everything else identical and it it starts complaining about a linuxConfiguration ???

image

@lovettchris
Copy link
Author

Oh, wow, an az cache purge solved the problem:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant