And now, even more fun…

Today I started working in earnest with the Azure Bot service. Documentation looks solid and there’s tons of it. Lots of examples, too.

Here are a few of the links I’ve used tonight. . .

Big change of direction…

Over the past two weeks I’ve been doing a lot more AKS studies, which included this excellent MS Learn content. It walks you through creating an well-featured AKS cluster, soup to nuts. You owe it to yourself to take a look.

But I’ve also been doing a lot of studying of the Microsoft Power Platform, specifically Power Apps, Power Automate, and Power Virtual Agents. No code, low code environment, which sounds nice and easy, but the learning curve has been larger than I expected. I recently found a bunch of YouTube videos that I’m working my way through.

Anyway, that’s been taking up a lot of my time. Soooooo, I decided to shift gears regarding this AKS project.

Miniblog is a nice engine, but all my content is currently at jimblizzard.wordpress.com. I didn’t want to have to try to migrate all my old posts into Miniblog, so I used the WordPress bitnami image and threw it into an AKS cluster, and pointed my old domain name snowstormlife.com at it. I then exported all my wordpress content from wordpress.com and imported it into snowstormlife.com. Worked like a charm. These instructions gave me a great head start. And I pointed Open Live Writer to it so I can compose from my laptop. Easy peasy.

I still need to . . .

  • [] add a cert to snowstormlife.com
  • [] create a post about my adventures in converting Miniblog into docker-able source code and putting it into an AKS cluster
  • [] create a post about creating the Azure DevOps pipeline from the Azure DevOps Service in the Azure portal – 5 minutes and done. Maybe a video would be better, since writing all the stuff down would take a lot longer.
  • [] and a few other odds and ends.

So, head on over to SnowstormLife.com and enjoy. . .

Snippets in VS Code

I just discovered how to create snippets for VS Code. All this time I’ve been living without them. Why didn’t I look into this before? I don’t know.

To create / edit snippets, in VS Code, press Ctrl+Shift+p then type “snip”

To edit your snippets, select Preferences: Configure User Snippets, then select the snippets file or create snippets

In WSL Ubuntu, my c# snippet config file is located here: /home/jim/csharp.json

Here’s an example of a couple that I created:

{

    // Place your snippets for csharp here. Each snippet is defined under a snippet name and has a prefix, body and 

    // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:

    // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the 

    // same ids are connected.

    // Example:

    // “Print to console”: {

    //  “prefix”: “log”,

    //  “body”: [

    //      “console.log(‘$1’);”,

    //      “$2”

    //  ],

    //  “description”: “Log output to console”

    // }

    “Property”: {

        “prefix”“prop”,

        “body”: [

            “public ${1:type} ${2:MyProperty} {get; set;}”

        ],

        “description”“Create a property with ‘private type varName {get;set;}'”

    }

    “PropertyFull”: {

        “prefix”“propfull”,

        “body”: [

            “private ${1:type} ${2:myVar};”,

            “”,

            “public $1 ${3:MyProperty}”,

            “{“,

            ”   get { return $2; }”,

            ”   set { $2 = value; }”,

            “}”

        ],

        “description”“Full property with private backing”

    }

}

After you save the file, in the VS Code editor for your C# project, simply type the snippet prefix, such as “prop” or “propfull” then press tab and fill in the values

 

Snippets are such handy things…..

 

There are a bunch of topic-specific config files available for use, too. For more info, see: https://code.visualstudio.com/docs/editor/userdefinedsnippets

 

Enjoy!

 

And don’t forget to wash your hands.

 

.

 

I created a list of interesting links for Azure DevOps pipelines, GitHub repos…

There are a ton of DevOps best practices regarding people, process and tooling. Blog posts, books, videos, etc. DevOps is all about a transformative journey. It’s not just about CI/CD.

Even so, over the weekend I pulled together a list of best practices for Azure DevOps pipelines and GitHub repos. Some of it is overview info, some links contain hands on walkthroughs. You might notice there’s a bit of a Kubernetes flavor sprinkled around. That’s because I’ve been spending some time coming up to speed. There’s a lot to learn in that space. Anyway, here’s what I have so far:

I’ve created a gist over on GitHub. I’ll post new items over there as I find them. . .