-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Labels
Issue-EnhancementThe issue is a feature or ideaThe issue is a feature or idea
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Summary
If multiple resource instances of the same type have the same name an error is thrown. This is to be expected but the error message should be more clear specifying the resource type.
- Duplicate resource instance names are ALLOWED with different resource types.
- Duplicate resource instance names are NOT ALLOWED with SAME resource types.
Steps to reproduce
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
resources:
- type: Microsoft.DSC.Debug/Echo
name: test
properties:
output: it works
- type: Microsoft/OSInfo
name: test
- type: Microsoft/OSInfo
name: testExpected behavior
ERROR Validation: Resource named 'test' for type 'Microsoft/OSInfo' is specified more than once in the configurationActual behavior
ERROR Validation: Resource named 'test' is specified more than once in the configurationError details
ERROR Validation: Resource named 'test' is specified more than once in the configurationEnvironment data
7.5Version
3.2.-preview3
Visuals
No response
Metadata
Metadata
Assignees
Labels
Issue-EnhancementThe issue is a feature or ideaThe issue is a feature or idea