-
Notifications
You must be signed in to change notification settings - Fork 50
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
Interactive login with az login
is not working
#218
Comments
Here is my (sanitized) driver:
name: azurerm
subscription_id: SUBSCRIPTION_GUID
transport:
name: winrm
winrm_transport: ssl
instance_type: Standard_D2_v2
location: "East US"
vnet_id: VNET_URN
subnet_id: VNET_SUBNET_URN
platforms:
- name: windows2019
driver:
image_urn: MicrosoftWindowsServer:WindowsServer:2019-Datacenter-smalldisk:latest
use_ephemeral_osdisk: true
suites:
- name: msbase
driver:
vm_name: tk-server-2019-nilla |
It's worthy to note that the Azure CLI is authenticated and I can run commands against this subscription from the command line when this issue occurs with the |
I am encountering the same issue. @bender-the-greatest - did you ever find a workaround? |
I have not, but it's not been a high priority to revisit yet. Note that I have not tried providing an explicit client id and secret, so an app registration (service principal) with the permissions necessary for |
@rogueautomation I did work around this, right now my workaround is to use an app registration and credentials file |
@bender-the-greatest @rogueautomation any luck with this issue? i am facing the same problem. |
@shyambandi - not as of yet. Our workaround is currently running WSL 2, installing az cli and CHEF Workstation in our Ubuntu WSL VM's and running test-kitchen that way. I'm told that more and more folks are bringing this issue up to CHEF, but haven't heard on a target date for their prospective fix. |
@rogueautomation i am running this on a Windows machine, can you suggest? |
Version:
Test Kitchen 3.0.0
Environment:
Windows 10.0.18363
Scenario:
Trying to get Test Kitchen working with the kitchen-azurerm driver interactively from my developer workstation. #147 indicates this support was added. However, this errors out.
Steps to Reproduce:
Create a valid kitchen file that contains the
subscription_id
and attempt to create an instance or perform another operation which requires authenticating to Azure.Expected Result:
I am expecting test kitchen to utilize my token as authenticated from the Azure CLI.
Actual Result:
I get an error about acquiring my token when the resource group attempts to be created:
The text was updated successfully, but these errors were encountered: