You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
CLI is failing to deploy when reading the contents of my AZURE_LOGIN_CONFIG file. Logs below:
✖ Cannot read properties of undefined (reading 'find')
✔ Successfully logged into Azure!
Found an existing Azure config file, getting Tenant and Subscription Id from /home/vsts/.azure/azureProfile.json
This is the content of my azureProfile.json:
{"installationId": "redacteduuid"}
I could track down the error to be on this statement:
I managed to solve the problem by setting the "Use global Azure CLI configuration" option in the pipeline step. But this still doesn't solve the bug. The CLI must check for the existence of the subscriptions key.
I'm using the latest version 2.0.1
Describe the bug
CLI is failing to deploy when reading the contents of my AZURE_LOGIN_CONFIG file. Logs below:
This is the content of my
azureProfile.json
:I could track down the error to be on this statement:
static-web-apps-cli/src/cli/commands/login/login.ts
Line 165 in 5f440e3
And the line before coerces the configuration to an interface:
static-web-apps-cli/src/cli/commands/login/login.ts
Line 164 in 5f440e3
Which resolves to this interface:
static-web-apps-cli/src/swa.d.ts
Lines 443 to 446 in 5f440e3
Which is not true. My
azureProfile.json
doesn't have the subscriptions key. Therefore the failure.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected to have the command working fine.
The text was updated successfully, but these errors were encountered: