arm-template

Get current subscription id in parameter file

懵懂的女人 提交于 2021-01-28 05:19:03
问题 I have such a azuredeploy.parameters.json file: { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", "contentVersion": "1.0.0.0", "parameters": { "adminLogin": { "value": "exampleadmin" }, "adminPassword": { "reference": { "keyVault": { "id": "/subscriptions/[subscription().subscriptionId]/resourceGroups/ARMTemplate/providers/Microsoft.KeyVault/vaults/dev-kv" }, "secretName": "ExamplePassword" } }, "sqlServerName": { "value": "TestServer" } } } My

Is automating App Registration on Azure possible through ARM Template on the User's tenant?

时光怂恿深爱的人放手 提交于 2021-01-07 02:42:25
问题 I am trying to deploy a solution as a managed application through ARM Template. For the deployment to work, I need the Client Id and Client Secret of a registered Application along with the Tenant Id. In my previous scope, I was assuming that the user would have an existing App Registered but now I want to Automate the App registration process for the user and be able to register an application having O365 API Permissions in user's tenant. Below is the approach I were following earlier. So

Link existing hybrid connection to an azure web app through ARM-template

偶尔善良 提交于 2021-01-03 06:06:34
问题 I have a resource group in azure which contains a Relay which contains a hybrid connection. I'm trying to deploy another resourcegroup containing a web app which should link the existing hybrid connection in the other resourcegroup. Performing this task in the azure portal is trivial but since I want to run "complete mode" during my ARM-template deploy I need to do this during deployment. I cannot find any good documentation for this and lots of answers seems outdated. Is this possible, and

Link existing hybrid connection to an azure web app through ARM-template

北慕城南 提交于 2021-01-03 06:05:27
问题 I have a resource group in azure which contains a Relay which contains a hybrid connection. I'm trying to deploy another resourcegroup containing a web app which should link the existing hybrid connection in the other resourcegroup. Performing this task in the azure portal is trivial but since I want to run "complete mode" during my ARM-template deploy I need to do this during deployment. I cannot find any good documentation for this and lots of answers seems outdated. Is this possible, and

Link existing hybrid connection to an azure web app through ARM-template

一世执手 提交于 2021-01-03 06:01:55
问题 I have a resource group in azure which contains a Relay which contains a hybrid connection. I'm trying to deploy another resourcegroup containing a web app which should link the existing hybrid connection in the other resourcegroup. Performing this task in the azure portal is trivial but since I want to run "complete mode" during my ARM-template deploy I need to do this during deployment. I cannot find any good documentation for this and lots of answers seems outdated. Is this possible, and

azurerm_resource_group_template_deployment ignoring parameter file

和自甴很熟 提交于 2021-01-01 17:51:16
问题 I am attempting to use terraform and embedded ARM templates to permit creating a simple logic app in Azure. I have the resource block in terraform as: resource "azurerm_resource_group_template_deployment" "templateTEST" { name = "arm-Deployment" resource_group_name = azurerm_resource_group.rg.name deployment_mode = "Incremental" template_content = file("${path.module}/arm/createLogicAppsTEST.json") parameters_content = jsonencode({ logic_app_name = { value = "logic-${var.prefix}" } }) } and

'Microsoft.Web/sites/config' azureStorageAccounts fails due to 500 InternalError

只谈情不闲聊 提交于 2021-01-01 11:06:53
问题 I have the following resource in a template: { "type": "Microsoft.Web/sites/config", "apiVersion": "2018-11-01", "name": "[concat(parameters('appservice_name'), '/web')]", "location": "East US", "dependsOn": [ "[resourceId('Microsoft.Web/sites', parameters('appservice_name'))]", "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_name'))]", "[resourceId('Microsoft.Storage/storageAccounts/blobServices/containers', parameters('storageAccounts_name'), 'default',

'Microsoft.Web/sites/config' azureStorageAccounts fails due to 500 InternalError

匆匆过客 提交于 2021-01-01 11:01:40
问题 I have the following resource in a template: { "type": "Microsoft.Web/sites/config", "apiVersion": "2018-11-01", "name": "[concat(parameters('appservice_name'), '/web')]", "location": "East US", "dependsOn": [ "[resourceId('Microsoft.Web/sites', parameters('appservice_name'))]", "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_name'))]", "[resourceId('Microsoft.Storage/storageAccounts/blobServices/containers', parameters('storageAccounts_name'), 'default',

The template function 'reference' is not expected at this location

萝らか妹 提交于 2020-12-15 06:36:48
问题 I'm trying to execute a script in my template using Microsoft.Resources/deploymentScripts, but also I'm trying to declare de user assigned identity in the same template { "type": "Microsoft.ManagedIdentity/userAssignedIdentities", "name": "scriptIdentity", "apiVersion": "2018-11-30", "location": "[resourceGroup().location]" }, { "type": "Microsoft.Resources/deploymentScripts", "apiVersion": "2019-10-01-preview", "name": "updateAppServiceConfigMountPointScript", "dependsOn": [ "[resourceId(

ARM template error Bad JSON content found in the request

爷,独闯天下 提交于 2020-12-13 05:37:04
问题 I am trying to deploy an ARM template using the Azure DevOps release pipeline. Azure KeyVault is one of the resources in the template. the deployment is successful when I use the Powershell script. however, when Azure DevOps Release pipeline is used, deployment fails with error "Bad JSON content found in the request" https://i.stack.imgur.com/o9sbD.png The key vault resource definition is as below. { "type": "Microsoft.KeyVault/vaults", "apiVersion": "2018-02-14", "name": "[parameters(