Azure / azure-devtestlab

Azure DevTestLab artifacts, scripts and samples
MIT License
458 stars 602 forks source link

Difficulty converting to use 3.* preview for the Create Azure DevTest Labs VM task #904

Open DerekSMorin opened 1 week ago

DerekSMorin commented 1 week ago

In the 2.* version we only passed a bunch of template parameters.

image

image

I tried to convert to 3.* but then I needed to use a parameters file.

I tried to make a parameters file with all defined as strings with blank values. Then I tried passing all variables as I did before using the Parameter Overrides.

image

First I had tried only using the parameter overrides but in both cases I got:

2024-10-05T01:41:34.8378982Z '{"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":"{\r\n \"error\": {\r\n \"code\": \"RequiredPropertyNullOrEmpty\",\r\n \"message\": \"Property userName is either missing or empty.\"\r\n }\r\n}"}]}}',

Is there a trick to passing variables from the pipeline to parameters list?

I also created: https://github.com/Azure/azure-devtestlab/issues/903

This issue (using 3.* preview) is part of me trying to work around the problems I was having with the non-preview versions.