Forum Discussion
Salam_ELIAS
Feb 04, 2023Brass Contributor
AZURE function Visual studio code does not trigger "Select Storage Account"
I am trying to follow tutorial at Create your first durable function in Azure using C# | Microsoft Learn It is indicated at step 3 When Visual Studio Code prompts you to select a storage account...
Robina
Feb 05, 2023Iron Contributor
"Select Storage Account" feature in Visual Studio Code for Azure Functions can sometimes not be triggered due to a few reasons such as an outdated Azure Functions extension, incorrect configuration of Azure account, or incorrect workspace settings.
To resolve this issue, try the following steps:
Update Azure Functions extension to the latest version.
Ensure you have logged in to the correct Azure account in Visual Studio Code.
Check the workspace settings to make sure that the Azure Functions extension is enabled for the workspace.
To resolve this issue, try the following steps:
Update Azure Functions extension to the latest version.
Ensure you have logged in to the correct Azure account in Visual Studio Code.
Check the workspace settings to make sure that the Azure Functions extension is enabled for the workspace.
Salam_ELIAS
Feb 05, 2023Brass Contributor
Yes, Robina, I have setuop Azure Functions just before starting the tutorial last week so I presume it is the most recent version.
Yes, I am logged with my full admin user as you can notice in the snapshot as storage is coinnected and I can see my storage accounts.
Regarding settings, I think that tehy are correct they are as follows
- Salam_ELIASFeb 05, 2023Brass Contributor
Robina, I hit F5, and I was prompted to choose a storage account, the project started toi build but I got the following error
- Salam_ELIASFeb 05, 2023Brass Contributor
Finally Robina, I was able to run the function and do a get in postman, however, when I try to browse or do a get in Postman for "statusQueryGetUri" nothing happen and response, I waitd for more than 15 minutes and nothing gets dispalyed as indicated
You must get an eventual response, which shows us that the instance has completed and includes the outputs or results of the durable function- RobinaFeb 05, 2023Iron ContributorGood to hear your issue resolve
- RobinaFeb 05, 2023Iron ContributorCheck out this article https://learn.microsoft.com/en-us/azure/azure-functions/functions-add-output-binding-storage-queue-vs-code?tabs=in-process&pivots=programming-language-csharp
- RobinaFeb 05, 2023Iron ContributorA class containing the new functions is added to the project. Visual Studio Code also adds the storage account connection string to local.settings.json and a reference to the Microsoft.Azure.WebJobs.Extensions.DurableTask NuGet package to the .csproj project file.