# PowerZure

```
git clone git@github.com:hausec/PowerZure.git
cd PowerZure
pwsh-preview

# Authenticate
Connect-AzAccount

# Import PowerZure
# impo is shorthand for Import-Module
ipmo ./PowerZure.ps1

# If you have multiple subscriptions, set the one you want to target:
Set-AzureSubscription -Id [Subscription ID]

# Enumerate all roles
Get-AzureRole

# Enumerate resources the current user has access to
Get-AzureTargets

# Show info about current user
Show-AzureCurrentUser
```

Resources:  
[https://powerzure.readthedocs.io/en/latest/](https://powerzure.readthedocs.io/en/latest/)  
[Fix error when importing AzureADPreview](https://stackoverflow.com/questions/64792108/getting-error-could-not-load-file-or-assembly-system-windows-forms-at-import)  
[Fix missing modules](https://github.com/Azure/azure-docs-powershell-azuread/issues/189)

#### Show all functions

```
powerzure -h
```