Build pipeline to create azure virtual machine - azure

I want to create azure VM using DevOps pipelines. can you help me out which process/task should I use? And what are the pre-requirements?
I tried with Arm template deployment, azure deployment but not worked yet.

A good approach is using Azure CLI task in your build pipeline.
Here is a sample:
Check the VM in Azure Portal:
Refer to this official doc: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-cli

Related

Where is report.json in sonarqube azure DevOps

I use sonarqube task in my azure DevOps pipeline. Where I can find analysis_report.json or scan_report.json ?
I have to create based on this report Work item in azure boards.
I use classic editor

How to automatically create a service connection in azure devops?

I would like to automatically create a service connection in azure devops. Ideally either with terraform or azure cli. I would like to do this as part of an azure devops pipeline using 1 of the above methods. Is this possible? If so how? ... I did not see any docs talking about this but it seems like you should be able to do it instead of using the UI. Thanks in advance.
You can automatically create a service connection using the az cli and the az devops service-endpoint command. Use an Azure CLI task to use this in an Azure DevOps pipeline.
Alternatively, in Terraform, you can use azuredevops_serviceendpoint_azurerm

Is it possible to failover Azure functions using a VSTS/Azure DevOps Release deployment task?

I have a timer triggered function that I'm looking to deploy in two different regions in an active-passive pattern. In disaster recovery scenario, I want to disable the active instance, then activate the passive instance in such a way that I can also keep record of this activity.
I know this can be done via powershell/Azure CLI, but I think doing this via Azure release pipelines should be better for auditing purposes. Does anyone know if this is doable?
I donot know much about Azure funtions. But there are azure powershell task and azure CLI task that you can use to run the scripts in azure release pipeline, Since it can be done via powershell/Azure CLI.
In order to run the powershell/Azure CLI scripts in azure release pipeline. You need first connect your azure devops to your Microsoft Azure subscription via service connection. Check here to create a service connection in azure devops. This service connection is needed for azureSubscription parameter of azure powershell task/azure cli task
Then you can create a release pipeline and add azure powershell task or azure cli task to run the scripts.

Is there a way to deploy Azure Data factory other than using ARM templates?

I want to deploy my azure data factory using Azure DevOps. I have worked with the deployment using ARM templates with resource group deployment tasks during the release pipeline, but I want to know any other way for the ADF deployment apart from ARM templates?
The reason being that ARM templates deploy everything but I have lot of sample pipelines in my DEV environment which cant be deployed in other QA or Production. But ARM templates are restricting me to do so.
Terraform
Azure Powershell
Ansible resource module \ Azure Cli \ SDK's \ Rest Api
Last one requires bit of creativity, you'd have to construct API call on your own.

Azure Deployment in VSTS with ARM Storage

Is there components that Will be able to deploy a project to Azure with ARM storage?
Currently, We are using "Azure Deployment" with Azure Classic, that is working properly.
But, in that components We can'T select the ARM subscription, just only the classic one.
Do you have any information about that?
Maybe the ARM template will be the solution?
Thanks
Cloud Services can only be associated with classic storage accounts.
More information, you can refer to: How to create and deploy a cloud service.
So, you need to use Azure Deployment step/task with Azure Classic.

Resources