-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GenerateResourcesAndImage reaches error that Connect-AzAccount is not recognized #3465
Comments
Looks like guide is incorrect. You should install Azure PowerShell instead of Azure CLI: https://docs.microsoft.com/en-us/powershell/azure/new-azureps-module-az?view=azps-6.0.0 |
@norihiro |
Thanks @maxim-lobanov,
|
Description
Following this instruction,
the script
helpers/GenerateResourcesAndImage.ps1
callsConnect-AzAccount
but it is not found.Area for Triage:
I'm sorry, I'm not sure.
Question, Bug, or Feature?:
Bug
Maybe documentation need to be updated how to install
Connect-AzAccount
or the script should be revised not to useConnect-AzAccount
.Virtual environments affected
Image version
n/a
Expected behavior
The script
GenerateResourcesAndImage.ps1
successfully runs.Actual behavior
The script
GenerateResourcesAndImage.ps1
shows an error as below.Repro steps
A description with steps to reproduce the issue. If your have a public example or repo to share,
please provide the link.
choco install packer
Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi
Set-Location c:\
git clone https://github.com/actions/virtual-environments.git
Set-Location C:\virtual-environments
Import-Module .\helpers\GenerateResourcesAndImage.ps1
GenerateResourcesAndImage -SubscriptionId {YourSubscriptionId} -ResourceGroupName "myTestResourceGroup" -ImageGenerationRepositoryRoot "$pwd" -ImageType Ubuntu1604 -AzureLocation "East US"
The text was updated successfully, but these errors were encountered: