I can access my azure table storage (eotg) successfully when I call it from my local machine. When I publish to eyeonthegroundwebapp20250325083010 I get a 500 response. How do I modify the settings for eotg to allow access from the webapp.

Paul Sachs 20 Reputation points
2025-04-08T11:50:08.2333333+00:00

I can access my azure table storage (eotg) successfully when I call it from my local machine. When I publish my webapp to my azure web app (eyeonthegroundwebapp20250325083010) I get a 500 response. How do I modify the settings for eotg to allow access from the webapp.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,131 questions
{count} votes

Accepted answer
  1. Sirra Sneha 385 Reputation points Microsoft External Staff
    2025-04-10T10:25:19.2833333+00:00

    Hi @Paul Sachs ,

    I’m glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I’ll repost your solution in case you’d like to accept the answer.

    The solution was to use blob storage to store the cryptographic key and then to delete previously created identities and start with fresh identities using the new cryptographic key. That works.

    If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Obinna Ejidike 740 Reputation points
    2025-04-08T12:31:27.23+00:00

    Hi Paul Sachs

    Thanks for using the Q&A platform.

    Kindly check if your Azure table storage has network restrictions enabled: Configure Azure Storage firewalls and virtual networks | Microsoft Learn.

    Also, check that the connection string (DefaultEndpointsProtocol=...) for accessing table storage is set correctly.

    Find Environment Variables and App Settings Reference - Azure App Service | Microsoft Learn Configure an App Service App - Azure App Service | Microsoft Learn

    If the response was helpful, please feel free to mark it as “Accepted Answer” and consider giving it an upvote. This helps others in the community as well.

    Regards,

    Obinna

    0 comments No comments

  2. Obinna Ejidike 740 Reputation points
    2025-04-08T14:51:59.5966667+00:00

    The error "CryptographicException: The key {GUID} was not found in the key ring" suggests the Data Protection system is trying to decrypt something using a key that isn't available on the current instance.

    By default, ASP.NET Core uses the local file system for key storage, which doesn't work across multiple instances or across deployments in a web app unless you persist them centrally.

    You should configure a central storage (like Azure Blob Storage) for Data Protection keys.

    Find https://learn.microsoft.com/en-us/aspnet/core/security/data-protection/implementation/key-storage-providers?view=aspnetcore-7.0&tabs=visual-studio

    Ensure your Web App has access to that blob container via a connection string or Managed Identity: https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-access-storage?tabs=azure-portal

    If the response was helpful, please feel free to mark it as “Accepted Answer” and consider giving it an upvote. This helps others in the community as well.

    Regards,

    Obinna


  3. Paul Sachs 20 Reputation points
    2025-04-10T07:14:10.8266667+00:00

    Hi, this issue seems to have gone away. I am not sure why, but I am happy to close the issue. Thanks.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.