Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy PDBs on an Azure Web Role

I have a project that is deployed via a VS 2012 Azure Project (from right in VS, not manually). The web role project is set to build "pdb-only" Debug Info in release mode, but when deploying the PDBs are not packaged and copied to the web role VM on Azure. How do I get the PDBs to get included in the package and transmitted to the server?

The reason I want to include my PDBs in production is because I want to get line numbers in my ELMAH reports.

like image 816
pbarranis Avatar asked Oct 18 '12 20:10

pbarranis


People also ask

How to view the deployed Web role in Azure Functions?

For viewing the deployed web role we need to get the url. For this select the Deployment 1 row from the list above. From the property pane on the right we can see the DNS name. Some additional information has to be known while dealing with roles. The virtual machine size provides the resource capacity of the virtual machine.

What is Azure role-based access control?

Azure role-based access control (Azure RBAC) has several Azure built-in roles that you can assign to users, groups, service principals, and managed identities. Role assignments are the way you control access to Azure resources. If the built-in roles don't meet the specific needs of your organization, you can create your own Azure custom roles.

How do I deploy to an Azure web app?

The simplest way to deploy to an Azure Web App is to use the Azure Web App task. To deploy to any Azure App service (Web app for Windows, Linux, container, Function app or web jobs), use the Azure App Service Deploy task.

What are the built-in azure resources roles?

Role assignments are the way you control access to Azure resources. If the built-in roles don't meet the specific needs of your organization, you can create your own custom roles for Azure resources. This article lists the built-in roles for Azure resources, which are always evolving.


Video Answer


1 Answers

I tried this out with a basic "File, New Cloud project" with the following settings:

  1. Web Project -> Properties -> Build -> Advanced -> Debug Info: pdb-only
  2. Web Project -> Properties -> Package/Publish Web -> Uncheck Exclude generated debug symbols

When I compiled and deployed a basic solution using these 2 settings, I found WebRole1.dll and WebRole1.pdb in the F:\AppRoot\Bin\ folder.

Is this what you were looking for?

like image 134
Chris Koenig Avatar answered Oct 15 '22 15:10

Chris Koenig