I have created a custom configuration section for a service that is to be deployed to Azure in an app service. I know how to add app settings to the app service configuration. However, I can't find information about how to handle custom configuration sections. Is this something that is supported in Azure ARM templates?
There is no way to override custom section via the Azure App Service ARM API. Instead, this is something you do by simply deploying the right web.config file to your Web App.
via ARM template NO.
where as one cam make use of FTP and add the required changes on post Deploy or make all the required changes on pre deploy. :)
Related
has anyone experienced using ARM templates to update or add Azure web app configurations and it does not update the configuration properly.
We use Octopus deploy to run our arm templates and deployments indicate to us that it is successful however the web app configurations arent updated or added.
is this a bug with arm templates? has anyone experienced this? what do you do you ensure webapp configurations are added or updated?
thanks
As DeepDave-MT said, you can refer below links
https://octopus.com/docs/runbooks/runbook-examples/azure/resource-groups
https://octopus.com/docs/deployments/azure/deploying-a-package-to-an-azure-web-app
https://github.com/Azure/azure-quickstart-templates/tree/master/application-workloads/octopus/octopusdeploy3-single-vm-windows
I have created one web application in angular and backend api is build in asp.net core.
Now my clients wants to manage two deployment slots :
1.Staging
2.Production
My Requirement is when client perform swap operation from staging->production , at that I need to change one variable which is placed in /assets/config.json(in angular application).
Basically I am placing my base-url in /assets/config.json file and when angular app is loading ,in app_initializer, i am using this base url from config.json and i am performing web api call to fetch appliation specific configuration for azure active directory.
Now base-url is different for both environments.
I have placed other app configuration variables in "configuration" section in azure app service.
But now when client swap from staging to production at that time I need to change "baseurl" but i am not able to get any provision in azure configuration section for this.
If anyone knows than please help me
There is generated Spring Boot jar file which can be accessed via URL (not git repo). How to upload jar file for deployment on Azure Web App using ARM template?
If I understand you are looking for a manner to deploy a code package (jar/war) with ARM template. In order to do so, you will have to use the MsDeploy extension in your ARM template and use the dependsOn property to make sure your app is created before deploying the application.
You may refer to below sample link:
https://github.com/Azure/azure-quickstart-templates/blob/master/umbraco-webapp-simple/azuredeploy.json
I want to deploy a Function App including code using an ARM template that is going to be published in the Azure Marketplace as a Managed App.
I've seen in the docs that you can add a sourcecontrols element in the ARM template that you can use to point to e.g. a GitHub repository. However, I don't want to use a repository, I want to code to be uploaded to the Function App.
I also know you can upload the code using the Azure CLI or powershell, however this will not be possible when publishing the app in the marketplace.
Is there a way to have a package that contains everything including the code and have that uploaded to the Function App all using an ARM template in the Azure Marketplace?
You should take a look at Run-From-Zip. Basically, you host the zip package somewhere (typically storage blob), and in ARM template you just set a WEBSITE_RUN_FROM_ZIP App Setting pointing to it.
As an alternative, you could use the ARM msdeploy extension, and point it to the zip package (e.g. something like this).
I'm creating resources on Azure using an ARM template. I have three web apps to deploy. Normally i can deploy them separately using VSTS which is slow. So is there a way to deploy a project on VSTS using an ARM template?
You can deploy a template that uses web deploy to also deploy a web app - you can deploy to slots or deploy to an existing web app (not defined in your ARM template). This sample has an MSDeploy extension that does the work.
https://github.com/Azure/azure-quickstart-templates/tree/master/201-web-app-blob-connection
You can also go this route:
https://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-get-started/
Both can be done via VSTS...
You would need to export ARM template from your azure RM portal.
Make sure
you have single resource group where all these apps have been deployed (since you want to deploy them together).
Export the resource management template and attach to your VSTS project as resource.
Add a new release task in your VSTS as Azure Resource Group Deployment.
Add connection details to your resource group.
Specify the previously exported template
Configure the parameters (or use variables).
you should be able to use VSTS build and release management to deploy ARM resources.