cloud-code-samples icon indicating copy to clipboard operation
cloud-code-samples copied to clipboard

Code samples and demos for Azure and Microsoft 365.

Code Samples and Demos

Collection of code samples from articles, blog posts, and more.

ApplicationInsightsService

This folder contains the basic code for filtering dependencies in your Application Insights services.

  • Read more: https://zimmergren.net/excluding-failing-dependencies-from-application-insights-logging/

AuthenticatedApplicationInsights

This folder contains sample code for sending authenticated requests to an Application Insights service that has disabled local authentication.

  • Read more: https://zimmergren.net/enforce-authentication-when-sending-application-insights-telemetry/

AzureMonitorDeepLinking

Code sample for deep-linking Azure Log Analytics and Azure Application Insights queries.

  • Read more: https://zimmergren.net/deep-linking-azure-log-analytics-and-app-insight-queries/

AzureMonitorAlertRuleBicep

Code sample for deploying alert rules in Bicep.

  • Read more: https://zimmergren.net/create-azure-monitor-alert-rules-with-bicep/

BicepIntroduction

This folder contain the basic templates used in a post about using Bicep.

  • Read more: https://zimmergren.net/getting-started-azure-bicep

KeyVaultBackup

This folder contains a basic script for copying secrets from one vault to another, across subscriptions. It's intended as a starter for how you can achieve this task, and you should carefully consider modifying it to fit your processes and security guidelines.

  • Read more: https://zimmergren.net/backup-azure-key-vault-secrets-keys-certificates/

MicrosoftGraphEmail/TZ.GraphEmailDemo

This folder contains a .NET 6 console app for sending simple messages using the Microsoft Graph APIs.

  • Read more: https://zimmergren.net/sending-e-mails-using-microsoft-graph-using-dotnet/

MicrosoftGraphEmail.Read

This folder contains a .NET 6 app for reading e-mails using the Microsoft Graph APIs.

  • Read more: https://zimmergren.net/reading-emails-with-microsoft-graph-using-net/

AzureResourceGraph

In this folder, you'll find examples of Azure Resource Graph queries. Currently, the examples are:

  • ExpiringAppServiceCertificates: Queries to discover Azure App Certificates that are expiring soon.

  • Read more: https://zimmergren.net/discover-expiring-azure-app-services-certificates/