DSC v3 Alpha Community Call — Release Notes & Nx Tools Update

22:256 speakers
22:08
duration
12
chapters
6
speakers
10
Highlights
DSC v3export featuredepends_onNx Toolsalpha releaseschema updatesDSC for Linux deprecation

Speakers

6
Speaker A18%18 turns
Speaker B22%3 turns
Speaker C29%12 turns
Speaker D13%6 turns
Speaker E1%1 turn
Speaker F17%5 turns

Key ideas

8
  • DSC v3 Alpha 2 released with several notable features and improvements.
  • depends_on is now a first-class configuration document construct rather than a per-resource property.
  • A new export operation was added to DSC (Get/Set/Test/Export) to capture resource instances into configuration documents.
  • --all flag added to DSC resource get to return all instances of a resource type.
  • Export currently requires command-line-based resources; PowerShell class-based export support is not yet implemented.

Key highlights

10
  • depends_on moved into configuration document metadata (works as intended now).
  • New export verb for DSC allows exporting all instances or single resource types into configuration documents.
  • --all flag for DSC resource get improves local inspection and integration tool performance.
  • Ctrl+C now cancels running DSC run.
  • DSC resource path can be customized via DSC_RESOURCE_PATH environment variable.

Decisions

3
  • Do not accept GitHub pull requests during the alpha period to avoid slowing core development; encourage issues instead.
  • Use community calls as office hours to help users troubleshoot DSC v3 adoption and integration issues.
  • Announce end-of-support for older DSC for Linux and encourage migration assistance to Machine Configuration or DSC v3 paths.

Action items

5
  • Open issues on the public GitHub repo for designs, feature requests, or bugs to provide early feedback during alpha.
  • Try DSC v3 Alpha export and --all features on sample servers (for example, web server configs) and report findings via GitHub issues.
  • Ensure you're running the latest Nx Tools module from the PowerShell Gallery and review the recent PR around NxService.
  • Jodie: stop the meeting recording (requested at end of call)Jodie
  • Mikey: target an Alpha 3 release toward the end of the month (announce and gather testing).Mikey

Terms

9
DSC v3 / DSC v3 Alpha — The next major iteration (alpha stage) of Desired State Configuration tooling with experimental features and breaking changes expected.
depends_on — A configuration-level declaration that expresses dependencies between configuration instances (now part of the configuration document metadata).
export (DSC verb) — A new operation that captures existing resource instances into a configuration document to replicate or baseline existing state.
--all flag — A DSC resource get flag to return every instance of a particular resource type.
command-based resource — A DSC resource implemented as an external command-line program or script that communicates with DSC via JSON.

Main content

12 chapters · 22:08
0:00

1. Welcome and Meeting Handover

Speaker A0:00

Fantastic. Hey, so thanks everyone for coming along. I'm going to basically defer straight over to Mikey for an update on the DSE Alpha, and we can go from— and then head over to Jody and see what's going on there with the NxTools.

So yeah, Mikey, handing it over to you, mate.

0:22

2. DSC v3 Alpha Release and Key Features

Speaker B0:22

Yeah, so the engineering team, Steve included, put out a new release of the DSC v3 alpha. Alpha 2 dropped on the 5th, and I'm putting the changelog into chat now. It's got all of the details for everything that went on, but probably the three biggest things that folks will care about and want to keep in mind going forward is the team implemented the depends_on functionality for the configuration documents, which means it's not just a property anymore; it's actually a thing that works, which is good. It's no longer a thing that you specify as a property of a resource instance itself. It's not defined that way; it's defined in the configuration document alongside the rest of the metadata for that instance. So that's a neat change, and I'm glad that that got in.

The second thing, and Steve may want to speak to this a little bit more, is there's a new— I guess verb would be the way to think about it— for DSCB3, which is export. So you can define a configuration that has empty instances of particular resources and say, "I want all of the instances of that resource." I want to make a config that includes all of those instances for each of these resources I've listed and output a new configuration document that captures their current state.

A good example of when you might do this is you're looking at an existing web server. You said, "This one I know is good." I want to capture all the stuff that we have around our web configs in here, the app pools, all that stuff, and I just want to turn that into a configuration document. Maybe I want to replicate it somewhere. Maybe I want to use that as the baseline for how we're going to go forward intentionally configuring this now that we know we've got something working. But you can do that. You can also do single resource exports, which have the same effect but for a single resource type instead of a collection.

Speaker C2:46

No, that's right. The one thing I want to call out, just to be clear, we have get, set, test, and now export is an additional operation you do. It does require the resource to implement this, and what we don't have yet is support for PowerShell classes. That is in the queue.

So right now, if you want to participate, your resource has to be a command-line-based resource. Now, with that said, technically you could write a PowerShell script that supports export, and you can do it as a class, whatever. It just isn't the normal DCV to model as long as you can craft the command line.

If you look at some of our tests that we have checked into the repo, that's how we do some of our testing, is that we have some test resources written in PowerShell script that are not script-based resources and they're not class-based resources. They're literally just PowerShell scripts that are inside the manifest.

By the way, I'm not saying this is the best practice. I'm just saying that's an easy way for us to have a test resource that we can use to validate some of this stuff. Hopefully, over time, we'll have more resources that support export.

Then now you could hypothetically configure a server, and as long as there's resources behind all the configuration, you can just say, give me everything because I've manually crafted this the way I want it to be. I want to take that configuration out of this one; I'm going to apply it to thousands of other systems. That's the goal that we want to get to.

Speaker B4:06

Alongside that, because under the hood the implementation is more or less the same, there's now a --all flag for DSC resource get, so you can return every instance of a particular resource type. This is good for two things. The first is just when you're looking at a server locally and you just—I want to see what the settings are for picking a random example, like your SQL databases, what databases are actually configured and how.

Then the other thing that that is good for is integrating tools can make intelligent decisions. There are some resources that have to be implemented so that they hit an API and then they filter the responses to give you the instance you care about. For those, it can be more performant to get that whole list of all the instances right up front and then just pick the one that it's interacting with for test or set later. So integrating tools can make those intelligent decisions going forward too.

Other things, probably less important but worth knowing, you can now Ctrl+C DSC run and it'll respond to that and cancel itself. So that's good.

And then you can now specify an alternate path to look for command-based DSC resources with the DSC resource path environment variable. That's good.

And then there were some updates to the schemas so that when you're authoring in VS Code, you'll get improved IntelliSense validation. And shortly they'll link directly to the live docs as soon as I finish that PR and get that up. But those changes are independent of the DSC pieces. You don't have to wait for another release to take advantage of updated schemas.

Speaker C6:11

Actually, that brings up a good point to set expectations. During the alpha phase, this is specifically before— beta will come when we're feature complete and things are more grounded, and we won't have as many breaking changes.

But during alpha, you should just expect that we're going to have breaking changes based on feedback. Feedback from partners, feedback from ourselves, feedback from customers.

Especially going back to schema, there are going to be some schema changes coming in the next alpha because we've learned from things and say, oh, this is actually a better way of doing it versus like, you know, hypothetically we thought this was good, but in practice, actually, we started using the stuff like didn't work out as well as we thought.

So just expect that, and you know, that's just part of participating in the alpha.

6:53

3. Community Feedback and How to Contribute

Speaker A6:53

Are you guys looking for early feedback from the community on this stuff?

Speaker C6:58

Oh, absolutely. That's why we made it public.

Speaker A7:01

Excellent. So where, where is anyone if people want to go and have a look at it? Where, what's the best place to go and have a look and then get started? And is it Mikey's docs?

Speaker C7:11

It's going to be the GitHub repo. I'm not sure if Mike is going to beat me to posting a link. I'll just type it up.

Speaker A7:25

GitHub PowerShell DSC?

Speaker C7:27

Yeah, so we're not taking pull requests at this time simply because if we started doing that, it's gonna slow down the actual development work.

But we do encourage people to open up issues. Feel free to open up stuff on bugs, but I think more important than bugs, because we know it's buggy right now, is really like designs and features and stuff like that, right?

Like if things don't make sense to you, it makes more—it's better for us to hear that early so we can make adjustments versus when we have like thousands of lines of code behind it. Now making changes is hard, or if we have partners depending on that behavior, you know, stuff like that.

So early feedback definitely encouraged.

8:04

4. PowerShell Resource Support and Export Workarounds

Speaker A8:04

Yeah, gotcha. And for the— because you mentioned some of the resources or the support for different resource languages, like class-based, PowerShell class-based is not there, is that right?

Speaker C8:17

No, no, I want to be clear. Right now, with the alpha, you can use script-based resources or PowerShell class-based resources. What I was saying is the new export capability, which is completely new to DSC, that it doesn't support PowerShell classes. Like, there's no way directly in a PowerShell class to say Get-Set-Test and export.

Speaker A8:37

Gotcha, understood. No, gotcha.

Speaker C8:40

The workaround is to have a PS1 script. Again, I'm not encouraging it. We have to think through whether we think this is a best practice or not, but you could have a PS1 script defined in a resource manifest and attach that to export.

If you want to play with it today and you already have a class-based resource, you can still have that for Get, Set, and Test. How's this going to work? Let me think. Then for export, you'd have to have a separate resource because the way PowerShell works is it goes through a PowerShell group resource. We will eventually add it directly.

Mikey, you're unmuted. I see your mouth moving.

Speaker B9:18

I was just gonna say it might be interesting to put together a PowerShell resource exporter group resource temporarily, and that would work for all the resources that haven't—that don't upgrade to the new model, where they define export in and of themselves.

Speaker C9:42

Although those are hard to discover. Real quick. When we eventually do add export capability for PowerShell classes, we're probably not going to do it for script-based resources. Partly because the whole MOF thing is still there for script-based resources and for class-based, the classes schema.

But that will require a new PSDesireStateConfiguration module version, which is going to be our new and improved v3, which replaces the old v3. I have no timeframe when that's going to happen. Basically, we have the same resources doing DSC v3; also does PSDSC, so.

10:20

5. Office hours idea and community Q&A

Speaker A10:20

Gotcha. Is there any questions on the chat?

Anyone have any questions for the guys while we're on? If you do, feel free to come off mute, or does anyone want to see if there's anything in the chat?

Speaker C10:40

And by the way, you know, one of the—like, we have a bunch of Microsoft folks on the call here. Like, one of the things we discussed is going for future DC community calls. As you guys are playing with the V3 stuff, we can use this time also to help if you're hitting problems. We can talk through that.

Kind of treat it like office hours, if you will. It's a term that we use at Microsoft. So we're available during this time to kind of troubleshoot challenges you're having for either configuration side, resource side, or integration side.

Speaker D11:12

We're still early in the call, so you could even try it out now, and by the end, probably have questions.

Speaker A11:18

What a great idea.

Speaker D11:19

Yeah.

Speaker A11:22

No, that would be fantastic. I think that's a great idea. Yeah, we'll see if we can wrangle some people who are building with it and get them to come and ask some questions about what they're running into.

Speaker C11:35

Feel the question that I see in chat.

Speaker D11:39

Yeah, great question. We're actively looking at what this integration is going to look like, and I'm hopeful that in one of the next few calls, we'll have something that we can share with all of you.

I think that we'll also be able to use any feedback that's made to the existing repo to help, you know, better integrate with Machine Config. So, you know, as you are either giving feedback on the project through opening an issue or a bug or anything like that, and you have something that, you know, you want to be able to use specifically with Machine Config 2, now's a really great time to bring that up as well.

Even if it's just something that, you know, you don't like the way that it works today in Machine Config and you want to see it be better, you know, reflected or represented in DSC v3, now's a great time to bring that up.

I guess that's a long way to say that we're working on it.

Speaker C12:38

Yeah, nothing done as yet.

Speaker A12:41

Fantastic. Well, anything—Steve and Mikey, anything else you'd like to add there? Otherwise, should we go over to Jody and get some updates from the next tools?

12:52

6. DSC v3 Alpha 3 and command-based resource changes

Speaker C12:52

I guess one thing I'll add is I am trying to target an Alpha 3, probably towards the end of this month. The main new thing that's coming out that I'm actually kind of interested in having people try—so the way it works today with command-based resources is that the DSC executable is going to pass JSON to the command, and then it's going to do its work, and then it's going to output JSON.

One of the things that we've been hypothesizing is maybe we can make it even easier for people to participate in certain languages where we could actually parse the incoming JSON, and this will be limited. There are some limits to this. You won't be able to have nested objects, but if you have a flat format like name-value pairs, we could actually pass those as environmental variables to the resource.

So they don't have to worry about parsing a whole bunch of stuff. You still have to emit JSON, but that's really just a string, right? So you can just format it. You don't need to have a JSON parser for that. So that'd be kind of interesting to see if people can build some resources around that, kind of make things go a little bit faster for, like, especially for non-Windows scenarios, like writing them in Bash or something like that.

Speaker A14:06

Cool. So, all right, well, let's go over to Jodie.

14:12

7. Nx Tools updates and team introductions

Speaker D14:12

Hey, Daniel, awesome. So thanks. I was just responding to a couple of things in the thread, um, and I am also just throwing out a quick welcome to Matemwa, who's driving the feature that Raymond put in the chat too.

So I think this is actually Matemwa's first community call too. So folks might see him around a little bit more. But yeah, so I guess the only things that we kind of wanted to cover on our side was, I think that— oh, hey, Mutemwa, I see you came off camera. You can provide a quick intro if you want to.

Speaker E14:44

Hi everyone, my name is Mutemwa. I recently just joined the team. I'm excited to be here. It's always nice working with all the Michaels that we have, and Jordi and Steve. So excited to be here.

Speaker D15:02

Awesome. Thanks, Adama.

Speaker A15:03

Welcome.

Speaker D15:06

Yeah, so I think the main updates that are going to be most helpful for this audience are we have, I think since our last community call, at least 2 versions of Nx Tools that have been published to the PowerShell Gallery, mainly focusing on getting out Nx Script, as well as some quality improvements to NxPackage, as well as finalizing some of the behavior around NxService.

So I think what I would say is make sure you're running the latest version of the module as available in the PowerShell Gallery and take a look at our most recent PR around NxService if that's something that you're interested in. I think we're one task away from getting that PR merged in the repo.

And, you know, if you have any other feedback on resources you'd like to see or behaviors that are not working as expected, you know, as always, a great time to file those directly in the repo.

Yeah, so main updates on our side, but also happy to answer any questions or issues that people have been running into.

Yeah, so we can kind of make this a general discussion if there's anything top of mind for anyone on DSC or machine config.

Speaker A16:19

Anyone tried the latest updates to the NX Tools and wants some help? They can post straight in here.

16:37

8. DSC for Linux deprecation and migration guidance

Speaker A16:37

And I see Michael's on, joined as well on the chat. Any updates from your side, Michael?

Speaker F16:43

Yeah, I was gonna make sure everybody knows. I'll put the chat, the link in the chat. Never mind the date in the link itself; go by the date in the actual blog post.

But the original DSC version 1 for Linux, which is github.com, I think it's Microsoft DSC for Linux. I have to double check on that. We announced a year ago that we were planning to end support at the end of this month. That doesn't impact the Windows DSC extension, and it does not impact Windows servers in Azure Automation DSC. It only impacts the DSC extension for Linux VMs, which we never introduced for Arc, and support for DSC for Linux in the Azure Automation service.

So anybody who still has a requirement for this, please reach out to me, and either we'll work with you to make sure that, you know, your requirements are met by the Machine Configuration Service. That's, for example, why we brought the XScript resource forward to NxTools to make it easier to migrate. Or if you feel like you're hung up for any other reason, please just let me know.

And just to be clear, there's no technical impact to either of these. So technically, if you want to register a machine into Azure Automation or use the latest version of the DSC extension, there's nothing that will prevent you from doing it. This is just about the support statement and helping everybody move to machine configuration and then clearly eventually to DSC v3 when we get there.

If anybody used the old Linux DSC, you already know it was very feature limited compared to what's available for Windows. It was, you know, most of the resources were written in C, not even C++ or C#, but the actual old C language. And so for that reason, most people used XScript and wrapped Python.

So anyway, I don't know if I'm reaching the audience or not, but I just wanted to reach out to as many people as possible to make sure that number one, everybody has heard, and number two, if we need to make any adjustments either technically or in dates, that we are making sure we're doing our best to keep people happy.

So that's it. Thanks for the time.

19:19

9. Repository and Usage Discussion

Speaker A19:19

Awesome to know. Thanks, Michael. That's fantastic.

No, have you dropped a link in the chat for that post?

Speaker F19:28

Yeah, the blog post is there. Let me also get the GitHub repo.

Speaker A19:39

Do you have much visibility on how widely used that was?

Speaker F19:44

I do, and I can tell you that from what I can tell, it's not widely used. But you never know, people could be using it offline. There's a bunch of scenarios, so I try to not make assumptions.

It's— I'll just say that it's old enough. It's well before telemetry evolved to being informative to helping with these kinds of decisions. So.

Speaker A20:16

Understood. Cool.

20:16

10. DSC v3: Call for Issues and Updates

Speaker A20:16

Anyone else? Any other updates on your side, Michael?

Speaker F20:24

No, I don't think so. I would just echo what Steve was saying.

We're very much looking for people to submit issues for DSC v3. It's, it's a, it's obviously something we're super passionate about, and we think we're adding the right features that people have been asking for for quite some time.

So we're pretty excited about that.

20:44

11. Proposed Office Hours and Community Support

Speaker A20:44

Well, it sounds like it'd be a great idea to use some of this time as office hours and help the community come in and, you know, share what they've been working on, but also share any challenges that they might have.

Does that sound like a, you know, is there any objections to doing that, or does it sound like a fair use of this time? Sounds awesome to me, but hey.

Speaker F21:13

Yeah, sounds great to me as well.

Speaker A21:16

Awesome. Well, what we'll do is I'll chat with Gail and Johan, and we'll maybe make an update and do some sort of an announcement on Discord, Slack, and say, this is what we're thinking. Bring your challenges along, bring what you're working on, and share that with the team so that we can get the support you need for your CV3 to get that out the door with you guys. That'd be fantastic.

21:46

12. Meeting Close and Recording

Speaker A21:46

Well, anyone else got anything they'd like to share? Any questions for the team? Comments? Asks? Otherwise, it sounds like everyone wants some time back.

Cool. Hey, thank you. Thank you, everyone, for coming along. Thanks. Thanks to the DSD team and all the various teams for coming along and sharing the time.

Jodie, if you wouldn't mind stopping the recording, I'll ping you offline and get the recording to upload. It's been fantastic. Thank you. Thank you all for sharing.