How do i assign an azure context to a variable for later use?
-
Microsoft documentation: https://docs.microsoft.com/en-us/powershell/azure/context-persistence?view=azps-3.1.0
Also see: How do i list the azure contexts available?
PS /home/training> $context = Get-AzContext -Name "Engineering..."
You can echo that variable. Just to verify it is set.
PS /home/training> echo $context
© Lightnetics 2024