Skip to content

Have metadata in config to have dsc engine ignore missing resources #1170

@SteveL-MSFT

Description

@SteveL-MSFT

Summary of the new feature / enhancement

Some resources may be installed at runtime via a package manager resource. Currently, DSC engine before spawning resources will attempt to discover all used resources. If any one is missing, the config operation fails before any resources are called.

Proposed technical implementation details (optional)

Have new metadata to declare to DSC engine to ignore missing resources:

metadata:
  Microsoft.DSC:
    missingResources: ignore
resources:
- name: Install Foo
  type: Microsoft.WinGet/Package
  properties:
    id: foo
- name: Use Foo
  type: Foo/bar
  properties:
    hello: world

missingResources would accept ignore, warn, error where if not specified defaults to error. warn emits a warning message, but proceeds.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions