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

Closed
juneesingh opened this issue Nov 19, 2024 · 5 comments · May be fixed by #6215
Closed

EnvrionmentCredential Error in VS code with logic apps only #6149

juneesingh opened this issue Nov 19, 2024 · 5 comments · May be fixed by #6215
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.

@javierda-terawe
Copy link

Having the same issue, I already uninstalled VSCode and reinstalled but have the same issue, if I roll back to an older version of the extension, it works.

[2024-12-04T17:05:24.125Z] Incoming HTTP request ends with server failure: correlationId='1804aa8c-94c7-430d-8a87-fe226423ff49', authorizationSource='Management', authorizationAction='', operationName='POST/API/MANAGEMENT/OPERATIONGROUPS/OPERATIONS/DYNAMICINVOKE', httpMethod='POST', hostName='localhost', targetUri='http://localhost:8000/runtime/webhooks/workflow/api/management/operationGroups/xmlOperations/operations/getSchemaArtifacts/dynamicInvoke?api-version=2018-11-01', userAgent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.95.3 Chrome/128.0.6613.186 Electron/32.2.1 Safari/537.36', clientRequestId='', clientSessionId='', clientIpAddress='', clientApplicationId='', apiVersion='2018-11-01', contentLength='-1', serviceRequestId=':1804aa8c-94c7-430d-8a87-fe226423ff49', durationInMilliseconds='0', httpStatusCode='503', exceptionMessage='', errorCode='', failureCause='Service', errorMessage='', referer='', commandName='', parameterSetName='', contentType='application/json; charset=utf-8', contentEncoding='', armServiceRequestId='', organizationId='', activityVector='IN', locale='en-US', additionalProperties='{"ParentActivityId":"00-505465be23d1cf51974da953bd6c4ffa-9e40956e43582b95-00"}', targetResourceProvider='', targetResourceType='', extensionVersion='1.94.13.0', siteName='UNDEFINED_SITE_NAME', slotName='', activityId='1804aa8c-94c7-430d-8a87-fe226423ff49'.
9:26:57 AM: Error: EnvironmentCredential is unavailable. No underlying credential could be used. To troubleshoot, visit https://aka.ms/azsdk/js/identity/environmentcredential/troubleshoot.

@ccastrotrejo
Copy link
Contributor

I have created a PR to get the fix for this issue. However, due to the deployment freeze we are not able to release an updated version of the extension until early next year. Please download the private vsix from link below if you face this issue. You could follow this guide to install the extension from a vsix.

vscode-azurelogicapps-5.6.0.vsix.zip

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

Successfully merging a pull request may close this issue.

5 participants