I have created an Azure API App using visual studio. I run it locally its working fine then i published it to Azure from the Visual Studio publish -> Microsoft Azure API App option. The API app is deployed to Azure and working fine.
Is there any other option to deploy it to azure using publish package without using visual studio? If yes then how it can be done, please help.
Or can we create a package for the API App then can be used further?
You don't need to Publish using Visual Studio. Underlying an API app is a "Host". You can see this by browsing to the API app in Ibiza. All the deployment options for Web Apps work with this host. This article highlights the options: https://azure.microsoft.com/en-in/documentation/articles/web-sites-deploy/.
Related
We have a App Service Enviroment https://learn.microsoft.com/en-us/azure/app-service/environment/intro I have set up an App in but I am struggling to either publish from my machine (I've added the URLs to my HOSTS file and I can see it in a browser) and cant see a clear way to publish it from Azure Dev Ops (my preferred option).
I'd be happy to be pointed to TFM but everything I find is out of date / not near the options I can see in Dev Ios or Visual Studio (2019 / 2019 Preview).
EDIT: Also note this is a multi project solution (various console apps, an API and a website it is the API / Website I want to publish)
EDIT 2: So "its always DNS" it was a DNS issue in trying to publish from Visual Studio
You can check these two links:
https://learn.microsoft.com/en-us/visualstudio/deployment/quickstart-deploy-to-azure?view=vs-2019
https://learn.microsoft.com/en-us/azure/app-service/deploy-continuous-deployment?tabs=github
If you use Visual Studio, see: Deploy an ASP.NET Web App in Azure App Service.
If you use Azure pipeline, this doc: Deploy an Azure Web App provides a tutorial to build web app and then deploy to an Azure Web App. Also see this video for detailed guidance: Build and deploy to an Azure Web App using VSTS (Quick Starts).
BTW, there are a few useful tools: Azure DevOps Labs, Azure DevOps Services Demo Generator, and DevOps Starter which will help you to get started with Azure DevOps services to automate software delivery and meet business needs.
We have a web app hosted on Azure App Service. We've been given a publish profile for this app on Azure. If it was Visual Studio, I'd have done an import of this profile and would deploy the app. However in vscode, I don't see any options to import the publish profile. How can I now deploy the app with just the publish profile in hand? Please help.
VS Code use Zip-Deploy while the publish profile has Web-Deploy and FTP credentials. The easiest way for you would be to use an FTP client with the FTP credentials found in the publish profile.
You can use the Azure App Service extension to deploy directly from VSCode which will acts similar to how you build profile in Visual studio
I have created a Xamarin Android App that uses Azure for the back end. It seems that it would be better to host it in an App Service, but in Visual Studio 2017 Community, the only option seems to be to host it in a Classic Could Service. In VS, I created a Cloud Service project and added the WCF Project as a Role. Is there a better way to do this?
If you can't use Visual Studio Web Deploy, you can use FTP to deploy your compiled project. The FTP information is located in the Overview blade of the App Service. In the same blade, you can also click on the Publish Profile button to download an XML file containing credentials for Web Deploy and FTP.
Here's a video explaining the whole process.
Ok. So I used Web Apps Migration Assistant to migrate our enterprise web app to Azure. But I am at a total loss now as to how to create a local solution connected to that web app and how to sync everything from Azure into VS Team Services. I've tried to connect via FTP and use Publish from there but I've run into a filename too long issue.
Additional data from comment:
In the short term I've tried Open->Website in VS through FTP but get filename length errors when publishing. So basic question is how do you create a project in VS with EXISTING code in Azure Web App.
The Azure Web App project/files can’t be sync to VS Team Services or local, but the project in VS Team Services can be sync (deploy) to Azure Web App, for this way, you can make changes to your project in Visual Studio and push changes to VS Team Services, then the changes can be sync to Azure Web App.
Simple steps:
Push code to VS Team Services git repository
Configure Continuous deployment for Azure Web App
Make changes and push to VS Team Services git repository
More information, you can refer to: Continuous deployment to Azure for ASP.NET Core, with Visual Studio and Git.
So I recommend that you can push your enterprise web app project to VS Team Services, then refer to previous steps.
Any idea how to enable remote debugging when using Visual Studio Online Hosted Build? When I deploy from visual studio using publish, I'm able to access the Remote Debugger on my Azure Cloud Service. If I publish from Visual Studio Online using the same publish configuration file, I can't use the remote debugger.
The azurePubxml profile has two options <EnableRemoteDebugger> and <RemoteDebuggerConnectorCertificateThumbprint>, which don't seem to be picked up.