APIManagementARMTemplateCreator
APIManagementARMTemplateCreator copied to clipboard
Get-APIManagementTemplate could not load propertly
When executing Get-APIManagementTemplate I get Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
I load the modules like this: foreach($requiredModule in @("APIManagementTemplate","Az") ){ if(! $(Get-InstalledModule $requiredModule)){ Write-host "Loading $requiredModule ..." Install-Module -Name $requiredModule -AllowClobber -Force -Scope CurrentUser -Repository PSGallery } Update-Module -Name $requiredModule Write-host "Loaded $requiredModule" }