Install-Module Error PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider ‘NuGet’. The package provider requires ‘PackageManagement’ and ‘Provider’ tags. Please check if the specified package

Install-Module Error PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider ‘NuGet’. The package provider requires ‘PackageManagement’ and ‘Provider’ tags. Please check if the specified package

This error is caused because your Windows session to powershell gallery is not using TLS 1.2

Windows images do not have latest Powershell Get module baked into it , If you have latest powershell get module then you are good to go .

Otherwise fix is

run below to enable TLS 1.2 on powershell session scope

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;

After this you can attempt to Install-module powershellget -RequiredVersion 2.2.4.1 and then you are all sorted.

Latest versions of powershellget will always negotiate on TLS 1.2

Azure Monitor Alert when VM is not available/Shutdown Down

Fatal error: Uncaught Error: Call to a member function id() on array in /customers/2/6/e/mumtazit.co.uk/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php:36 Stack trace: #0 /customers/2/6/e/mumtazit.co.uk/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(538): CrayonFormatter::format_code('', Array, Object(CrayonHighlighter)) #1 [internal function]: CrayonFormatter::delim_to_internal(Array) #2 /customers/2/6/e/mumtazit.co.uk/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(516): preg_replace_callback('#()#msi', 'CrayonFormatter...', '$LogAnalyticsRe...') #3 /customers/2/6/e/mumtazit.co.uk/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code('$LogAnalyticsRe...', Object(CrayonLang), Object(CrayonHighlighter)) #4 /customers/2/6/e/mumtazit.co.uk/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(186): CrayonHighlighter->proces in /customers/2/6/e/mumtazit.co.uk/httpd.www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 36