AzureTip #01 – Azure PowerShell Provider

A Windows PowerShell provider allows any data store to be exposed like a file system as if it were a mounted drive. Below are some examples:

  • File System
  • Registry
  • Certificate Store

In order to manage these providers, you can use the Get-PSDrive cmdlet.  Use this cmdlet to get the drives mounted (and the PS Provider) in the current session:

Thanks to the AzurePSDrive PowerShell Module, you can mount a drive in order to navigate to your Azure Resources. You only need to have Windows PowerShell 5 or higher.

First, install the PowerShell Module from the PowerShell Gallery:

Then, import the module:

Now, you must login with your Azure Account:

We can create the Azure PSDrive using the SHiPS provider:

Finally, we can nagivate to the Azure subscription:

Great, now we can browse our Azure Resources:

More information about SHiPS: https://www.powershellgallery.com/packages/SHiPS/0.3.0

 

Thanks for reading! You can follow me on Twitter @PrigentNico

About Nicolas 196 Articles
I work as a System Engineer, based in Switzerland with a primary focus on Microsoft technologies. I have 7 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSA: Windows Server 2012" and "Administering & Deploying SCCM" certified.