azure-resource-manager

Create Azure blob/fileshare container through ARM template

烈酒焚心 提交于 2020-02-01 14:08:49
问题 I am looking a way to create a container in Azure blob & file-share storage through ARM template. At present I have ARM template to provision the storage accounts, but I want to create containers also in ARM. { "name": "[parameters('storageAccountName')]", "type": "Microsoft.Storage/storageAccounts", "location": "[resourceGroup().location]", "apiVersion": "[variables('storageApiVersion')]", "sku": { "name": "[variables('storageAccountType')]" }, "dependsOn": [ ], "tags": { "Environment": "

How to setup Azure App Service to run on .Net Core through Azure Resource Manager

陌路散爱 提交于 2020-01-29 19:40:46
问题 I have setup an App Service using the following ARM template snippet: { "name": "[variables('webBackEnd')]", "type": "Microsoft.Web/sites", "location": "[parameters('location')]", "apiVersion": "2015-08-01", "dependsOn": [ "[resourceId('Microsoft.Web/serverfarms', parameters('hostingPlanName'))]" ], "tags": { "[concat('hidden-related:', resourceId('Microsoft.Web/serverfarms', parameters('hostingPlanName')))]": "Resource", "displayName": "BackendWebApp" }, "properties": { "name": "[variables(

Azure Key Vault access from ARM Template

假如想象 提交于 2020-01-24 11:18:18
问题 I was trying to add Azure key vault integration with our ARM deployment, so we can keep all password in Azure Key-Vault. I was following this to try to access secret (adminPassword) I have created in Azure KeyVault (dSentienceAnalytics). Here is my template I tried to deploy this template through powershell, but it asked me to enter value for variable “adminPassword”, which it supposed to retrieve from Azure key vault. Do you see what I am missing here ? anyone can help me with this ? 回答1:

ARM Template.json Dynamic connectionstring

半城伤御伤魂 提交于 2020-01-24 10:17:08
问题 I have taken a deployment template from azure and added this to a deployment project in Visual Studio 2015. When the Resource Group is made and deployed, everything works well except for the Web Site connectionstrings. I have TableStorage, DocumentDb, and Redis instances all being created by this and cannot figure out how to get the Primary Connection String and Primary Key of these items so that I don't have to go in by hand and add them. looking at the ARM Template Functions ListKeys should

Parameterize connections in Azure data factory (ARM templates)

心不动则不痛 提交于 2020-01-23 16:22:03
问题 I am trying to setup an Azure Data Factory in a CI/CD setup. I followed Microsoft's best practices (https://docs.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment). I have 4 environments (dev, test, UAT, PRD) In short what I have done: Create an Azure data factory and link it to my Azure DevOps repo on DEV environment Create an Azure data factory on the other environments (test, UAT and PRD), but do NOT link it to DevOps. Instead, pipelines are released on these data

Parameterize connections in Azure data factory (ARM templates)

会有一股神秘感。 提交于 2020-01-23 16:21:08
问题 I am trying to setup an Azure Data Factory in a CI/CD setup. I followed Microsoft's best practices (https://docs.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment). I have 4 environments (dev, test, UAT, PRD) In short what I have done: Create an Azure data factory and link it to my Azure DevOps repo on DEV environment Create an Azure data factory on the other environments (test, UAT and PRD), but do NOT link it to DevOps. Instead, pipelines are released on these data

Azure Functions ARM Template deploy deletes Functions

此生再无相见时 提交于 2020-01-22 18:22:47
问题 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 the VS Code plugin or Azure Functions Core Tools. However, if I then re-deploy the ARM template (for example to update an application setting) then I lose my functions and need to re-deploy them again. Is this expected behaviour? It's not what I

Azure Functions ARM Template deploy deletes Functions

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-22 18:22:33
问题 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 the VS Code plugin or Azure Functions Core Tools. However, if I then re-deploy the ARM template (for example to update an application setting) then I lose my functions and need to re-deploy them again. Is this expected behaviour? It's not what I

Cancelling azure resource manager deployment

社会主义新天地 提交于 2020-01-22 17:37:54
问题 Recently I've started creating a new resource group but it seems to be stuck at provisioning server farm resource. Restarting deployment outputs the following error: New-AzureResourceGroup : DeploymentActive: Unable to edit or replace deployment 'App': previous deployment from '8/26/2015 8:48:55 AM' is still active (expiration time is '9/2/2015 8:48:54 AM'). I have no time to wait for its expiration. Is there a way to cancel Azure ARM deployment? 回答1: Stop-AzureRmResourceGroupDeployment

How to pass variables between templates - ARM json

断了今生、忘了曾经 提交于 2020-01-16 01:56:00
问题 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