Setting Windows PowerShell environment variables

Changing the actual environment variables can be done by using the env: namespace / drive information. For example, this code will update the path environment variable: There are ways to make environment settings permanent, but if you are only using them from PowerShell, it’s probably a lot better to use your profile to initiate the settings. On … Read more

Connect-AzAccount – how to avoid azure device authentication?

1.To login with the user account, try the command as below, make sure your account doesn’t enable the MFA(Multi-Factor Authentication). 2.You can also use a service principal to login, use the command as below. See a similar issue I answered here, it use the old AzureRM module, for Az, just change the last line. If … Read more