This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$subscriptionId = "<your subscription id here>" | |
Connect-AzAccount -Subscription $subscriptionId | |
$storageAccounts = Get-AzStorageAccount | |
foreach ($account in $storageAccounts) { | |
$resourceDetails = Get-AzResource -ResourceId $account.Id | |
if ($resourceDetails.Properties.minimumTlsVersion -ne "TLS1_2") { | |
Write-Output "Updating TLS version for storage account: $($account.StorageAccountName)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// I want to reduce noise in Application Insights. | |
/// | |
/// Let's take this class as a blue print for customization | |
/// Todo: copy it to a GitHub Gist | |
/// https://blog.hildenco.com/2020/03/how-to-suppress-application-insights.html | |
/// | |
/// To use this class you must add to Startup | |
/// services.AddApplicationInsightsTelemetryProcessor<ApplicationInsightsStaticClientRequestFilter>(); | |
/// </summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace OliUtil.Extensions | |
{ | |
public abstract class InitializeOnce<TImpl> | |
where TImpl : InitializeOnce<TImpl> | |
{ | |
protected abstract void Inititalize(); | |
private readonly Lazy<TImpl> instance; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Logging": { | |
"LogLevel": { | |
"Default": "Information", | |
"System": "Warning", | |
"Microsoft": "Warning" // does it skip the dotnet core informations? I hope so | |
}, | |
"ApplicationInsights": { | |
"LogLevel": { | |
"Default": "Information", // should show all traces | |
"System": "Warning", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System.Web; | |
namespace Nulllogicone.Utils | |
{ | |
public static class MessageAuthentication | |
{ |