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
Related
When restoring a backup for an App Service, does it also restore all the configurations like Connection strings and Application settings?
I have looked through the documentation but it is unclear.
Thanks.
No, the backup only saves the App Service Data.
If you what to save the App Services configuration, the easiest way is by downloading the ARM template.
You only need to deploy the ARM template if you need to recreate the resource.
Here is the documentation for deploying an ARM template:
Azure CLI: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-cli
PowerShell: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-powershell
Portal: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-portal#deploy-resources-from-custom-template
I am working on Azure ARM templates. I created the ARM templates for azure web app and azure SQL database, for that I configured the Continuous Integration and Continuous Deployment successfully without any issues.
After one month, I added the one more application settings for web app and added the new firewall rule for azure SQL database and check in the code into VSTS it’ automatically triggered the build and then release.
After every release the ARM template code deployed into azure resources. So, that’s why azure resources recreated once again. But I want to deploy only the changes of ARM template of azure web app and SQL database etc….
I have few doubts in this
I created the azure resources using ARM templates through the CI & CD process from VSTS. After that I deployed the application code into azure web app, after few days I added the some code in web app ARM template and deployed it into azure. After redeployed the ARM templates once again then the application code is also gone. For that what can I follow the better approach?
How to deploy the specific changes of ARM templates code in to azure, once I deployed the primary ARM template first.
You need to make sure the code is also being deployed with the ARM Template, because it adjusts the configuration to what is defined in the template. whats why you see such a behavior.
Just edit the template and redeploy into the same resource group. that's what they are for.
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. :)
I am currently looking into using ARM to deploy new environments of our Azure Components. We have a lot of web apis that are deployed to Cloud Services, since we need access to the underlying OS to get CPU usage for App Dynamics metrics. When reading through ARM, it seems as if they are deprecating Cloud Services, but I have some confusion about what is replacing it. I see that you can create Web Apps using this and use Publish from Visual Studio to deploy the app it, but I see no options for Cloud Services. So what is the preferred method to do this? Creating a VM and deploying using Web Deploy? What about VM scaling. Any help would be greatly appreciated.
My company is in the process of moving a legacy app to Azure using Cloud Services and we were concerned about the future of Cloud Services. Since we are somewhat early into the project and would like to use the ARM model we thought it would be easier to make a move now if we knew the future. After a few conversations with project leads at Microsoft on this topic we were only told that we should continue working with Cloud Services as they would continue to be supported.
It's quite clear that the move to ARM was not well thought out in terms of direction and consequences of existing services that many people are already using. Reading between the lines I would say that there is no plan to convert Cloud Services from the ASM to ARM model.
If application insights (https://azure.microsoft.com/en-us/services/application-insights/) are sufficient for your monitoring needs, then you can use web apps. These can be deployed via ARM, and can automatically deploy from a git repo or web deploy package. See this example:
https://github.com/Azure/azure-quickstart-templates/tree/master/201-web-app-github-deploy
The issue here that you may be trying to do operations which are restricted by the web app sandbox.
Failing that, you can use an ARM template to set up a VM and then invoke a custom site extension which will run powershell code to do further provisioning. This powershell code can fetch any package that you may want to install. See this ARM template for example: https://github.com/Azure/azure-quickstart-templates/tree/9ad72f1f5f0008c14311be79eee036b871712394/201-list-storage-keys-windows-vm
Once the VM is created you would be able to modify it and scale as needed.
We have a VSO repository with multiple sites in the same solution. We want to be able to deploy our sites independently of each other to Azure with continuous delivery. Right now the first site alphabetically is deployed to all our sites which of course is not desirable.
Is this possible to achieve?
I have tried to set the Project key to the correct csproj in App Settings like suggested here: https://github.com/projectkudu/kudu/wiki/Customizing-deployments without any success. Maybe Kudu is not used for VSO?
Any help would be greatly appreciated!
You should move away from trying to do this in a build, especially if you want that level of control.
You have Release Management Online provided with your VSO account and can use the Release Management client to configure your releases.
I believe that you can right-click on your Build and have an appropriate starter release template created when configured.
http://nakedalm.com/create-release-management-pipeline-professional-developers/
Here is an example of and end to end deployment with a web app. Deploying to Azure with RM is Childs play...