Loading...

What’s New in the New Version of Az.Tools.Installer

What’s New in the New Version of Az.Tools.Installer

We are excited to announce a new version of the installer for Azure PowerShell implementing major improvements based on the feedback of the previous version. 

Azure PowerShell contains many sub modules, total number add up to 125. These modules are released as collection in Az and AzPreview. You can either install all of them or install each sub module individually. Installing all modules usually takes several minutes to finish. You may update the Az modules from time to time if you want to keep up with the rapid changes of the modules. The default update mechanism does not remove previous versions. After several updates, obsolete modules remain on machine and unfortunately, uninstallation can only be performed one at a time, a problem that many customers have reported. 

Last year, we released Az.Tools.Installer to address the version and module management issue. The installer module provides 3 cmdlets Install-AzModule, Update-Azmodule and Uninstall-AzModule. We now provide the capability to manage sub modules using the name of the service and using the version of Az for reference. One cmdlet can now clean the environment or keep all installed modules update-to-date. 

 

Functionality Improvement 

In the new version, we simplify functionality and add a few new features that are more practical to use. 

Install-AzModule 

This cmdlet improves and simplifies the overall installation experience for Azure PowerShell. For advanced scenarios the Install-Module cmdlet remains available. With this goal, we did the following improvements:  

  • We removed “-MaxinumVersion” and ”- MinimumVersion” as we find people are more used to specify the exact Az version they want.  
  • We added a new parameter “-UseExactAccountVersion” to use the required minimum version of Az.Accounts rather than the latest one. 
  • We changed the behavior of “-RemovePrevious”. Previously all installed Az modules would be removed; now the previous versions of only the specified modules are removed. 
  • We introduced a new parameter set that supports the installation of a module from a nuget package. The “-Path” of the package can be from an URL supporting http and https or a local path.  For example 

 

Install-AzModule -Path https://my.repo.com/Az.Accounts.2.5.0.nupkg

 

Update-AzModule 

The new version of this cmdlets implements the following improvements:  

  • The repository from where the update will be downloaded can now be specified and can be different from the initial installation. 
  • By default, we remove the previous version of a module, you can keep the previous versions by specifying “-KeepPrevious”. 

Uninstall-AzModule 

Uninstallation syntax is greatly simplified as we no longer require uninstalling by version. When you have multiple Az versions installed, you are likely going to get an invalid combination of modules if you uninstall a specific version. Because Az is the collection of sub modules, the sub modules always overlap between different Az versions. 

We now offer the possibility for you to filter out the modules you want to keep by “-ExcludeModule” or to remove all the preview modules (“-PrereleaseOnly”) when doing the uninstallation. 

 

Performance Optimization 

Due to several factors, including the number of modules we provide, the installation time of the Az modules in automations environments like Azure Functions has becomes a handicap. We put additional efforts in this release to reduce the time it takes to install Az. 

Compared to the previous version and other mechanism, the performance of this version of the installer is improved significantly on PowerShell 7.x. In average, if all modules of Az are installed, we see a reduction of about 50% of the installation time. 

 

User Experience Improvement 

Based on the feedback we received, in this release, we added a progress bar. We display each execution step and how many modules are installed or uninstalled.  

With debug settings, we provide more detailed information. 

 

Getting Started and Next Steps 

We hope that Az.Tools.Intaller will improve your experience with managing the Azure PowerShell modules.  

Install the installer module with the following commands: 

 

Install-module -Name Az.Tools.Installer

 

To install Azure PowerShell simply execute:  

 

Install-AzModule

 

Please let us know about your experience with the module, ask for feature or report issues you may have on GitHub or on Twitter 

Published on:

Learn more
Azure Tools Blog articles
Azure Tools Blog articles

Azure Tools Blog articles

Share post:

Related posts

Unlocking the Best of Azure with AzureRM and AzAPI Providers

With the recent release of AzAPI 2.0, Azure offers two powerful Terraform providers to meet your infrastructure needs: AzureRM and AzAPI. The ...

1 year ago

Announcing AzAPI 2.0

The AzAPI provider, designed to expedite the integration of new Azure services with HashiCorp Terraform, has now released 2.0. This updated ve...

1 year ago

Azure CLI docker container base Linux image is now Azure Linux

Starting from the version  2.64.0 of Azure CLI, the base Linux distribution of Azure CLI is now Azure Linux.   Impact of the change ...

1 year ago

Mastering the Shorthand Syntax in your daily workflow

Introduction In this tech blog, we'll unravel the magic behind Azure CLI shorthand syntax and discover how it can elevate your command-line ex...

2 years ago

Azure Verified Modules - Monthly Update [June]

AVM Module Summary The AVM team are excited that our community have been busy building AVM Modules. As of June 17th, the AVM Footprint curren...

2 years ago

Azure Verified Modules - Monthly Update [May]

Quarterly Community Call This month we held our first community call. Thank you to everyone that attended & contributed. It was amazing t...

2 years ago

Azure CLI and PowerShell Tools Build 2024 Announcement

Microsoft has announced several new capabilities for Azure CLI and Azure PowerShell at the Microsoft Build 2024. The priority remains to provi...

2 years ago

Terraform on Azure May 2024 Update

    Welcome to our April 2024 update! These blogposts will be covering everything we've gotten up to recently with Terraform on Azu...

2 years ago

Azure Verified Modules - Monthly Update [April]

In the April edition of the Azure Verified Modules update, the AVM team announces their upcoming quarterly community call scheduled for 21st M...

2 years ago

Announcing AzAPI Dynamic Properties

  It’s been almost two years since the announcement of AzAPI, and the provider has eclipsed 20M+ downloads thanks to all of you. We’re ex...

2 years ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.