No Deployment Option under Deployment found in Azure Web App Service - azure

Unable to configure Azure Web App Service to work with Github since the Deployment Option is disappeared
I am current following "Visualize real-time sensor data from your Azure IoT hub by using the Web Apps feature of Azure App Service" (https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-live-data-visualization-in-web-apps) to visualize IoT Hub Data. When I get to 'Upload a web application to be hosted by the web app', it instructs me to configure to work with Github. By going into the web app, click Deployment Options > Choose Source > Local Git Repository, and then click OK. However, I can not find the Deployment Option under Deployment. Any idea if there is some option that needs to turn on.
See the screenshot https://drive.google.com/file/d/1K5JQrTz60D_jaCdZihZKI3N67z9kV-i6/view?usp=sharing

The portal has changed, you can find the Local Git Repository under Deployment Center.

Related

configBuilder 'Secrets' failed

After the initial attempt to publish my web app to Azure I got the following error. I'm using Visual Studio 2019.
Is there a way to undo the publish?
How do I determine what is missing?
The configBuilder 'Secrets' failed while processing the configuration section 'appSettings'.: 'Secrets' Initialization Error: Method not found: 'System.String Microsoft.Configuration.ConfigurationBuilders.Utils.MapPath(System.String)'.
How do I undo the changes that Publish did within my project:
Approach-1:-
Generally, Azure Web Apps provides back up feature which you may enable in your app to keep a backup of your site. If you are sure that the deployment did not go as planned, you can restore the backup.
Goto App Service -> Choose BackUps
You can see the status of the webapps for every hour as shown here:
Click on Restore icon if needed.
Enter the restore location in Choose a location. Select Create new under the App Service box to restore to a new app. Select Create new beneath the Deployment slot box to restore to a new deployment slot.
You can choose the site configuration as well as per requirements. After providing all these, restore it.
Approach-2:-
Usually after publishing any web app to azure from local, it will be deployed on production server.
You may want to undertake some activity or verification before delivering/after delivering the website to production. You can use deployment slots in this case.
Azure provides non-production deployment slots for each web app, on which we can deploy the website temporarily.
Detailed in article given by #Krishna Kumar.
Create deployment slot by adding a slot under app service as shown:
Alternative Reference: Get publish profile

How to include appsettings.json settings into Azure DevOps build and release pipeline

We are currently researching the usage of Azure DevOps Build and Release pipelines.
We did successfully create a simple Asp.NET Core web application and pushed that application into an Azure DevOps repository.
We did successfully create a pipeline for that application consisting of Restore, Build, Test, Publish, and Publish Artifacts (as shown on the attached image) and successfully built that pipeline.
In the Azure Portal, we did successfully create a Resource Group and the Web App to host the web application
In the Azure DevOps, we did successfully create a release for that application and did successfully publish the application to the created Web App
However, in the Azure Portal, in the newly created Web App configuration section, there are no config values transferred from the application's appsettings.json.
I did try to use 'Link settings' feature on the Publish segment of the pipeline, but that didn't work
Thus, the question is how do I transfer the config values of the ASP.NET Core Web application into an Azure Portal Web App through an Azure DevOps pipeline and release?
We found a solution
Click plus sign on the pipeline (add new task) and choose 'Azure App Service Settings'
On the App Settings for the Task, add the settings you need
Save, build and add to the release
Settings from appsettings.json are not displayed in Azure App Service Configuration, but settings defined there override values in appsettings.json. So if you define again key/pair in Configuration tab it will override value from file.
Here is a link for documentation.

How to deploy an angular2 application as a webapp in azure

Can someone help me deploy an angular2 application as a webapp in azure. I have a github enterprise setup. On my Jenkins server, I would like to do a no build. On successful completion of the build, I'd like to push it to a webapp.
Every deployment I attempted, failed on npm of one form or other. I don't want to create a VM and deploy a server.
I'd appreciate any help on this.
Deployment of all supported web applications to azure web app service ( PaaS and not IaaS VM as per your requirement) is possible by the following options
from git CLI you can publish the code from your local repository to azure.
linking an online repository like bitbucket, gitlabs to azure
Powershell - publish code from your local repository to azure
Azure CLI - publish code from your local repository to azure
FTP option is available as well.
Check out this post to see how you can publish using git commandline https://learn.microsoft.com/en-us/azure/app-service-web/app-service-deploy-local-git

Continuous deployment from Visual Studio Team Services to Azure App Service

I'm trying to automatically deploy from Team Services (was Visual Studio Online) after a successful build a C# program to an azure app service without success.
I can only do it to a cloud service (classic) rather app service.
I've seen that I could plug Team Services directly to the app service with "deployment source" (I did tried so far because both tenant, Team Services & Azure one are different and requires some effort)
but wouldn't it break the normal release / test process from Team Services?
I can only find little information over internet regarding these topics ...
Any help would be appreciated.
You can also add a FTP Upload task in your build definition to publish the output to Azure App Service via FTP Method.
To publish to an Azure App Service, you need to use either of the following Agent tasks:
Here is a walkthrough: https://www.visualstudio.com/en-us/docs/build/apps/aspnet/aspnet4-to-azure
When making a new build definition, it is easiest to choose the Deployment -> Azure WebApp option.

How can a node.js app be deployed to azure via appveyor (pulled from github)?

I currently have a .net and an angular app, both deployed to azure via appveyor. Now I want to add a node.js app, also in a github repo, also to be deployed via appveyor and into azure.
However I have no idea where to start.
What kind of azure app should I create? Just the standard web app service?
How do I deploy this to azure via appveyor?
What kind of azure app should I create? Just the standard web app
service?
At first, I could share Azure App Service plan and when we selected one of them with you. Please refer to this document(https://azure.microsoft.com/en-us/documentation/articles/azure-web-sites-web-hosting-plans-in-depth-overview/ ). Then, for selecting which one service plan, it depended on the site load and requirements. It is not relation to deployment channel.
How do I deploy this to azure via appveyor?
You can try to follow this guide Deploying using Web Deploy, mark Package Web Applications for Web Deploy check box in the settings=>build tab of your project in appveyor.
Then login Azure Management Portal and download publish profile.Specify the following deployment settings in AppVeyor:
Server: https://<publishUrl>/msdeploy.axd?site=<msdeploySite>
Website name: <msdeploySite>
Username: <userName>
Password: <userPWD>
NTLM: disabled
Replace <publishUrl>, <msdeploySite>, <userName> and <userPWD> with values from downloaded publishing profile XML file, in the deployment tab.

Resources