This pull request includes changes to the azure_jumpstart_hcibox/scripts/preprovision.ps1 file to improve the Azure CLI and PowerShell context setting process. The most significant change is the addition of a check to ensure that the Azure CLI is authenticated to the same tenant as Azure PowerShell. If not, the script will perform a login operation with Azure CLI using the tenant ID.
azure_jumpstart_hcibox/scripts/preprovision.ps1: Added a check to verify if Azure CLI is authenticated to the same tenant as Azure PowerShell. If not, the script performs a login operation with Azure CLI using the tenant ID. This change ensures that both Azure CLI and PowerShell are operating under the same context, which is crucial for the correct execution of the script.
Hi janegilring! Thank you for opening this Pull Request. Someone will review it soon. Thank you for committing to making the Azure Arc Jumpstart better.
This pull request includes changes to the
azure_jumpstart_hcibox/scripts/preprovision.ps1
file to improve the Azure CLI and PowerShell context setting process. The most significant change is the addition of a check to ensure that the Azure CLI is authenticated to the same tenant as Azure PowerShell. If not, the script will perform a login operation with Azure CLI using the tenant ID.azure_jumpstart_hcibox/scripts/preprovision.ps1
: Added a check to verify if Azure CLI is authenticated to the same tenant as Azure PowerShell. If not, the script performs a login operation with Azure CLI using the tenant ID. This change ensures that both Azure CLI and PowerShell are operating under the same context, which is crucial for the correct execution of the script.