Skip to content
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

EnvrionmentCredential Error in VS code with logic apps only #6149

Open
juneesingh opened this issue Nov 19, 2024 · 3 comments
Open

EnvrionmentCredential Error in VS code with logic apps only #6149

juneesingh opened this issue Nov 19, 2024 · 3 comments
Assignees
Labels

Comments

@juneesingh
Copy link

juneesingh commented Nov 19, 2024

Does this occur consistently?

Repro steps:

  1. I installed VSCode, installed Functions, Azure Accounts, Logic Apps (Standard) extensions
  2. Downloaded code from here https://github.com/Azure/logicapps/tree/master/ai-sample
  3. Created project and trying to 'deploy logic app' using steps here: https://github.com/Azure/logicapps/tree/master/ai-sample#follow-these-steps-to-create-the-azure-standard-logic-apps-project-and-deploy-it-to-azure. Please note that I have successfully deployed a function app following the previous steps in the same article. Only logic apps dont work.
  4. Error: EnvironmentCredential is unavailable. No underlying credential could be used. To troubleshoot, visit https://aka.ms/azsdk/js/identity/environmentcredential/troubleshoot.

The expectation is for the deployment to work. It is a fairly simple logic app with not many configurations.

I have reinstalled, restarted everything. Same behavior each time.

Action: azureLogicAppsStandard.createLogicAppAdvanced

Error type: Error

Error Message: Error in creating logic app. Error: Operation cancelled.

Version: 4.107.4

OS: win32

OS Release: 10.0.22631

Product: Visual Studio Code

Product Version: 1.95.3

Language: en

@ccastrotrejo ccastrotrejo self-assigned this Nov 20, 2024
@ksks200
Copy link

ksks200 commented Nov 27, 2024

Any update on this? We are facing the same error. We were previously able to deploy to logic app via VScode.

@ccastrotrejo
Copy link
Contributor

Hi @ksks200 I have reached out to the owners of the package library that we use for the Authentication. As for now I haven't had a replied yet, but I just pinged them today for an update.

Do you see any errors in the console?

As a workaround you can downgrade the vscode extension version to 4.107.3.

@czm97176
Copy link

czm97176 commented Dec 3, 2024

i am facing the same issue. Following is the error in the console

2:51:21 PM: Error: EnvironmentCredential is unavailable. No underlying credential could be used. To troubleshoot, visit https://aka.ms/azsdk/js/identity/environmentcredential/troubleshoot.
[2024-12-03T14:59:31.971Z] The Azure Storage connection string is either empty or invalid. Unable to record diagnostic events, so the diagnostic logging service is being stopped.
[2024-12-03T14:59:31.971Z] Azure.Data.Tables: Value cannot be null. (Parameter 'connectionString').
[2024-12-03T14:59:31.977Z] Error occurred when attempting to purge previous diagnostic event versions.
[2024-12-03T14:59:31.977Z] Microsoft.Azure.WebJobs.Script.WebHost: Object reference not set to an instance of an object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants