{"id":15192183,"url":"https://github.com/powershell/azurepsdrive","last_synced_at":"2025-10-02T06:32:38.473Z","repository":{"id":65985512,"uuid":"100649291","full_name":"PowerShell/AzurePSDrive","owner":"PowerShell","description":"Navigate Azure Resources Just like A FileSystem","archived":true,"fork":false,"pushed_at":"2018-12-12T22:10:00.000Z","size":120,"stargazers_count":43,"open_issues_count":8,"forks_count":14,"subscribers_count":15,"default_branch":"development","last_synced_at":"2025-01-21T12:35:56.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.powershellgallery.com/packages/AzurePSDrive","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PowerShell.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-17T22:14:01.000Z","updated_at":"2025-01-03T01:20:04.000Z","dependencies_parsed_at":"2023-02-19T18:45:36.892Z","dependency_job_id":null,"html_url":"https://github.com/PowerShell/AzurePSDrive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PowerShell/AzurePSDrive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FAzurePSDrive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FAzurePSDrive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FAzurePSDrive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FAzurePSDrive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PowerShell","download_url":"https://codeload.github.com/PowerShell/AzurePSDrive/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FAzurePSDrive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277968828,"owners_count":25907418,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-02T02:00:08.890Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-27T21:06:11.182Z","updated_at":"2025-10-02T06:32:38.237Z","avatar_url":"https://github.com/PowerShell.png","language":"PowerShell","readme":"### Build Status\n| Master       |  Development   |\n|-----------------------------------------|--------------------------|\n|  [![av-image-master][]][av-site-master] |[![av-image-dev][]][av-site-dev]\n \n\n[av-image-dev]: https://ci.appveyor.com/api/projects/status/3cq2g6vq3j1gyp8h/branch/development?svg=true\n[av-site-dev]: https://ci.appveyor.com/project/PowerShell/azurepsdrive/branch/development\n\n[av-image-master]:https://ci.appveyor.com/api/projects/status/3cq2g6vq3j1gyp8h?svg=true\n[av-site-master]: https://ci.appveyor.com/project/PowerShell/azurepsdrive/branch/master\n\n\n### Introduction:\nAzurePSDrive provider is a [SHiPS](https://github.com/PowerShell/SHiPS) based PowerShell provider to simplify navigation and discovery of [Azure Resource Manager](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-overview) items. This is based on [Az cmdlets](https://msdn.microsoft.com/en-us/library/mt125356.aspx).\nThe provider allows to browse Azure resources such as Subscriptions, ResourceGroups, deployments in providers such as Compute, Network, Storage. Deployments such as VirtualMachines, StorageContainers, NetworkInterfaces, SecurityGroups, VNets, WebApps can be seamlessly discovered including useful data about these.\n\n### Usage:\nUsing this provider is self explanatory. You are encouraged to traverse various resources such as Compute, Network, Storage, WebApps and so on. AzurePSDrive provider shows only Az providers that have deployments such as Virtual machines, Storage Containers.\nThis version supports only retrieving Resource Manager items.\n\n```\n# Authenticate to your Azure account\n# Login-AzAccount\n\n# Create a drive for Az\n$driveName = 'Az'\nImport-Module AzurePSDrive\nNew-PSDrive -Name $driveName -PSProvider SHiPS -Root AzurePSDrive#Azure\n\ncd $driveName\":\"\n```\n\n\n```\n# Discover all subscriptions associated with the account\nPS Az:\\\u003e dir\n\nMode SubscriptionName    SubscriptionId                         TenantId                                 State\n---- ----------------    --------------                         -----                                    -----\n+    AutomationGroup     xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx   xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx     Enabled\n+    CloudOps            xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx   xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx     Disabled\n+    DevOps              xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx   xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx     Enabled\n\n# Navigate to a subscription\nPS Az:\\\u003e cd .\\AutomationGroup\\\n\n```\n\n``` PowerShell\n# Discover the first level directory under a subscription\nPS Az:\\AutomationGroup\u003e dir\nMode  Name\n----  ----\n+     AllResources\n+     ResourceGroups\n+     VirtualMachines\n+     StorageAccounts\n+     WebApps\n\n# Display all Azure resources under the current subscription\nPS Az:\\AutomationGroup\u003ecd .\\AllResources\\\nPS Az:\\AutomationGroup\\AllResources\u003e dir\n\n# Search Azure resources by keyword\nPS az:\\AutomationGroup\\AllResources\u003e dir *foobar*\n\nName        ResourceType                          ResourceGroupName    Location\n----        ------------                          -----------------    --------\nfoobar1     Microsoft.Compute/virtualMachines     foobarrg             westus\nfoobar2     Microsoft.Compute/virtualMachines     foobarrg             westu\n\n# Search for all VMs\nPS az:\\AutomationGroup\u003e cd .\\VirtualMachines\\\nPS az:\\AutomationGroup\\VirtualMachines\u003edir\n\n# Search for my VMs starting a letter j*\nPS az:\\AutomationGroup\\VirtualMachines\u003e dir j*\nResourceGroupName   Name    Location    VmSize           OsType    NIC      ProvisioningState  PowerState\n-----------------   ----    --------    ------           ------    ---      -----------------  ----------\nJRG                 jvm1    eastus      Standard_DS1_v2  Windows   jnic-1   Succeeded          deallocated\nJRG                 jvm2    westus      Standard_F1s     Linux      nic-2   Succeeded          running\n\n# Start or Stop a VM\ndir jvm2 | Stop-AzVM\nPS az:\\AutomationGroup\\VirtualMachines\u003e dir .\\jvm2 | Stop-AzVM\n\n# Search all storage accounts under my subscription\nPS az:\\AutomationGroup\\StorageAccounts\u003e dir\nMode  Name\n----  ----\n+     myacc\n+     myacc2\n+     myacc3\n\n# Navigate to a particular storage account\nPS az:\\AutomationGroup\\StorageAccounts\u003e cd .\\myacc\\\nPS az:\\AutomationGroup\\StorageAccounts\\myacc\u003e dir\n\nMode  Name\n----  ----\n+     Blobs\n+     Files\n+     Tables\n+     Queues\n\n# Navigate to Azure storage file share\nPS az:\\AutomationGroup\\StorageAccounts\\myacc\u003e cd .\\Files\\\nPS az:\\AutomationGroup\\StorageAccounts\\myacc\\Files\u003e dir\n\nName     ConnectionString\n----     ----------------\nshare1   \\\\myacc.file.core.windows.net\\share1;AccountName=myacc\n         AccountKey=\u003ckey omitted here\u003e\nshare2   \\\\myacc2.file.core.windows.net\\share2;AccountName=myacc2\n         AccountKey=\u003ckey omitted here\u003e\n\n# Mount to Azure file share so that you can add/delete/modify files and directories\nnet use z: \\\\myacc.file.core.windows.net\\share1  /u:AZURE\\myacc \u003cAccountKey\u003e\n\n# Navigate to a directory\nPS az:\\AutomationGroup\\StorageAccounts\\myacc\\Files\u003e cd .\\share1\\\nPS az:\\AutomationGroup\\StorageAccounts\\myacc\\Files\\share1\u003e dir\n\nMode  Name\n----  ----\n+     .cloudconsole\n.     .hello.ps1\n```\n\n```\n# Discover ResourceGroups in the Subscription\nPS az:\\AutomationGroup\u003e cd .\\ResourceGroups\\\nPS az:\\AutomationGroup\\ResourceGroups\u003e dir\n\nMode ResourceGroupName                     Location       ProvisioningState Tags\n---- -----------------                     --------       ----------------- ----\n+    azexpress                             southcentralus Succeeded\n+    azexpress-posh2                       southcentralus Succeeded\n+    ops-WestUS                            westus         Succeeded\n\nPS Az:\\AutomationGroup\\ResourceGroups\u003e cd .\\azexpress\\\n\n# Discover Providers that have deployments\nPS Az:\\AutomationGroup\\ResourceGroups\\azexpress\u003e dir\n\nMode ProviderName\n---- ------------\n+    Microsoft.ClassicStorage\n+    Microsoft.Compute\n+    Microsoft.Network\n+    Microsoft.Storage\n+    Microsoft.Web\n\n```\n\n```\n# Navigate to your own VMs\nPS Az:\\AutomationGroup\\ResourceGroups\\azexpress\\Microsoft.Compute\\virtualMachines\u003e dir\n\nVMName         Location ProvisioningState VMSize          OS            SKU                             OSVersion AdminUserName NetworkInterfaceName\n------         -------- ----------------- ------          --            ---                             --------- ------------- --------------------\nazexpress-ctr-host westus   Succeeded         Standard_DS2_v2 WindowsServer 2016-Datacenter-with-Containers latest    localadmin    azexpress-ctr\n\n# Discover NetworkInterfaces\nPS Az:\\AutomationGroup\\ResourceGroups\\azexpress\\Microsoft.Network\\networkInterfaces\u003e dir\n\nNetworkInterfaceName Location ProvisioningState VirtualMachineName PublicIpAddressName   NetworkSecurityGroupName IsPrimary\n-------------------- -------- ----------------- ------------------ -------------------   ------------------------ ---------\nazexpress-ctr        westus   Succeeded         azexpress-ctr-host azexpress-ctr-host-ip azexpress-ctr-host-nsg       True\n\n```\n\n```\n# Get WebApps information\nPS Az:\\AutomationGroup\\ResourceGroups\\azexpress\\Microsoft.Web\\sites\u003e dir\n\n\nSiteName                       Location   State      OutboundIpAddresses  EnabledHostInfo                                                 WebSpace\n--------                       --------   -----      -------------------  ---------------                                                 --------\nazexpressSite                   West US    Stopped    42.139.137.127       azexpressSite.azurewebsites.net* SSl=Disabled                  2015-WestUSwebspace\n                                                      40.11.139.85         azexpressSite.scm.azurewebsites.net SSl=Disabled\n\nazexpressSite-powershell        West US    Running    42.112.85.127        azexpressSite-powershell.azurewebsites.net* SSl=Disabled       2015-WestUSwebspace\n                                                      42.139.139.85        azexpressSite-powershell.scm.azurewebsites.net SSl=Disabled\n\n\n\n\n```\n\n\n```\n# Get ServerFarms info\nPS Az:\\AutomationGroup\\ResourceGroups\\azexpress\\Microsoft.Web\\serverFarms\u003e dir\n\nServerFarmName  Location ProvisioningState NumberOfWorkers NumberOfSites WebSpace\n--------------  -------- ----------------- --------------- ------------- --------\n2015Plan        West US  Succeeded         1               5             2015-WestUSwebspace\n\n\n\n```\n\n### Dependencies:\n[Az.Accounts, Az.Resources, Az.Compute, Az.Storage, Az.Websites](https://www.powershellgallery.com/packages/Az) and [SHiPS](https://github.com/PowerShell/SHiPS) PowerShell modules are required.\n\n### Caching:\nTop level objects such as Subscriptions, Resource Groups, Resource Providers are cached to improve performance.\nUse ```dir -Force``` to refresh from Azure service. However, leaf level objects such as Virtual Machines, Network Interfaces, WebSites are not cached, since these items can have a smaller life cycle.\n\n### Server side filtering using Az ODataQuery\nSupports performing server side filtering using ```$filter``` ODataQuery semantics. Simply use ```dir -Filter``` option when retrieving items.\n\n### Supported Az Provider Types in format.ps1xml:\n\n| ProviderType | Name  | FullType |\n| -----------  | --------------| --------------|\n| Microsoft.Compute  | virtualMachines  | Microsoft.Compute.virtualMachines  |\n| Microsoft.Compute  | virtualMachines/extensions  | Microsoft.Compute.virtualMachines.extensions  |\n| Microsoft.Compute  | availabilitySets  | Microsoft.Compute.availabilitySets  |\n| Microsoft.Network  | networkInterfaces | Microsoft.Network.networkInterfaces  |\n| Microsoft.Network  | publicIPAddresses | Microsoft.Network.publicIPAddresses  |\n| Microsoft.Network  | virtualNetworks | Microsoft.Network.virtualNetworks  |\n| Microsoft.Network  | networkSecurityGroups | Microsoft.Network.networkSecurityGroups  |\n| Microsoft.Network  | routeTables | Microsoft.Network.routeTables  |\n| Microsoft.Storage | storageAccounts | Microsoft.Storage.storageAccounts  |\n| Microsoft.ClassicStorage | storageAccounts | Microsoft.ClassicStorage.storageAccounts  |\n| Microsoft.Web | sites | Microsoft.Web.sites  |\n| Microsoft.Web | serverfarms | Microsoft.Web.serverfarms  |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershell%2Fazurepsdrive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowershell%2Fazurepsdrive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershell%2Fazurepsdrive/lists"}