azure-resource-manager

Passing Parameter Values to DSC Configuration from ARM Template

核能气质少年 提交于 2019-12-12 23:04:33
问题 I have a simple DSC Config file that contains a credential and string input parameter. I want this DSC configuration deployed with a VM deployed in an ARM template but am missing the concept of how to pass these two parameters securely. How do I accomplish this? 回答1: I was receiving the same error but, after some shenanigans, it is working for me. The important part is the settings/Properties/SqlAgentCred/password reference to protectedSettings/Items/AgentPassword . Below is the properties

Azure Key Vault parameter reference limit

删除回忆录丶 提交于 2019-12-12 19:10:06
问题 When I reference more than 30 keys from my global Key Vault in ARM template parameter file, then I get the following error in my deployments. The deployment has specified too many KeyVault parameter references. The maximum of KeyVault parameter references is '30'. Please help me how to override this limit or what is the alternative to reference more than 30 secrets/keys from Key Vault? 回答1: Just create a nested deployment that will reference 30 more secrets and return those as output into the

Set a custom domain for a storage account using Azure Powershell

余生颓废 提交于 2019-12-12 17:03:38
问题 Is it possible to set up a custom domain for a Azure Resource Manager (ARM) storage account using Azure Powershell? If so, how? I tried to set up a custom domain through the Azure Preview Web Portal but that functionality does not yet exist for the new resource manager storage accounts. Using this documentation, I am able to login and see the properties of my new RM storage account, but I am unsure how to update the CustomDomain property. I expected to find an example/documentation of how

Get access control list (IAM) of a resource group in Node.js

青春壹個敷衍的年華 提交于 2019-12-12 16:42:51
问题 I am using Node.js to interact with Azure, for example, to create a resource group: const { ResourceManagementClient } = require('azure-arm-resource'); createResourceGroup(location, groupName) { const groupParameters = { location: location, }; return this.resourceClient.resourceGroups.createOrUpdate(groupName, groupParameters); } How can I use these azure-arm modules to retrieve the access control (IAM) list of a resource group? I mean to this list: 回答1: You will need to make use of the Azure

Is setting FUNCTIONS_EXTENSION_VERSION sufficient when updating Azure Function App with ARM template?

你。 提交于 2019-12-12 15:26:01
问题 When deploying the resources for my Function App with an ARM template like this { "type": "Microsoft.Web/sites", "kind": "functionapp", "name": "[parameters('appNameFunctions')]", "apiVersion": "2015-08-01", "location": "West Europe", "tags": {}, "properties": { "name": "[parameters('appNameFunctions')]", "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('aspNameFunctions'))]" }, "resources": [ { "name": "appsettings", "type": "config", "apiVersion": "2015-08-01",

Complete Azure Deployments Take an Hour to Fail for Locked Resources

两盒软妹~` 提交于 2019-12-12 10:48:26
问题 I use Azure Resource Manager (ARM) Templates to deploy my Azure platform-as-a-service (PaaS) resources. I perform ARM Template deployments as "Complete" so resources not defined in the template are removed. When I place an Azure Resource Lock on an Microsoft SQL Server PaaS Database Azure resource and then perform a complete deployment with the database name changed it takes more than an hour for the deployment to fail. The Resource Group deployment log events contain multiple HTTP code 409

Creating Azure VM from custom image

社会主义新天地 提交于 2019-12-12 10:16:19
问题 I have an image stored in Azure that I want to spin up multiple VMs from. I've created a template that will create the necessary resources for me and all of them succeed except the VM creation. Using CreateOption.FromImage runs the deployment for around 40 minutes until I get the error: 'OS Provisioning for VM 'vmName' did not finish in the allotted time. However, the VM guest agent was detected running. This suggests the guest OS has not been properly prepared to be used as a VM image (with

Provision classic cloud service via ARM template

≯℡__Kan透↙ 提交于 2019-12-12 09:47:54
问题 In one of our project, we are trying to automate deployment of cloud components on Azure. For majority of components (basically all ARM components like Redis, Service bus, App Service etc.) we were able to achieve it using ARM templates and Powershell script. However, we are stuck at Cloud Service (classic) component. Cloud service component contains only WebRole in it and no VM needs to be provisioned. We can go via classic deployment model i.e. using ASM commands in power shell. But since,

Connect Azure Web App to vNet using ARM template

南笙酒味 提交于 2019-12-12 09:36:30
问题 I am trying to script the setup of a bunch of resource in Azure, as part of this I need a web app to be able to communicate with a service running on a VM via the vNet. I have created a template that seems to do everything it should to create the connection but for some reason the connection is not made. Looking in the portal shows that the site is connected to the vNet and that the certificates are in sync, but the point-to-site configuration on the vNet gateway shows no active connections.

Azure ARM templates - using the output of other deployments

半腔热情 提交于 2019-12-12 07:16:40
问题 What I am interested in is reading the output parameters of another deployment in a different resource group. My ARM templates are something like: platform.json - sets up the DNS, virtual networks and security storage.json - sets up databases and other stores app.json - sets up the web app/api Each is deployed in different resource groups as they have different life cycles. However, when I deploy the app.json I want to pull in the outputs of the latest platform and storage deployments and use