Archivo el 04/04/2022

Instalar módulos de Azure en PowrShell

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord

Register-PSRepository -Default


Install-Module MSOnline

$Msolcred = Get-credential
Connect-MsolService -Credential $MsolCred

Opcional:

Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force

Install-Module -Name PowerShellGet -RequiredVersion 2.2.5 -Force