-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Labels
Issue-EnhancementThe issue is a feature or ideaThe issue is a feature or idea
Milestone
Description
Summary of the new feature / enhancement
As a user, I want to be able to simply allow certain resource instances to be skipped based on the metadata securityContext. With the condition implemented now, it would be neat if it could check the securityContext directly without the need to introduce a parameter.
Proposed technical implementation details (optional)
Something like:
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
metadata:
Microsoft.DSC:
securityContext: elevated
resources:
- name: test
type: Microsoft.DSC.Debug/Echo
condition: "[equals([metadata('Microsoft.DSC').securityContext], True)]"
properties:
output: "This should only run if the user is elevated or root"
whindsaks
Metadata
Metadata
Assignees
Labels
Issue-EnhancementThe issue is a feature or ideaThe issue is a feature or idea
Type
Projects
Status
Todo