azure-resource-manager

How to configure a Cosmos Db collection during deployment

烈酒焚心 提交于 2019-12-08 17:36:07
问题 When deploying a Cosmos Db database in GlobalDocumentDB mode using the Azure resource manager template there is no way to configure collections in the database during deployment that I can tell. During a ARM template deployment is there any way to either (in order of preference) Configure the collections in a Cosmos Db database directly in a way that I have overlooked. Do a series of REST requests from within the template to configure the db. Do a single REST request within the template to

Changing Azure Resource Group location

穿精又带淫゛_ 提交于 2019-12-08 14:37:53
问题 I have a setup in azure with a bunch of resources combined in a resource group. I want my services to be located in west-europe, so all my resources are there (where possible) I just noticed that when creating the resource group, i accidentally used West US. So the current setup is: Resource Group 1 (West US) App Service 1 (West Europe) App Service 2 (West Europe) SQL Server (West Europe) Storage account (West Europe) ... (West Europe) Can I change the location of the resource group without

Azure ARM DSC scale set deployment - cannot locate script

江枫思渺然 提交于 2019-12-08 13:22:41
问题 I am trying to deploy Virtual Machine Scale Set to Azure using ARM Template and Desired State Configuration (DSC). I have created DSC configuraiton and validated it on a separate VM that it is working. In ARM template I have following definition of DSC extension: { "name": "Microsoft.Powershell.DSC", "properties": { "publisher": "Microsoft.Powershell", "type": "DSC", "typeHandlerVersion": "2.9", "autoUpgradeMinorVersion": true, "settings": { "configuration": { "url": "publicstoragebloburi/DSC

Azure ARM API returns locations with inconsistent case

天大地大妈咪最大 提交于 2019-12-08 12:37:24
问题 azure vm list and azure location list command shows different capitalization for location for some regions such as CanadaEast (might also happen in other locations) Steps to reproduce: Deploy a vm in Canada East Run azure vm list run azure location lists ... When you compare outputs you get different capitalization for CanadaEast but other older regions such as North Europe are always in lowercase $ azure location list data: data: Location : **canadaeast** data: DisplayName : Canada East data

Azure App Registrations Sign-on URL

♀尐吖头ヾ 提交于 2019-12-08 12:22:37
问题 I am registering an app with Azure, so that I can automate deployments with Ansible. Ansible is not a Web App (but a simple command line tool), but on an app registration it asks to fill in a mandatory field Sign-on URL . The description it gives is The URL where user can sign in and use your app. But once again, there is no URL and no Web App. I could not find another way to register an app and it seems that this is the recommended way from the Ansible side. Ansible docs on Azure are linking

How to register resource providers using Azure fluent resource management?

﹥>﹥吖頭↗ 提交于 2019-12-08 07:29:06
问题 I'd like to fully automate my resource creation process. Unfortunately brand new subscriptions don't have a few resource providers registered by default. E.g. SQL. That's easily solved as described here: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-common-deployment-errors#noregisteredproviderfound However this only outlines methods using either manually using the portal or using Powershell. I'm looking for a solution using Microsoft.Azure.Management

Reserved IP's for Azure Resource Manager based Virtual machines

大兔子大兔子 提交于 2019-12-08 06:45:17
问题 The Question is twofold. Firstly, What is the way to assign a reserved IP address as a public IP to a resource manager based virtual machine. Does it only involve setting IP allocation method to static in template file (then assigning that to NIC hence the VM of course) or there is some other way to do this, i have read over the internet about load balancers but i am not getting how to use them using a template file, please refer any links. Secondly, does any rest api or .net sdk exist to

Apply multiple DSCs through Azure Resource Manager

左心房为你撑大大i 提交于 2019-12-08 04:00:44
问题 Is it possible to apply multiple DSC configurations to one vm through Azure Resource Manager? Currently I am using something like this: { "apiVersion": "2015-06-15", "dependsOn": [ "[concat('Microsoft.Compute/virtualMachines/', variables('vm_name'))]" ], "location": "[resourceGroup().location]", "name": "DSCSetup", "properties": { "publisher": "Microsoft.Powershell", "type": "DSC", "typeHandlerVersion": "2.20", "autoUpgradeMinorVersion": true, "settings": { "modulesUrl": "[concat('https://',

Unable to log in to the newly created ARM VM when using Set-AzureRmVMOSDisk with linux and attach

不问归期 提交于 2019-12-08 03:49:18
问题 I am trying to develop a clone workflow for my properly working ARM VM running Ubuntu. This VM was created from Bitnami LAMP image in Marketplace. I am trying to use the -CreateOption attach option instead of fromImage , according my knowledge it should work... I am aware that there is an other option: deprovision->capture->-CreateOption fromImage, but that also have problems see Creating new ARM VM from captured image: Blob name in URL must end with '.vhd' extension error The workflow I

Creating Azure VM from custom image

时间秒杀一切 提交于 2019-12-08 02:43:34
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 CreateOption=FromImage). To resolve this issue, either use the VHD as is with CreateOption=Attach or