How to create Standard Logic App using Rest api? - azure

Using the official documentation Azure Logic Apps, i'm able to create and work with Consumption Logic Apps. Is it possible to create Standard Logic App using Rest API in similar way?

The simple answer, as it currently stands and looks to be, is no.
As per the documentation ... https://learn.microsoft.com/en-us/azure/logic-apps/single-tenant-overview-compare#create-build-and-deploy-options
There are currently limited options for a standard logic app.
Standard
Consumption
Update
Standard logic apps now have additional ways to deploy, still not the full suite but it's grown.

This is tecnically possible but you need to rethink the definition.
Logic App Standard (aka. Single-Tenant Logic App) is built on top of the function runtime and the infrastructure is seperated from the actual workflow definition. Deployment to the resource basically works the same way as for Function Apps.
Deploy the infrastructure
Deploy the workflow (function for function apps).
More on that here: DevOps deployment for single-tenant Azure Logic Apps
For your case you would:
Deploy the infrastructure via the REST API
Storage account
Server Farm (App Service Plan)
Site (App Service)
Build the Logic App Standard project and create a zip archive.
Deploy the archive using zip deployment via REST API.
This sounds easy but requires more work, see links below.
Links:
Set up DevOps deployment for Standard logic app workflows in single-tenant Azure Logic Apps
Deploy ZIP file with REST APIs

Related

nodejs: how to deploy a custom SDK along with the nodejs app on Azure

I developed a SDK.js that ease the use of my API supported by my nodejs server on Azure.
What would be the best way to deploy this SDK.js to the server so that client can make use of it after having it embedded in their code via a tag?
Note: I'd like my SDK.js to be babelled and minified in the process.
As far as where to put the file, there are two options I can recommend: either in a public endpoint or by leveraging Azure Storage.
As for deployment, one solution is to include it in whatever deployment process the API. If you are looking for an outside solution, there are a large number out there, but two that will make the process as simple as possible that I am aware of are Azure Devops and Github Actions. Of those two, Github Actions has a larger free tier if your project is small.

How to deploy single cshtml file in Azure app service

I have a .Net core app developed using Visual Studio 2019 and deployed on Azure app service. I have function app as well in the same solution. I have to do couple of things and then redeploy to Azure app service.
Add one .cshtml file
Modify one .cshtml file
My question is, how to deploy the CSHTML file only to the Azure app service? Without affecting the existing functionality of application.
As per my understanding, if web app is deployed in Azure app service then the whole thing (solution) has to be deployed even though there are/is very small code modifications.
Please let me know.Thanks.
Even if you have Web App and Function App in the same solution, they should be separated units of deployment. That said, your deployment pipeline should be separately triggered for Web App and Function App.
From the technical point of view(or architecture) there's no concept of "solution". Solution(.sln) is a Visual Studio specific being and even though it's supported e.g. in VS Code, I'd never treat it as deployment unit. Especially in your scenario, when in fact two separate services are responsible for handling your code.
Even if you deploy Function App as a part of the same App Service Plan as your Web App, it's still a separate Azure service. In such a scenario they only share compute.
Yes its possible if you have access to kudu deployment center you can perform manual add/update information , please visit below URL:-
https://[yourAppName].scm.azurewebsites.net
You can also navigate to this site using the azure portal , once you open the app service blade you will find the kudu deployment center option in the bottom left of the menu.
It will provide an online file explorer of your application hosted on the app service and from there you can migrate to relevant folder and perform add/update.

Deploying Azure Function code with ARM/Azure Resource Group

I am stuck with an issue where I want to deploy an Azure function and the code with Azure Resource Group but it seems this isn't supported? I followed the steps here and edited it to include an Azure Function project instead of the web app
https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/create-visual-studio-deployment-project#deploy-code-with-your-infrastructure
We are wanting to list an app in the market place that will deploy an Azure function into the customer's environment (and not our own) - hence assuming this needs to be a 'managed app' and needs the ARM/ARG template
ARM can only be used to define the structure, but the deployment part still needs to use other methods.
Have a look of this doc:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-infrastructure-as-code

How do you create an installer for Azure Web Apps / Azure Websites

I am a software vendor with a .net web solution that I want customers to be able to easily install / deploy into Azure Web Web Apps / Azure Websites along with a Sql Azure backend. I can't find any installer tool that supports this scenario. I have also looked into the Azure Marketplace but it seems the only option there is to create VM images. I want my customer's to avoid having to deploy to an manage VMs and adopt the IaaS model. Instead they should be able to install to Azure Web Apps with a package that copies all the web solution files and installs and connects the Azure Sql. Is this possible or will I have to manually deploy and configure Azure solution for each customer?
You can use the VS Marketplace to do the deployment. What you need is to create an ARM template. There is a huge number of samples here: https://github.com/Azure/azure-quickstart-templates - you can pick one of the web app ones - for example: https://azure.microsoft.com/en-us/resources/templates/201-web-app-sql-database/ - has a SQL database linked to a web app.
The ARM template allows you to do a "no-hands" deployment of the resources and know when they are ready for further action. You can also deploy from any of the supported continuous deployment options (see the template with a GitHub connection as an example) or you can use ftp/msdeploy after the deployment is successful.
This is a good tutorial https://learn.microsoft.com/en-us/azure/azure-resource-manager/vs-azure-tools-resource-groups-deployment-projects-create-deploy
This is the github example mentioned in previous answer
https://github.com/Azure/azure-quickstart-templates/tree/master/201-web-app-github-deploy

Deploying Applications other than WebApp using Azure Resource Manager

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.

Resources