<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>2022-06 on Funky Si's Test</title><link>https://blog-test.funkysi1701.com/2022/06/</link><description>Recent content in 2022-06 on Funky Si's Test</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><managingEditor>funkysi1701@gmail.com (Simon Foster)</managingEditor><webMaster>funkysi1701@gmail.com (Simon Foster)</webMaster><lastBuildDate>Sun, 19 Jun 2022 18:00:45 +0000</lastBuildDate><atom:link href="https://blog-test.funkysi1701.com/2022/06/index.xml" rel="self" type="application/rss+xml"/><item><title>Diagrams with Mermaid</title><link>https://blog-test.funkysi1701.com/posts/2022/diagrams-with-mermaid/</link><author>funkysi1701@gmail.com (funkysi1701)</author><pubDate>Sun, 19 Jun 2022 18:00:45 +0000</pubDate><guid>https://blog-test.funkysi1701.com/posts/2022/diagrams-with-mermaid/</guid><category term="GitHub">GitHub</category><category term="mermaid">mermaid</category><category term="documentation">documentation</category><media:content medium="image" type="image/png" url="https://blog-test.funkysi1701.com/images/mermaid2.png"/><description>&lt;p&gt;I have been wanting to produce a diagram of the architecture of my side project for some time, but I have put it off as never sure what the correct tools is for this job.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://mermaid.js.org/" target="_blank" rel="noopener noreferrer"&gt;Mermaid&lt;/a&gt;
is a tool that lets you create diagrams from code and text. I first came across this tool about a year ago for use in a project. I had forgotten about this tool until the other day, when I was thinking about this problem again.&lt;/p&gt;
&lt;p&gt;Is it possible to embed a mermaid diagram in the markdown used in a github repo? Well the answer is yes, so lets look at how that works.&lt;/p&gt;
&lt;p&gt;A simple mermaid diagram looks like this:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;graph TD;
A[fff]---&amp;gt;B;
A---&amp;gt;C;
B---&amp;gt;D;
C---&amp;gt;D;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;which renders like this:&lt;/p&gt;
&lt;p&gt;
&lt;img class="img-fluid" alt="Mermaid" src="https://blog-test.funkysi1701.com/images/mermaid.png" loading="lazy"
width="630" height="912"
/&gt;
&lt;/p&gt;
&lt;p&gt;Lets look at what it is doing.&lt;/p&gt;
&lt;p&gt;TD means the chart is top down.&lt;/p&gt;
&lt;p&gt;A is the name of a node in the chart, [fff] is a label being applied to it.&lt;/p&gt;
&lt;p&gt;Then we just define the relationships between the different nodes, you can have &amp;lt;&amp;mdash;, &amp;mdash;&amp;gt; or &amp;mdash;, or even&lt;br/&gt; &amp;lt;&amp;mdash;&amp;gt;&lt;/p&gt;
&lt;p&gt;Lets look at my architecture. I have a database (cosmosDB), I have a website running on Azure Static Web Apps, I have some Azure functions for getting data into and out of my database. I also have Application Insights monitoring the whole thing. I also have a console app for doing some data import stuff. This produces a diagram like this:&lt;/p&gt;
&lt;p&gt;
&lt;img class="img-fluid" alt="Mermaid" src="https://blog-test.funkysi1701.com/images/mermaid2.png" loading="lazy"
width="409" height="445"
/&gt;
&lt;/p&gt;
&lt;p&gt;The code to produce this and display it on my &lt;a href="https://github.com/funkysi1701/Blogv2/" target="_blank" rel="noopener noreferrer"&gt;github repo&lt;/a&gt;
is simply&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;```mermaid
graph TD
A[Azure Static Web App]---B[Http Fn]
B---D[Database]
C[Timer Fn]---D
D---E[Import Console App]
F[App Insights]---A
F---B
F---C
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Pretty nice for a few lines of code to show what system talks with what.&lt;/p&gt;
&lt;p&gt;There are improvements that can be made to the diagram, for example changing the shapes of the different services.&lt;/p&gt;
&lt;p&gt;eg
&lt;img class="img-fluid" alt="Mermaid" src="https://blog-test.funkysi1701.com/images/mermaid3.png" loading="lazy"
width="1034" height="253"
/&gt;
&lt;/p&gt;
&lt;p&gt;If you live in the AzureDevOps world you can add a mermaid diagram to your wiki pages (but I don&amp;rsquo;t think to your markdown files). Just use the following syntax&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;::: mermaid
sequenceDiagram
Alice-&amp;gt;&amp;gt;John: Hello John, how are you?
John--&amp;gt;&amp;gt;Alice: Great!
Alice-)John: See you later!
:::
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For more info see the docs &lt;a href="https://docs.microsoft.com/en-us/azure/devops/project/wiki/wiki-markdown-guidance?view=azure-devops" target="_blank" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;What diagrams are you going to build?&lt;/p&gt;</description></item><item><title>Scottish Summit 2022</title><link>https://blog-test.funkysi1701.com/posts/2022/scottishsummit/</link><author>funkysi1701@gmail.com (funkysi1701)</author><pubDate>Tue, 14 Jun 2022 18:00:45 +0000</pubDate><guid>https://blog-test.funkysi1701.com/posts/2022/scottishsummit/</guid><category term="Conference">Conference</category><category term="Microsoft">Microsoft</category><category term="Community">Community</category><media:content medium="image" type="image/jpeg" url="https://blog-test.funkysi1701.com/images/scottishsummit.jpg"/><description>&lt;p&gt;On the 10th and 11th June 2022 &lt;a href="https://scottishsummit.com/" target="_blank" rel="noopener noreferrer"&gt;Scottish Summit 2022&lt;/a&gt;
happened and I was there. It was an awesome event and I will attempt to summarise what happened.&lt;/p&gt;
&lt;h2 id="thursday-9th"&gt;Thursday 9th&lt;a class="anchor ms-1" href="#thursday-9th" aria-label="Permalink: Thursday 9th"&gt;&lt;i class="fas fa-link" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;On Thursday 9th I travelled down on the train full of excitement about the event. Once I got to the hotel, I was immediately greeted by &lt;a href="https://twitter.com/OfficialCookJ" target="_blank" rel="noopener noreferrer"&gt;James Cook&lt;/a&gt;
, I was obviously in the right place, this weekend is going to be good.&lt;/p&gt;
&lt;h2 id="friday-10th"&gt;Friday 10th&lt;a class="anchor ms-1" href="#friday-10th" aria-label="Permalink: Friday 10th"&gt;&lt;i class="fas fa-link" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The hotel was less then 5 mins walk to the conference, which was being held at the Technology and Innovation Centre, University of Strathclyde. Registration was simple wave your tickets (which were free, apart from a contribution to charity), and you get your badge and a wrist band. (Pink for people contact, blue for hold back) I then got chatting to &lt;a href="https://twitter.com/MrKeithAtherton" target="_blank" rel="noopener noreferrer"&gt;Keith Atherton&lt;/a&gt;
, who amazingly lived in part of the world where I grew up. (Amazing what you learn at conferences!)&lt;/p&gt;
&lt;img src="https://blog-test.funkysi1701.com/images/scottishsummit.jpg" style="float: left; margin-right: 1rem; margin-bottom: 0.5rem;" alt="Scottish Summit conference during the keynote, with bagpipers and attendees in the venue" /&gt;
&lt;p&gt;Time for the Keynote talk. Which of course because we are in scotland was introduced by bagpipes marching through the room! The talk was given by &lt;a href="https://twitter.com/cmcginley" target="_blank" rel="noopener noreferrer"&gt;Connell McGinley&lt;/a&gt;
and was titled Disability Awareness &amp;amp; Inclusivity. This talk was amazing. Connell is deaf and gave the entire talk with sign language and this was translated for the rest of us to hear. Connell talked about his career and the barriers he faced. Microsoft Teams was an amazing improvement to his work life, as the captioning allowed him to talk with customers for the first time!&lt;/p&gt;
&lt;p&gt;The purple pound is the amount of spending power people with some kind of disability (15% of the worlds population) have and it is approx $13 trillion. If businesses can open their products up to more people it is a win for everyone. This was a really powerful way to open up the conference.&lt;/p&gt;
&lt;p&gt;Next up was &lt;a href="https://twitter.com/davesmall28" target="_blank" rel="noopener noreferrer"&gt;David Small&lt;/a&gt;
talking about Azure DevOps pipelines and Power Platform. I don&amp;rsquo;t know much about Power Platform however all the DevOps stuff was great, some of it reinforced stuff I already knew, some was new.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://twitter.com/samcogan" target="_blank" rel="noopener noreferrer"&gt;Sam Cogan&lt;/a&gt;
was next talking about Infrastructure as Code. Resources for this talk are on his &lt;a href="https://github.com/sam-cogan/events/tree/main/Scottish%20Summit%202022" target="_blank" rel="noopener noreferrer"&gt;github&lt;/a&gt;
This was a great comparison of different tools for doing Infrastructure as Code. Terraform, Pulumi, Bicep, ARM templates where all covered. The difference between stateless and stateful tools. If you have a state file you need to look after it, so if you don&amp;rsquo;t need this think about using a stateless tool. If you are only using Azure consider Azure. If you are a C# (other languages are available) think about using Pulumi (which I have used and quite like)&lt;/p&gt;
&lt;p&gt;Getting Started with Static Web Apps was next with &lt;a href="https://twitter.com/PoornimaNayar" target="_blank" rel="noopener noreferrer"&gt;Poornima Nayar&lt;/a&gt;
this was a great overview of Static Web Apps but as I already use Static Web Apps this was mainly reinforcing what I already knew. However the Static Web App CLI was mentioned which I didn&amp;rsquo;t know about so I am going to spend some time looking at that! Another thing that was mentioned was GraphQL which is a language agnostic way of building APIs which I also want to learn more about. Resources for this talk can be found &lt;a href="https://poornimanayar.co.uk/community/resources-for-my-talk-at-azure-thursdays-july-2021/" target="_blank" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;Next was Naming stuff in Azure with &lt;a href="https://twitter.com/Ba4bes" target="_blank" rel="noopener noreferrer"&gt;Barbara Forbes&lt;/a&gt;
, she went through the challenges of getting naming right, especially with all the exceptions Azure throws into the mix. Tagging your resources can really help. Also Azure Policy can help report on what you have (and even enforce it, if you are careful). Lots of interesting stuff, as my naming strategy is non existent at the moment!&lt;/p&gt;
&lt;p&gt;Defender for Cloud Apps with &lt;a href="https://twitter.com/getofmeland" target="_blank" rel="noopener noreferrer"&gt;Charlie Gough&lt;/a&gt;
. This was his first talk and he did really well despite technical problems. This was a security talk, I thought it was going to be about securing the apps you have built, but it was more about securing the apps that the users in your company are using. Still useful to know about, but not really my thing. Sorry Charlie!&lt;/p&gt;
&lt;p&gt;Last talk of the day was &amp;lsquo;What I didn&amp;rsquo;t know about Office 365&amp;rsquo; with &lt;a href="https://twitter.com/sharoneweaver" target="_blank" rel="noopener noreferrer"&gt;Sharon Weaver&lt;/a&gt;
Sharon went through Shifts, Planner and Forms all included in your Office 365 subscription.&lt;/p&gt;
&lt;h2 id="saturday-11th"&gt;Saturday 11th&lt;a class="anchor ms-1" href="#saturday-11th" aria-label="Permalink: Saturday 11th"&gt;&lt;i class="fas fa-link" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;To start the second day I had &lt;a href="https://twitter.com/webmaxru" target="_blank" rel="noopener noreferrer"&gt;Maxim Salnikov&lt;/a&gt;
talk about Static Web apps, if I had know it was about Static Web Apps again I may have chosen a different talk but this was still a great talk. Again the CLI was mentioned which I really need to investigate further.&lt;/p&gt;
&lt;p&gt;Next up was James Cook&amp;rsquo;s talk Monitor Azure DevOps and GitHub with Sentinel. This was all about securing your code repositories with Sentinel and looking through the logs at what is happening. To use this tech you need either a GitHub Enterprise subscription or Azure DevOps using Azure AD Logins as it is designed more for the Enterprise than a one man band kind like me, however I will see if I can have a play around with it and see what I can learn.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://twitter.com/TechieLass" target="_blank" rel="noopener noreferrer"&gt;Sarah Lean&lt;/a&gt;
gave a talk about the state of IT Ops tools in the hybrid age. I enjoyed this talk, Sarah added extra fun elements like talking about the Scottish language and the highland cow. The first tool mentioned was Windows Admin Centre. I have heard about this but never used it, must have come out after I switched from Ops to Dev. Looks very Azure like. Azure Update Management was mentioned next, which I have used and works really well. This is the next generation of Update Management, a bit like WSUS from my server days. Azure Policy was mentioned again, a great tool for reporting and/or enforcing things. Azure Arc was mentioned, a way to bring Azure to you. With all these tools consider why you want to use them, what benefits do they bring, not just because it it shiny!&lt;/p&gt;
&lt;p&gt;Mental Health with &lt;a href="https://twitter.com/AzureRory" target="_blank" rel="noopener noreferrer"&gt;Rory Neary&lt;/a&gt;
. This was one of my favourite talks. Rory talked about his mental health problems, his challenges, some of his coping mechanisms some of which involved the power platform. He encouraged us all to be more open about talking about Mental Health. Lots of talks have a solution to a problem, this one didn&amp;rsquo;t, but that Ok. We are all on a journey complete with its ups and downs.&lt;/p&gt;
&lt;p&gt;Accessibility for Blazor with &lt;a href="https://twitter.com/DennieDeclercq" target="_blank" rel="noopener noreferrer"&gt;Dennie Declercq&lt;/a&gt;
. I wasn&amp;rsquo;t as keen on this talk as some of the others, while I agree Accessibility is very important the solutions presented felt very generic and not really specific to Blazor. However I do have some ideas to try now and the accessibility browser extension sounds like a great idea.&lt;/p&gt;
&lt;h2 id="after-hours"&gt;After Hours&lt;a class="anchor ms-1" href="#after-hours" aria-label="Permalink: After Hours"&gt;&lt;i class="fas fa-link" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;One of the best things about the conference was talking to people between sessions and afterwards. I am an introvert and tend to keep quiet but even I managed to talk to (for me) loads of people. Some of these I had previously connected to on twitter, and some were brand new on the day. I would encourage anyone reading this to reach out to the community, go to an event like this, you will be surprised how friendly and helpful people can be.&lt;/p&gt;</description></item></channel></rss>