How to install Azure AZ

Installing Azure AZ in worker roles

Introduction

The purpose of this document is to explain how to install AzureAZ modules and their requirements.


Pre-installation validations

Before installing the AzureAZ modules we have to check that there is no AzureRM module installed on the worker roles, as they are not compatible.

To do this we will run the following script until we get no results:

$Modules = get-module -name 'Azure*' -ListAvailable
$Modules | foreach { Uninstall-Module -name $_.name -AllVersions }
##list Azure modules
get-module -name 'Azure*' -ListAvailable


If we try to install AzureAZ modules on a machine where AzureRM modules are installed the installation will not finish correctly and AzureAZ modules will not be installed. 


Requirements

Before installing the AzureAZ modules as a requirement you must install the .NET Framework 4.7.2 or higher.

If you try to install the AzureAZ modules and the above-mentioned framework is not installed, the following message will appear.


The MSI to install the framework in the following URI:

x64
https://github.com/Azure/azure-powershell/releases/download/v4.2.0-June2020/Az-Cmdlets-4.2.0.32962-x64.msi
x86
https://github.com/Azure/azure-powershell/releases/download/v4.2.0-June2020/Az-Cmdlets-4.2.0.32962-x86.msi


Installation

The installation process of AzureAZ modules does not require any special mention, following the default steps you will reach the end of the installation process without any problem.

Info

For the proper functioning of Flexxible|SUITE, you must install the Azure modules for each worker role.


Checking

To check that the Azure modules have been installed correctly, we open a PowerShell screen and run the following script:

Get-Module -Name 'Az*' -ListAvailable -ErrorAction SilentlyContinue




If we receive results, it is done. If not, you have to check the event viewer for any errors because the modules have not been installed correctly.