DSC icon indicating copy to clipboard operation
DSC copied to clipboard

DSC config needs to support `resources` as a single object

Open SteveL-MSFT opened this issue 8 months ago • 1 comments

Prerequisites

  • [x] Write a descriptive title.
  • [x] Make sure you are able to repro it on the latest version
  • [x] Search the existing issues.

Summary

https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/syntax#template-format

Per Language 2.0, ARM doesn't require resources to be an array, it can just be an object

Steps to reproduce

N/A

Expected behavior

`resources` property can be an object

Actual behavior

`resources` requires to be an array

Error details


Environment data

Name                           Value
----                           -----
PSVersion                      7.6.0-preview.2
PSEdition                      Core
GitCommitId                    7.6.0-preview.2
OS                             Darwin 24.4.0 Darwin Kernel Version 24.4.0: Fri Apr 11 18:32:43 PDT 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_T8103
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

3.1.0-preview.3

Visuals

No response

SteveL-MSFT avatar Apr 28 '25 18:04 SteveL-MSFT

Let me know when/if you start working on this @SteveL-MSFT as I might try to tackle it if I get some free time since it would make the demo usable.

andyleejordan avatar May 23 '25 22:05 andyleejordan