When launching the script, the following error messages shows:
The 'Get-AzResourceProvider' command was found in the module 'Az.Resources', but the module could not be loaded. For more information, run 'Import-Module az.Resources'.
This seems related to an outdated version of Az module when using Azure Shell (integrated with the Azure portal).
When launching the script, the following error messages shows: The 'Get-AzResourceProvider' command was found in the module 'Az.Resources', but the module could not be loaded. For more information, run 'Import-Module az.Resources'.
This seems related to an outdated version of Az module when using Azure Shell (integrated with the Azure portal).