Azure App Service: deploying java resource

Zam Riaz 1 Reputation point
2021-08-11T13:15:32.397+00:00

Hi,

I'm using Azure's maven plugin to deploy my Java project to Azure app service. My project includes one excel file as a resource. This excel file is properly referenced inside my .pom file and when I run maven's package command to deploy the project to Azure, the command returns success for both the .jar file and the excel resource file.

Problem is while the app runs successfully, it is unable to find the excel file. I also tried to manually login to the default local storage assigned for my app service, and it doesn't show the Excel file anywhere. My question is where are both .jar and .xlsx files being copied in Azure app service and is there a way that I could have the .xlsx file deployed to default local storage, let's say, in home directory???

Best Regards

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,949 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Joaquin Vano 76 Reputation points Microsoft Employee
    2021-08-13T02:50:11.217+00:00

    First, I suggest you to test running the App locally to see if it works as expected and then deploy it to Azure App Service. If it works locally and not in App Service, please open a support ticket in Azure and we can better assist you finding out what's going on.