A platform team will use Microsoft DSC v3 for Linux application servers. Host policy prohibits installing PowerShell. The team is evaluating new Rust executables and adapted PowerShell class resources.
For self-contained resources, the strategy must publish invocation details and configurable properties using DSC v3's resource definition mechanism. Desired state must be supplied in a DSC v3 configuration document.
Which resource and configuration-document strategy meets these requirements?
Microsoft DSC v3 can manage Rust resources without installing PowerShell. Resource manifests describe how self-contained resources are invoked and which properties they manage. YAML supplies a supported format for the desired-state configuration document.
- Not correct: Use Rust resources with MOF schemas and YAML configuration documents. The source specifies JSON or YAML schemas for new resources and resource manifests for self-contained resources. MOF schemas do not provide the required DSC v3 resource definition.
- Not correct: Use Rust resources with resource manifests and PowerShell configuration scripts. The Rust resource strategy meets the runtime restriction, but the source specifies JSON or YAML files for DSC configuration documents rather than PowerShell script files.
- Not correct: Use PowerShell class resources with an adapter and YAML configuration documents. The source explains that the PowerShell adapter invokes PowerShell class resources in PowerShell. That resource strategy conflicts with the host policy.
- Correct: Use Rust resources with resource manifests and YAML configuration documents. The source supports Rust resources without PowerShell, manifests describing self-contained resources, and YAML configuration documents. This combination meets all three requirements.
- Microsoft Desired State Configuration overview - PowerShellMicrosoft Learn