Azure / Azure/azure-devtestlab

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

Open
#904 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
465
Forks
595
PR merge metrics
No merged PRs in 30d

Description

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

![image](https://github.com/user-attachments/assets/fe979859-4a53-4260-8159-a8d8038531c6)

![image](https://github.com/user-attachments/assets/d83d313b-57fa-4bb6-ae70-1a91813d6299)

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](https://github.com/user-attachments/assets/3c157bc7-514f-4dc0-99ee-989e853433d1)

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.