azure-resource-manager

How to pass variables between templates - ARM json

元气小坏坏 提交于 2020-01-16 01:55:29
问题 I'm looking for a way to pass a variable (normal string) from a linked template back up to my main template. I want to use something like: (in linked template) "outputs": { "installStringNodes": { "type": "string", "value": "[variables('installString').value]" } } And then i want to call this variable into my main template. But i can't seem to crack how. "variables":{ "installStringFromNodeResources": { "value": "[??('node-resources')??.outputs.installStringNodes.value]" }, } There's a

ARM Template: Looking up a user object Id

人盡茶涼 提交于 2020-01-14 13:38:40
问题 I'm trying to programatically insert the object Id of a certain user account into an ARM template, like this: "objectId": "[reference(resourceId('Microsoft.AAD/domainServices/user/read','domain','User.Name'),'2019-01-01').Id]", I've tried many different resource providers in an attempt to get this to work. For example: "objectId": "[reference(resourceId('Microsoft.ManagedIdentity/userAssignedIdentities/read','user@domain.onmicrosoft.com'),'2019-01-01').Id]", and: "objectId": "[reference

ARM Template Web App Authentication Settings not working

て烟熏妆下的殇ゞ 提交于 2020-01-14 04:16:19
问题 I am working on setting up my site authentication settings to use the AAD provider. Most of the template is respected. However, the unauthenticatedClientAction and allowedAudiences is not being properly assigned. I observe 'allow anonymous' and no 'allowed audiences' being assigned. Here is my template segment for these settings. It is nested under resources in my website template. root > Microsoft.Web/Site > Resources { "type": "config", "name": "web", "apiVersion": "2016-08-01", "location":

Using conditions in Azure ARM templates

醉酒当歌 提交于 2020-01-12 15:52:51
问题 Is there any way to use conditional statements in templates? for example I am building template which will have vms with data disks on QA and Production, but no data disks on Dev. Another scenario would be there are some extensions only needs to be installed in prod VMs but no where else. Any help is appreciated. 回答1: The key properties to achieve this are: templateLink that sets the template to be included and the names of the parameters to be passed to the called template. "templateLink": {

Using conditions in Azure ARM templates

空扰寡人 提交于 2020-01-12 15:51:13
问题 Is there any way to use conditional statements in templates? for example I am building template which will have vms with data disks on QA and Production, but no data disks on Dev. Another scenario would be there are some extensions only needs to be installed in prod VMs but no where else. Any help is appreciated. 回答1: The key properties to achieve this are: templateLink that sets the template to be included and the names of the parameters to be passed to the called template. "templateLink": {

ARM Templates for Azure Functions with many appSettings for different environments and slots

▼魔方 西西 提交于 2020-01-10 05:34:08
问题 I've got two Azure Function apps that use deployment slots, stage and production. These two Azure Function apps have about 50~ key:value pairs in Application Settings to define various API keys, application behavior, connection strings, etc. I want to deploy these two Azure Function apps to five different environments (CI, DEV, QA, STG, PROD). I believe that deploying these resources to Azure using ARM templates is the better choice over Azure CLI. I will create tasks in my Azure DevOps

Point IP Address to Azure Resource Group Web App [closed]

筅森魡賤 提交于 2020-01-07 09:38:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I am playing around with setting up a Web App in an Azure Resource Group, and I'm using a personal domain of mine (that I'm not currently using for anything) to learn and play: woodswild.com. I've got the Web App all set up at http://woodswild.azurewebsites.net. There's nothing there right now except Azure's

Starting Runbook via Azure API, Portal, or ISE Add-On yields “input parameter type mismatch” error

∥☆過路亽.° 提交于 2020-01-06 20:13:01
问题 Given a simple runbook: workflow test { [CmdletBinding()] param([string] $NumericString) write-output $NumericString } When starting it with a numeric value (ie: 5) via the Azure Portal as a new Job (published), via the Test Pane, or using the Azure Automation PowerShell ISE Add-On, the following error is returned and the execution Fails. [edit] Just out of curiosity I tried some other values. 'true' or 'false' (without quotes in ise/the ui) will also cause the error (and are sent to the API

Microsoft Azure how to get a list of locations from the REST ARM API?

守給你的承諾、 提交于 2020-01-06 20:04:40
问题 Does Azure ARM REST API provide a way to get a list of available regions? I can see that the classic REST API provides such a list as described here: https://msdn.microsoft.com/en-us/library/azure/gg441293.aspx But I can't see its equivalent for ARM. 回答1: To list the locations for an Azure Subscription using ARM API, please see this link: https://msdn.microsoft.com/en-us/library/azure/dn790540.aspx. However please keep in mind that not all resources are available in all locations. If you want

Azure ARM- Passing array parameters values to Variables

六眼飞鱼酱① 提交于 2020-01-06 07:24:08
问题 I am here trying to pass array of email values and reference it to variables, so that it can iterate over each value and deploy.My requirement is to keep parameter file separately so that i can touch parameter file only incase of any updation(more email details). Im ending up with errors trying this way. Please help me how can i pass. Errors: 1.'The provided value for the template parameter 'emailReceiverName' at line '1' and column '487' is not valid.'. 2. "message": "At least one resource