MLogdberg / APIManagementARMTemplateCreator

Azure API Management Template Extractor, extracts ARM templates for your API's to be used in the CI/CD process.
MIT License
45 stars 43 forks source link

Get-APIManagementTemplate could not load propertly #132

Open sa-pietronegri opened 1 year ago

sa-pietronegri commented 1 year ago

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" }

mystiqu commented 2 months ago

I get the same error - it used to work fine