Skip to content

New article on command-based DSC resource for Microsoft DSC v3#237

Merged
johlju merged 4 commits intodsccommunity:masterfrom
Gijsreyn:dsc-class-based-article
Jul 29, 2025
Merged

New article on command-based DSC resource for Microsoft DSC v3#237
johlju merged 4 commits intodsccommunity:masterfrom
Gijsreyn:dsc-class-based-article

Conversation

@Gijsreyn
Copy link
Contributor

@Gijsreyn Gijsreyn commented Jul 28, 2025

New article to develop a class-based DSC resource by @johlju and me. Also included the hugo-admonitions to show callouts.


This change is Reviewable

@Gijsreyn
Copy link
Contributor Author

@gaelcolas or @johlju, got time for a review :)?

Copyright = '(c) developer. All rights reserved.'
PowerShellVersion = '5.1'
FunctionsToExport = '*'
CmdletsToExport = '*'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth mentioning this problem with Azure dsccommunity/SqlServerDsc#2110?

Suggested change
CmdletsToExport = '*'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I totally forgot to reply to this comment. Perhaps it was 🤔

@johlju
Copy link
Member

johlju commented Jul 29, 2025

Ready to merge when you say go 🙂

@Gijsreyn
Copy link
Contributor Author

Ready to go buddy!

@johlju johlju merged commit e3613b3 into dsccommunity:master Jul 29, 2025
1 check passed
@johlju
Copy link
Member

johlju commented Jul 29, 2025

Heres hoping the pipeline works, it is not used often :D

@johlju
Copy link
Member

johlju commented Jul 29, 2025

Live now: https://dsccommunity.org/blog/your-first-class-based-microsoft-dsc-v3-resource/

But seems the themes/hugo-admonitions did not work, maybe it is not supported in GitHub Pages. 🤔

@Gijsreyn
Copy link
Contributor Author

Gijsreyn commented Jul 29, 2025

Mhm.. that's strange. The other theme works so why not this one 🤔

Want to revert the change?

@Gijsreyn
Copy link
Contributor Author

Can you perhaps check the version uses in the pipeline? See important note on: https://github.com/KKKZOZ/hugo-admonitions

@johlju
Copy link
Member

johlju commented Jul 29, 2025


Task         : PowerShell
Description  : Run a PowerShell script on Linux, macOS, or Windows
Version      : 2.259.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
==============================================================================
Generating script.
========================== Starting Command Output ===========================
"C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a\_temp\dba52887-141a-4487-8cba-b737118a0430.ps1'"
INFO  static: syncing static files to \ duration 59.4246ms
Start building sites … 
INFO  build:  step process substep collect files 99 files_total 99 pages_total 99 resources_total 0 duration 124.005ms
INFO  build:  step process duration 124.005ms
hugo v0.148.2-40c3d8233d4b123eff74725e5766fc6272f0a84d windows/amd64 BuildDate=2025-07-27T12:43:24Z VendorInfo=gohugoio

INFO  build:  step assemble duration 5.9384ms
WARN  Google Analytics 4 (GA4) replaced Google Universal Analytics (UA) effective 1 July 2023. See https://support.google.com/analytics/answer/11583528. Create a GA4 property and data stream, then replace the Google Analytics ID in your site configuration with the new value.
INFO  build:  step render substep pages site en outputFormat html duration 2.7687539s
INFO  build:  step render substep pages site en outputFormat rss duration 108.1794ms

INFO  build:  step render pages 118 content 107 duration 2.8774961s
INFO  build:  step render deferred count 0 duration 0s
INFO  build:  step postProcess duration 0s
INFO  build:  duration 3.0079518s
                  │ EN  
──────────────────┼─────
 Pages            │ 117 
 Paginator pages  │   0 
 Non-page files   │   0 
 Static files     │  77 
 Processed images │   0 
 Aliases          │   0 
 Cleaned          │   0 

Total in 3037 ms
Finishing: Build Hugo Site

https://dev.azure.com/dsccommunity/dsccommunity.org/_build/results?buildId=10907&view=logs&j=12f1170f-54f2-53f3-20dd-22fc7dff55f9&t=036ed663-514a-59f3-0c88-23d2cf182147

@johlju
Copy link
Member

johlju commented Jul 29, 2025

Looks like it used the expected 0.148.2.

@Gijsreyn Gijsreyn deleted the dsc-class-based-article branch July 29, 2025 14:38
@johlju
Copy link
Member

johlju commented Jul 29, 2025

Hmm. You added it as a git subproject, maybe the Azure Pipelines checkout task does not checkout the subprojects by default.

@johlju
Copy link
Member

johlju commented Jul 29, 2025

Now the theme works on the site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments