Skip to content

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

Description

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.

Activity

  1. lovettchris commented on Jul 22, 2023

    @lovettchris
    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

  2. lovettchris commented on Jul 22, 2023

    @lovettchris
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions