[{"data":1,"prerenderedAt":727},["Reactive",2],{"navigation":3,"aAII9Cz3yR":204,"tags-Diagram":397},[4,192,200],{"title":5,"_path":6,"children":7,"icon":191},"Blog","/posts",[8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59,62,65,68,71,74,77,80,83,86,89,92,95,98,101,104,107,110,113,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,176,179,182,185,188],{"title":9,"_path":10},"Testing your API with REST Client","/posts/testing-your-api-with-rest-client",{"title":12,"_path":13},"HTML templating in Xamarin","/posts/html-templating-in-xamarin",{"title":15,"_path":16},"Goodbye Azure Portal, Welcome Azure CLI","/posts/welcome-azure-cli",{"title":18,"_path":19},"Coming across Gitpod","/posts/gitpod",{"title":21,"_path":22},"Handle token retrieval while querying an API","/posts/delegating-handler",{"title":24,"_path":25},"Clean up your local git branches.","/posts/cleaning-git-branches",{"title":27,"_path":28},"Automate configuration of Teams Tab SSO with PowerShell.","/posts/teams-sso-powershell",{"title":30,"_path":31},"How to do a technology watch? - Part 1","/posts/technology-watch-part1",{"title":33,"_path":34},"How to do a technology watch? - Part 2","/posts/technology-watch-part2",{"title":36,"_path":37},"You almost no longer need Key Vault references for Azure Functions.","/posts/azure-functions-custom-configuration",{"title":39,"_path":40},"How to do a technology watch? - Part 3","/posts/technology-watch-part3",{"title":42,"_path":43},"Forget DevOps, the future is already here!","/posts/devops-future",{"title":45,"_path":46},"Week 9, 2021 - Tips I learned this week","/posts/w09-2021-tips-learned-this-week",{"title":48,"_path":49},"Week 12, 2021 - Tips I learned this week","/posts/w12-2021-tips-learned-this-week",{"title":51,"_path":52},"Week 14, 2021 - Tips I learned this week","/posts/w14-2021-tips-learned-this-week",{"title":54,"_path":55},"Once upon a time in .NET","/posts/once-upon-a-time-in-dotnet",{"title":57,"_path":58},"Install your applications with winget","/posts/winget-import",{"title":60,"_path":61},"Customize your applications when installing them with winget","/posts/winget-override",{"title":63,"_path":64},"Week 22, 2021 - Tips I learned this week","/posts/w22-2021-tips-learned-this-week",{"title":66,"_path":67},"How to connect to an Azure SQL Database from C# using Azure AD","/posts/sqlclient-active-directory-authent",{"title":69,"_path":70},"Producing packages for Windows Package Manager","/posts/wingetcreate",{"title":72,"_path":73},"4 tips about GitHub Actions environment variables and contexts","/posts/github-actions-var-and-context",{"title":75,"_path":76},"AzureWebJobsStorage, the secret you don't need in your Function App.","/posts/azure-functions-without-azurewebjobsstorage",{"title":78,"_path":79},"ASP.NET Core - Lost in configuration","/posts/lost-in-configuration",{"title":81,"_path":82},"Week 39, 2021 - Tips I learned this week","/posts/w39-2021-tips-learned-this-week",{"title":84,"_path":85},"Week 41, 2021 - Tips I learned this week","/posts/w41-2021-tips-learned-this-week",{"title":87,"_path":88},"Migrating and open-sourcing my blog","/posts/migrating-blog",{"title":90,"_path":91},"Week 45, 2021 - Tips I learned this week","/posts/w45-2021-tips-learned-this-week",{"title":93,"_path":94},"Organize your GitHub stars with Astral","/posts/astral",{"title":96,"_path":97},"Pulumi with an Azure Blob Storage backend","/posts/pulumi-azure-backend",{"title":99,"_path":100},"IaC Hot Reload with Pulumi Watch","/posts/pulumi-watch",{"title":102,"_path":103},"Week 2, 2022 - Tips I learned this week","/posts/w02-2022-tips-learned-this-week",{"title":105,"_path":106},"Week 3, 2022 - Tips I learned this week","/posts/w03-2022-tips-learned-this-week",{"title":108,"_path":109},"Week 5, 2022 - Tips I learned this week","/posts/w05-2022-tips-learned-this-week",{"title":111,"_path":112},"How to provision an Azure SQL Database with Active Directory authentication","/posts/sqldatabase-active-directory-authent",{"title":114,"_path":115},"Why will I choose Pulumi over Terraform for my next project?","/posts/pulumi-vs-terraform",{"title":117,"_path":118},"Week 19, 2022 - Tips I learned this week","/posts/w19-2022-tips-learned-this-week",{"title":120,"_path":121},"Week 20, 2022 - Tips I learned this week","/posts/w20-2022-tips-learned-this-week",{"title":123,"_path":124},"Keeping secrets secure when using API Clients","/posts/http-clients-secrets",{"title":126,"_path":127},"What made me want to be a developer?","/posts/be-a-developer",{"title":129,"_path":130},"What can we do when stuck with a programming problem?","/posts/get-unstuck",{"title":132,"_path":133},"How did I automate the setup of my developer Windows laptop?","/posts/automate-developer-machine",{"title":135,"_path":136},"Discussion about API clients","/posts/http-clients",{"title":138,"_path":139},"Week 46, 2022 - Tips I learned this week","/posts/w46-2022-tips-learned-this-week",{"title":141,"_path":142},"When Pulumi met Nuke: a .NET love story","/posts/when-pulumi-met-nuke",{"title":144,"_path":145},"A year of learning and sharing - Dev Retro 2022","/posts/2022-retro",{"title":147,"_path":148},"Perform Dynamic Execution of an npm Package","/posts/pnpm-dlx",{"title":150,"_path":151},"Manage multiple Node.js versions","/posts/pnpm-env",{"title":153,"_path":154},"Introducing the Vue.js CI/CD series","/posts/vuecicd-introduction",{"title":156,"_path":157},"Execute commands using your project dependencies","/posts/pnpm-exec",{"title":159,"_path":160},"Vue.js CI/CD: Continuous Integration","/posts/vuecicd-ci",{"title":162,"_path":163},"Who is using pnpm?","/posts/pnpm-who-is-using",{"title":165,"_path":166},"Create an Azure-Ready GitHub Repository using Pulumi","/posts/azure-ready-github-repository",{"title":168,"_path":169},"Deploying to Azure from Azure DevOps without secrets","/posts/ado-workload-identity-federation",{"title":171,"_path":172},"Effortlessly Configure GitHub Repositories for Azure Deployment via OIDC","/posts/scripting-azure-ready-github-repository",{"title":174,"_path":175},"Playing with the .NET 8 Web API template","/posts/playing-with-dotnet8",{"title":177,"_path":178},"Another year of sharing and learning - Dev Retro 2023","/posts/2023-retro",{"title":180,"_path":181},"Week 4, 2024 - Tips I learned this week","/posts/w04-2024-tips-learned-this-week",{"title":183,"_path":184},"Using dependency injection with Azure .NET SDK","/posts/azure-sdk-di",{"title":186,"_path":187},"Having Fun With IT Event Calendars","/posts/it-event-calendars",{"title":189,"_path":190},"Call your Azure AD B2C protected API with authenticated HTTP requests from your JetBrains IDE","/posts/http-clients-oauth2","i-heroicons-newspaper",{"title":193,"_path":194,"children":195,"icon":199},"Goodies","/goodies",[196],{"title":197,"_path":198},"My Git Cheat Sheet","/goodies/gitcheatsheet","i-heroicons-gift-solid",{"title":201,"_path":202,"icon":203},"About","/about","i-heroicons-user-circle-solid",[205,207,209,211,214,217,220,223,226,229,231,234,237,240,242,244,247,250,253,255,258,261,264,267,270,273,276,279,282,285,287,289,292,294,297,300,303,305,308,310,313,316,319,322,325,327,329,332,335,338,341,344,347,350,353,356,359,361,363,366,369,372,375,377,380,383,385,388,391,394],[206,206],"tooling",[208,208],"vscode",[210,210],"rest",[212,213],"http","HTTP",[215,216],"razor","Razor",[218,219],"xamarin","Xamarin",[221,222],"templating","Templating",[224,225],"azure-cli","Azure CLI",[227,228],"azure","Azure",[230,230],"shell",[232,233],"github","GitHub",[235,236],"asp-net-core","ASP.NET Core",[238,239],"net",".NET",[241,241],"git",[243,243],"nushell",[245,246],"microsoft-teams","Microsoft Teams",[248,249],"powershell","PowerShell",[251,252],"azure-active-directory","Azure Active Directory",[254,254],"learning",[256,257],"azure-functions","Azure Functions",[259,260],"azure-key-vault","Azure Key Vault",[262,263],"configuration","Configuration",[265,266],"devops","DevOps",[268,269],"it","IT",[271,272],"tips-learned-this-week","tips learned this week",[274,275],"windows-terminal","Windows Terminal",[277,278],"azure-pipelines","Azure Pipelines",[280,281],"application-insights","Application Insights",[283,284],"azure-iot","Azure IoT",[286,286],"records",[288,288],"refit",[290,291],"development-box-setup","development box setup",[293,293],"winget",[295,296],"package-manager","package manager",[298,299],"azure-sql-database","Azure SQL Database",[301,302],"azure-sdk","Azure SDK",[304,304],"wingetcreate",[306,307],"github-actions","GitHub Actions",[309,309],"jq",[311,312],"pulumi","Pulumi",[314,315],"iac","IaC",[317,318],"azure-storage","Azure Storage",[320,321],"azure-signalr","Azure SignalR",[323,324],"visio","Visio",[326,326],"csharp",[328,328],"jest",[330,331],"statiq","Statiq",[333,334],"open-source","open source",[336,337],"visual-studio","Visual Studio",[339,340],"vue-js","Vue.js",[342,343],"azure-devops","Azure DevOps",[345,346],"vite","Vite",[348,349],"code-analysis","Code analysis",[351,352],"diagram","Diagram",[354,355],"terraform","Terraform",[357,358],"typescript","TypeScript",[360,360],"thoughts",[362,362],"pnpm",[364,365],"nuke","Nuke",[367,368],"pipelines","Pipelines",[370,371],"cicd","CI/CD",[373,374],"openid-connect","OpenID Connect",[376,376],"security",[378,379],"github-cli","GitHub CLI",[381,382],"microsoft-entra-id","Microsoft Entra ID",[384,384],"advent",[386,387],"finops","FinOps",[389,390],"anglesharp","AngleSharp",[392,393],"oauth2","OAuth2",[395,396],"azure-ad-b2c","Azure AD B2C",[398],{"_path":109,"_dir":399,"_draft":400,"_partial":400,"_locale":401,"title":108,"description":402,"lead":403,"date":404,"image":405,"badge":407,"tags":409,"body":410,"_type":722,"_id":723,"_source":724,"_file":725,"_extension":726},"posts",false,"","This week we talk about code analysis in .NET, cron expressions with crontab guru, diagrams in Azure DevOps wikis, and sending HTTP requests in VS Code.","Tooling around .NET, Azure DevOps and VS Code.","2022-02-04T00:00:00.000Z",{"src":406},"/images/surface_1.jpg",{"label":408},"Tips",[272,239,349,343,352,208,206],{"type":411,"children":412,"toc":715},"root",[413,420,427,477,490,502,515,524,536,545,559,565,578,587,601,607,612,655,660,669,675,687,696,710],{"type":414,"tag":415,"props":416,"children":417},"element","p",{},[418],{"type":419,"value":402},"text",{"type":414,"tag":421,"props":422,"children":424},"h2",{"id":423},"net-tip-of-the-week-configuring-code-analysis-on-your-project",[425],{"type":419,"value":426},".NET tip of the week: configuring code analysis on your project",{"type":414,"tag":415,"props":428,"children":429},{},[430,432,439,441,450,452,459,461,467,469,475],{"type":419,"value":431},"Static code analysis is great because it helps you to have a better code quality, and it allows you to detect potential issues or bad practices in your code directly from your IDE. I knew about Roslyn Analyzers and the possibility to configure which rules are enabled or not (with their level of severity) through an ",{"type":414,"tag":433,"props":434,"children":436},"code",{"className":435},[],[437],{"type":419,"value":438},".editorconfig",{"type":419,"value":440}," file. However, until I read this ",{"type":414,"tag":442,"props":443,"children":447},"a",{"href":444,"rel":445},"https://endjin.com/blog/2022/01/raising-coding-standard-dotnet-analyzers.html",[446],"nofollow",[448],{"type":419,"value":449},"article",{"type":419,"value":451}," a few days ago, I did not know that you could set a ",{"type":414,"tag":442,"props":453,"children":456},{"href":454,"rel":455},"https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#analysismode",[446],[457],{"type":419,"value":458},"predefined code analysis configuration",{"type":419,"value":460}," just by setting an ",{"type":414,"tag":433,"props":462,"children":464},{"className":463},[],[465],{"type":419,"value":466},"AnalysisMode",{"type":419,"value":468}," property in your project file. This is great, especially if you don't want to lose time configuring all the rules individually in an ",{"type":414,"tag":433,"props":470,"children":472},{"className":471},[],[473],{"type":419,"value":474},"editorconfig",{"type":419,"value":476}," file. You can just choose the analysis mode you feel more appropriate and eventually disable a few rules that you don't want.",{"type":414,"tag":415,"props":478,"children":479},{},[480,482,488],{"type":419,"value":481},"For instance, in this ASP.NET Core 6 project I created from the built-in template, I added an empty interface in the ",{"type":414,"tag":433,"props":483,"children":485},{"className":484},[],[486],{"type":419,"value":487},"Program.cs",{"type":419,"value":489}," file.\nBy default I see a message indicating that I should declare my interface in a namespace.",{"type":414,"tag":415,"props":491,"children":492},{},[493],{"type":414,"tag":494,"props":495,"children":501},"img",{"alt":496,"className":497,"src":500},"Program in vscode with default analysis mode.",[498,499],"rounded-lg","mx-auto","/posts/images/w052022tips_analysismode_1.png",[],{"type":414,"tag":415,"props":503,"children":504},{},[505,507,513],{"type":419,"value":506},"If I set the analysis mode to ",{"type":414,"tag":433,"props":508,"children":510},{"className":509},[],[511],{"type":419,"value":512},"Recommended",{"type":419,"value":514},", the code analysis indicates to me the same thing but this time as a warning.",{"type":414,"tag":415,"props":516,"children":517},{},[518],{"type":414,"tag":494,"props":519,"children":523},{"alt":520,"className":521,"src":522},"Program in vscode with 'Recommended' analysis mode.",[498,499],"/posts/images/w052022tips_analysismode_2.png",[],{"type":414,"tag":415,"props":525,"children":526},{},[527,528,534],{"type":419,"value":506},{"type":414,"tag":433,"props":529,"children":531},{"className":530},[],[532],{"type":419,"value":533},"All",{"type":419,"value":535},", then not only do I have the previous warning but I also have a warning to tell me I should not have an empty interface.",{"type":414,"tag":415,"props":537,"children":538},{},[539],{"type":414,"tag":494,"props":540,"children":544},{"alt":541,"className":542,"src":543},"Program in vscode with 'All' analysis mode.",[498,499],"/posts/images/w052022tips_analysismode_3.png",[],{"type":414,"tag":415,"props":546,"children":547},{},[548,550,557],{"type":419,"value":549},"There are also properties to only apply rules specific to a category (security for instance). You can check the ",{"type":414,"tag":442,"props":551,"children":554},{"href":552,"rel":553},"https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#analysismodecategory",[446],[555],{"type":419,"value":556},"documentation",{"type":419,"value":558}," to learn more about these.",{"type":414,"tag":421,"props":560,"children":562},{"id":561},"tool-of-the-week-crontab-guru",[563],{"type":419,"value":564},"Tool of the week: crontab guru",{"type":414,"tag":415,"props":566,"children":567},{},[568,570,576],{"type":419,"value":569},"You are probably using cron expressions in a lot of different contexts whether it be to schedule an Azure Function or to trigger periodically a CI/CD pipeline (GitHub Actions or Azure DevOps for instance). Cron expressions are useful but you might not use them often, which makes it hard to remember the syntax. ",{"type":414,"tag":433,"props":571,"children":573},{"className":572},[],[574],{"type":419,"value":575},"crontab guru",{"type":419,"value":577}," is a tool that helps you create cron schedule expressions or understand what existing cron expressions mean.",{"type":414,"tag":415,"props":579,"children":580},{},[581],{"type":414,"tag":494,"props":582,"children":586},{"alt":583,"className":584,"src":585},"Crontab Guru website.",[498,499],"/posts/images/w052022tips_crontab_guru.png",[],{"type":414,"tag":415,"props":588,"children":589},{},[590,592,599],{"type":419,"value":591},"It's really helpful, so add it to your ",{"type":414,"tag":442,"props":593,"children":596},{"href":594,"rel":595},"https://crontab.guru/",[446],[597],{"type":419,"value":598},"bookmarks",{"type":419,"value":600},".",{"type":414,"tag":421,"props":602,"children":604},{"id":603},"the-azure-devops-tip-you-did-not-know-about-creating-diagrams-in-markdown-with-mermaidjs",[605],{"type":419,"value":606},"The Azure DevOps tip you did not know about: creating diagrams in markdown with Mermaid.js",{"type":414,"tag":415,"props":608,"children":609},{},[610],{"type":419,"value":611},"If you are using Azure DevOps, you are probably writing your technical documentation in markdown in a wiki. I like the idea of having \"documentation as code\" with markdown stored in a git repository that keeps the history of changes. Yet, sometimes documentation is not just about text, you want to have diagrams to properly illustrate what your text is explaining. And you don't want to have these diagrams just stored as images in your repository but you want them within the markdown to be modified as easily as the text.",{"type":414,"tag":415,"props":613,"children":614},{},[615,617,623,625,631,633,638,640,645,647,654],{"type":419,"value":616},"And guess what, that's possible thanks to ",{"type":414,"tag":433,"props":618,"children":620},{"className":619},[],[621],{"type":419,"value":622},"Mermaid.js",{"type":419,"value":624},". As you can read on its website, ",{"type":414,"tag":442,"props":626,"children":629},{"href":627,"rel":628},"https://mermaid-js.github.io/",[446],[630],{"type":419,"value":622},{"type":419,"value":632}," is a \"JavaScript based diagramming and charting tool that renders Markdown-inspired text definitions to create and modify diagrams dynamically\". It means that you can write in your markdown file some text that describes a diagram and it will be rendered by ",{"type":414,"tag":433,"props":634,"children":636},{"className":635},[],[637],{"type":419,"value":622},{"type":419,"value":639},". There are a lot of types of diagrams that you can create using ",{"type":414,"tag":433,"props":641,"children":643},{"className":642},[],[644],{"type":419,"value":622},{"type":419,"value":646}," but Azure DevOps only ",{"type":414,"tag":442,"props":648,"children":651},{"href":649,"rel":650},"https://docs.microsoft.com/en-us/azure/devops/project/wiki/wiki-markdown-guidance?view=azure-devops#add-mermaid-diagrams-to-a-wiki-page",[446],[652],{"type":419,"value":653},"supports Sequence diagrams, Gantt Charts, and Flowcharts",{"type":419,"value":600},{"type":414,"tag":415,"props":656,"children":657},{},[658],{"type":419,"value":659},"Here is an example of a diagram I created in an Azure DevOps wiki:",{"type":414,"tag":415,"props":661,"children":662},{},[663],{"type":414,"tag":494,"props":664,"children":668},{"alt":665,"className":666,"src":667},"Mermaid.js diagram in Azure DevOps wiki.",[498,499],"/posts/images/w052022tips_mermaid_1.png",[],{"type":414,"tag":421,"props":670,"children":672},{"id":671},"the-vs-code-extension-you-should-try-rest-client",[673],{"type":419,"value":674},"The VS Code extension you should try: Rest Client",{"type":414,"tag":415,"props":676,"children":677},{},[678,685],{"type":414,"tag":442,"props":679,"children":682},{"href":680,"rel":681},"https://github.com/Huachao/vscode-restclient",[446],[683],{"type":419,"value":684},"REST Client",{"type":419,"value":686}," is an open source VS Code extension that allows you to send HTTP requests and view the responses as you would do with Postman. But I prefer using REST Client over Postman because with REST Client you write the HTTP requests in text files (using the RFC 2616 standard) that you can version in your git repository along with your code. REST Client is not something I discovered this week, I have been using it for quite a long time but it's still very useful to me so I thought this post was a good opportunity to tell you to try it if you have not yet.",{"type":414,"tag":415,"props":688,"children":689},{},[690],{"type":414,"tag":494,"props":691,"children":695},{"alt":692,"className":693,"src":694},"REST Client vscode extension.",[498,499],"/posts/images/w052022tips_restclient.png",[],{"type":414,"tag":415,"props":697,"children":698},{},[699,701,708],{"type":419,"value":700},"In fact, it's quite funny because the ",{"type":414,"tag":442,"props":702,"children":705},{"href":703,"rel":704},"https://www.techwatching.dev/posts/testing-your-api-with-rest-client",[446],[706],{"type":419,"value":707},"first article",{"type":419,"value":709}," I wrote here on my blog was an article about REST Client, how to use it and why you should use it instead of Postman.",{"type":414,"tag":415,"props":711,"children":712},{},[713],{"type":419,"value":714},"And that's it for this week, happy learning!",{"title":401,"searchDepth":716,"depth":716,"links":717},2,[718,719,720,721],{"id":423,"depth":716,"text":426},{"id":561,"depth":716,"text":564},{"id":603,"depth":716,"text":606},{"id":671,"depth":716,"text":674},"markdown","content:1.posts:34.w05-2022-tips-learned-this-week.md","content","1.posts/34.w05-2022-tips-learned-this-week.md","md",1716749600827]