azure-resource-manager

Iterate over not existing Azure resource manager (ARM) object properties?

社会主义新天地 提交于 2019-12-25 01:30:01
问题 I have object with not equal number of properties (and would like to keep it like this), i.e. second object is missing property "routeTable" "subnets": { "value":[ { "name": "GatewaySubnet", "addressPrefix": "10.2.0.0/24", "networkSecurityGroup":"NSG-AllowAll", "routeTable":"UDR-Default" }, { "name":"UnTrusted", "addressPrefix":"10.2.1.0/24", "networkSecurityGroup":"NSG-AllowAll", }]} Now I don't know how to check if property exists when iterating over object. The below gives error because of

ARM templates for API Connections in Logic Apps

两盒软妹~` 提交于 2019-12-24 19:35:07
问题 Can anyone point me to ARM templates to build API Connections for use in Logic Apps? Specifically after gmail, o365, and az table storage. Targeting for use in Azure DevOps pipeline. 回答1: If you want to create API connection for table storage you could refer to this SO thread. For gmail and o365 we could create the API connection firstly from Azure Portal then we could get the corrosponding ARM template. { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate

Deploy ServiceBus with multiple Topics and Queues at once

巧了我就是萌 提交于 2019-12-24 19:22:53
问题 I'm fairly new to using the servicebus and other Azure features. After creating a servicebus manually on the Azure portal, I try to figure out how this can be achieved automatically. After a while of reading I thought that using the azure resource manager should be the way to go. Deploying just one topic is no big deal. But I can't find an example, that shows how to deploy multiple topics and queues at once. Or am I on the wrong approach? Thanks for your answers! Helmut 回答1: What we do (and I

Install an exe in azure virtual machine created in resource manager portal

心已入冬 提交于 2019-12-24 13:52:45
问题 I am new to azure RM model.Please help me to copy and install an exe in VM created in resource manager portal using powershell script or using API. Thanks in advance. 回答1: If you want to do the install the EXE remotely then the VM needs to be configured to allow for remote management - you can do this via WinRM. See: https://www.penflip.com/powershellorg/secrets-of-powershell-remoting/blob/master/accessing-remote-computers.txt and http://tarkus.me/post/64761019099/windows-azure-vms-remote

How can I get the URL of a captured VM Image stored in Azure Resource Manager?

浪子不回头ぞ 提交于 2019-12-24 07:19:45
问题 I am trying to create a new VM in Azure RM based on the sysprepped capture of an existing VM installation. That is: $urlOfCapturedImage = <I cannot find this> ... $vm = Set-AzureRmVMOSDisk -VM $vm -Name $osDiskName -VhdUri $newOsDiskUri ` -CreateOption fromImage -SourceImageUri $urlOfCapturedImage -Windows New-AzureRmVM -ResourceGroupName $resourceGroupName -Location $location -VM $vm My current problem is finding the correct URL for the stored VM image, since it doesn't appear to be stored

Add Azure Web App diagnostic log settings to ARM template

浪尽此生 提交于 2019-12-24 05:36:27
问题 I'm looking for the option to enable diagnostic log settings (file level, not blob) on the template deployment stage. I've found the following example on Github however, it doesn't work, saying "Microsoft.Web/sites/logs" is not a valid option" . Below is the part of my template: { "apiVersion": "2015-08-01", "name": "logs", "type": "config", "location": "[resourcegroup().location]", "dependsOn": [ "[resourceId('Microsoft.Web/Sites', parameters('siteName'))]" ], "properties": {

Is it possible to create clone/image from a resource manager based Azure VM?

大兔子大兔子 提交于 2019-12-23 19:40:30
问题 I have a working resource manager based VM. (Ubuntu) Now I customized it in several way, and would like to have it as a start template in the future when creating new VMs. Basically I would like to as easily create a new VM from my customized VM as I created it from initially via Azure portal by picking a LAMP VM by bitnami. Please note, I am aware the Linux/Windows provisioning/deprovisioning process. In fact I can accept and use scenario where the machine was not deprovisioned and simply

Azure resource manager template HostingEnvironment

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 18:43:14
问题 I downloaded the arm template for Web App + MySQL from azure gallery: https://gallery.azure.com/artifact/... and now trying to make a deployment using this. But I don't know/can't find out what values to supply for some parameters like HostingEnvironment, what are the accepted values, where can I find them? I tried out "Free" and "Shared" for value, both are wrong. "ErrorEntity": { "Code": "NotFound", "Message": "Cannot find HostingEnvironment with name Shared.", "ExtendedCode": "51004",

How do I automatically install New Relic extension using Azure ARM Template?

て烟熏妆下的殇ゞ 提交于 2019-12-23 17:10:10
问题 I am using a azure arm template to create a web app in azure. Now I need to install New Relic Extension in the webapps which will be created using this template. So I was unable to find specific json format. Please help me out! 回答1: Please have a try to add the json code snipped in the ARM template. "resources": [ { "apiVersion": "2015-08-01", "name": "NewRelic.Azure.WebSites", "type": "siteextensions", "dependsOn": [ "[resourceId('Microsoft.Web/Sites', variables('webSiteName'))]" ],

How to upload or update the cloud service certificate with Azure REST ARM API

瘦欲@ 提交于 2019-12-23 04:33:16
问题 I have to upload a cloud service cert. PUT or POST on this URI is not working subscriptions/%sub_Id%/resourceGroups/%rg_Name%/providers/Microsoft.ClassicCompute/domainNames/%cloudService_Name%/servicecertificates I am getting "InvalidRequestUri", Please help me . 回答1: you can use something like this: "path": "subscriptions/%sub_Id%/resourceGroups/%rg_Name%/providers/Microsoft.ClassicCompute/domainNames/%cloudService_Name%/servicecertificates/SHA1-%THUMBPRINT%", "body": { "thumbprintAlgorithm"