This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
Mixing PoSH and CLI commands can produce unexpected results #220
Labels
Training
Issues, bugs, and work related to training
Describe the bug
Working thru the Demo 1 - module keeps switching between PSH and Az CLI which will not work. The context can be different between the two so it needs to offer both solutions (PoSH/CLI) completely or stick with one/other
To Reproduce
Steps to reproduce the behavior:
az cloudset --name [AzureCloud | AzureGovernment]
az login
$context = Get-AzContext
$location = [your region]
Expected behavior
All commands in a given module should have both CLI and PoSH or just one of the options because the context between the two can be totally different. To do the same 'Get-Context' you would use 'az account show'
Screenshots
![Demo1ContextIssue](https://user-images.githubusercontent.com/23034473/207644631-d800c0d6-7582-48f1-aab2-0f854508c661.png)
The text was updated successfully, but these errors were encountered: