Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pending reboot should have embedded schema for assertions #485

Closed
Gijsreyn opened this issue Jul 10, 2024 · 0 comments · Fixed by #488
Closed

Pending reboot should have embedded schema for assertions #485

Gijsreyn opened this issue Jul 10, 2024 · 0 comments · Fixed by #488
Assignees
Labels
Issue-Enhancement The issue is a feature or idea Needs Triage
Milestone

Comments

@Gijsreyn
Copy link
Contributor

Gijsreyn commented Jul 10, 2024

Summary of the new feature / enhancement

When working on DSC's material, I was exploring assertions in more depth. After adding the Microsoft.Windows/RebootPending configuration, I was hit with the following error:

image

I couldn't find anything directly in the docs about why this was, but after fiddling in the following schema into the JSON resource manifest:

"schema": {
      "command": {
        "executable": "powershell",
        "args": [
          "-NoLogo",
          "-NonInteractive",
          "-NoProfile",
          "-Command",
          "reboot_pending.resource.ps1"
        ]
      }
    }

It returned the reboot pending state. I know the resource is old and might not be shipped in the next releases. However, if you want I can create the pull request, or just keep it in the book "as is".

Proposed technical implementation details (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement The issue is a feature or idea Needs Triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants