Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Snippets/Azure/CLI/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ Using PowerShell as Admin install Azure CLI
Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi
```

After the Download is completed, use the following command to check your new Azure CLI's ExecutionPolicy,
this will need to display ```Unrestricted``` in order to function correctly.
```
Get-ExecutionPolicy
```

If anything other than ```Unrestricted``` is displayed {RemoteSigned, Restricted} use the following command to change the ExecutionPolicy
```
Set-ExecutionPolicy Unrestricted
```

If you haven't already, check your new Azure CLI's ExecutionPolicy again to confirm that the ExecutionPolicy has been set to ```Unrestricted```
```
Get-ExecutionPolicy
```

Make sure you restart the powershell instance, then run

```
Expand Down