I'm new to Azure and trying to setup an automation.
My questions is, is it possible to deploy virtual machine in another tenant using arm template? I saw these two links in Azure, but did not give me clear idea how I can use that.
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/share-images-across-tenants
https://github.com/Azure/azure-cli/issues/11151
Scenario: Two tenants, tenantA and tenantB. I have SIG setup in tenantA and I want to be able to deploy VM in tenantB using image from SIG in tenantA. I'm currently using Azure Java SDK to do so but I was wondering if I can do it using ARM template?
Thanks in advance!
First, follow the instructions in https://learn.microsoft.com/en-us/azure/virtual-machines/windows/share-images-across-tenants to share the VM image with tenant B.
Once that is done, you can reference this quickstart to create an ARM template using the shared image https://github.com/Azure/azure-quickstart-templates/tree/master/101-vm-from-sig/
Related
I have deployed a managed application into Azure Marketplace. This application is installed with a Managed Resource Group containing multiple resources, including a Linux VM.
I have a DevOps account where I am setting up pipelines to perform automatic upgrades to my application which gets installed in my VM.
I need to find a way where every new VM (created as part of marketplace application install) is automatically configured with my DevOps pipeline.
I thought I could just export an ARM template for the VM which would include the 'Continuous Delivery' configuration, and club it to my mainTemplate.json(marketplace template). But as I checked, Azure doesn't allow that. Can someone advise on how I can achieve this?
Thanks in advance.
What should be the type under resources, if I want to create an ARM template for Azure Active Directory?
Is there any resources for adding User/Group/Application features in Azure Active Directory through ARM templates?
Currently, there is no way to programmatically provision an Azure Active Directory. Thus, there is also no ARM templates available for that.
You have to use either, the Graph API (REST) or a PowerShell Module like AzureAD to create User / Application for an existing AAD.
I'm pretty sure there is none, looking at the Azure ARM schema I don't see anything Azure AD related. You can look at the ARM Schema here.
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.
I need to create multiple Azure Function apps in different geographic locations over and over, so I need to automate this. Doing this in the Portal isn't going to scale. I thought there would be a Nuget package for doing this, but I haven't found it yet. Any ideas on how to automate the creation of Azure Function Apps?
There isn't an Azure Functions specific NuGet package or API. Functions works with the standard Azure Resource Manager APIs (consistent with the way you manage other Azure services) and new Function Apps can be provisioned using PowerShell, the Azure CLI, the ARM API or directly through the portal.
Under the "Get Started" section of the documentation I've linked to, you can find more information on how to create and manage templates.
I hope this helps!
As far as I know, there is no Nuget Package for you to do this. Per my understanding, you could leverage ARM template to create your Azure Function App.
You could try to follow the issue & code sample on GitHub about deploying Azure Function Apps with ARM to create the Azure Function App in multiple geographic locations as expected.
Also, you could follow this tutorial about deploying your resources to Azure with Resource Manager templates via Azure Power Shell.
I have have created a Resource Manager VM image in Azure and this is publically accessible from the web and can be downloaded.
From what I can see, users can download this image if they wanted to and upload it into their Azure subscription.
Is it possible to deploy this image from our Azure blob storage, from the PowerShell examples and .NET SDK it says it has to be in the same subscription and location.
The documentation is correct, you need to first copy the image to a storage account in the subscription where you want to create the VM from.
The alternative, and sounds like it might meet your objective, is to publish the image into the marketplace. You can also provide an ARM template to allow users to configure it before deployment.
https://azure.microsoft.com/en-gb/documentation/articles/marketplace-publishing-vm-image-creation/
For an walkthrough on creating ARM templates (not VMs but the same tools/principals apply) - please see my blog post https://russellyoung.net/2016/04/15/arm-cd-vsts/