Questions tagged [azure-resource-manager]

Azure Resource Manager is a framework for deploying and managing applications across resources and managing groups of resources as single logical units on the Microsoft Azure cloud computing platform.

The tag is for ARM processors, use this tag for Azure Resource Manager.

2907 questions
20
votes
5 answers

Login-AzureRmAccount : The term 'Login-AzureRmAccount' is not recognized as the name of a cmdlet, function, script

I'm having an issue with Azure PS modules. I have installed via PS gallery with the following: Install-Module AzureRM Install-Module Azure (And restarted) However, when I run Login-AzureRmAccount I get the following error: Login-AzureRmAccount :…
Nagoh
  • 813
  • 2
  • 10
  • 23
19
votes
2 answers

Enable Azure StorageV2 static website (preview) feature using ARM template

Im trying to write an ARM template that creates a storage account with the new static website (preview) feature: When I go to the Automation Script blade I don't see any related settings within the ARM template: { "$schema":…
Martin Brandl
  • 56,134
  • 13
  • 133
  • 172
19
votes
2 answers

How to get clientId and clientsecret for Azure (ARM) deployment template

I want to automate my Azure resource management, and I'm using the ARM templates to do so. If I want to connect to Azure from my C# code (the DeploymentHelper.cs that is generated when downloading an Azure export template). The code is asking for…
user2713516
  • 2,983
  • 5
  • 23
  • 49
18
votes
4 answers

How to check the resource exists in the arm template

How do i identify the azure resource is exists or not in the ARM templates by the resource type and identifier
sacratees
  • 225
  • 1
  • 2
  • 6
18
votes
5 answers

Cannot SSH to Azure VM

I have a Ubuntu VM on Azure (Resource Group, not the Classic VM) and it all worked out of the box. I recently tried to SSH into the VM using Putty and I could not. I get the error: Network Error: Connection Timed out. I have made sure that the port…
18
votes
1 answer

Declaring and using a "parameter" in Logic Apps

In my file LogicApp.parameters.json I've declared the extra parameter called MyFirstNewParameter full file contents below { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", "contentVersion":…
18
votes
7 answers

Can I have an ARM template resource with a COPY array of 0 to N

I'm deploying an ARM template that uses a copy resource block to deploy 1 or more data disks to a VM. What I'd like to do is change this to 0 or more. The parameter I use is "VirtualMachineDiskSizeArray": { "type": "array", …
Christopher G. Lewis
  • 4,777
  • 1
  • 27
  • 46
17
votes
3 answers

Azure Functions ARM Template deploy deletes Functions

I've got an ARM template (included below) to deploy an Azure Function App. I deploy it with: az group deployment create --resource-group my-group --template-file my-function-app.json This works and I can then deploy my functions successfully using…
eoinmullan
  • 1,157
  • 1
  • 9
  • 32
17
votes
6 answers

How to get the Azure AD objectid of the signed in user?

I'm trying to invoke an ARM template that requires a PrincipalId of the currently signed in user. https://learn.microsoft.com/en-us/azure/templates/microsoft.keyvault/vaults I've signed in using powershell, as a guest account in the organisation's…
user9314395
  • 407
  • 1
  • 4
  • 13
17
votes
2 answers

When should we use a parameter when to use variable in ARM templates

I am confused about where to use a variable and where to use a parameter in ARM templates. How do we make this call ? The referenced script uses both. I am more curious of the justification of using variables. Reference Sample Service Fabric Azure…
16
votes
2 answers

Is it possible to have conditional property in ARM template

I understand there is option to have conditional output for property values, but is it possible to have conditional property itself. For example I have template which creates Microsoft.Compute/VirtualMachine and it's the same template for both…
Gregory Suvalian
  • 3,566
  • 7
  • 37
  • 66
16
votes
2 answers

Azure move app service to a different app service plan

I have the following setup: Resource group 1 App service plan 1 App Service 1 (app service plan 1) Resource group 2 App service plan 2 App Service 2 (app service plan 2) App Service 3 (app service plan 1) I would like to move App Service 3…
Lorenzo
  • 29,081
  • 49
  • 125
  • 222
16
votes
7 answers

Redirect HTTP to HTTPS in Azure Application Gateway

I have configured an Application Gateway (AG) to do SSL termination/offload. The AG is configured to only listen on port 443 for HTTPS connections. Is it possible to redirect HTTP to HTTPS without having to: Create a new VM that contains a…
Davey Chu
  • 2,174
  • 2
  • 14
  • 24
16
votes
4 answers

Where is the list of deployment template schema api versions?

We are authoring Azure Resource Manager templates. We are using the following deployment template schema, because it is the one that we saw in an example. http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json# It is…
Shaun Luttin
  • 133,272
  • 81
  • 405
  • 467
16
votes
2 answers

Why is a Microsoft.Web/serverfarms resource required for hosting a website?

I'm tutoring myself on Azure Resource Manager and Azure Resource Group template files. I'm using the Azure SDK v2.6. I'm intrigued to know why, when I pick a WebSite template, it contains a Microsoft.Web/serverFarms resource. Given that Azure Web…
jamiet
  • 10,501
  • 14
  • 80
  • 159