azure-resource-manager

How to resolve SAS URL for Storage Account in RM Template

廉价感情. 提交于 2019-12-10 18:17:20
问题 I am trying to create RM template that creates a web site and configures this for logging into the blob storage. I saw this post in StackOverflow, which shows how to configure this. The json looks somewhat following: { "id": "/subscriptions/.../config/logs", "name": "logs", "type": "Microsoft.Web/sites/config", "location": "North Central US", "properties": { "applicationLogs": { "fileSystem": { "level": "Off" }, "azureBlobStorage": { "level": "Information", "sasUrl": "...", "retentionInDays":

Using bool parameter type for conditions in Azure Resource Manager (ARM) templates

一个人想着一个人 提交于 2019-12-10 14:12:50
问题 In an ARM Template with a following parameter: { "$schema": "...", "contentVersion": "1.0.0.0", "parameters": { ... "SkipThisComponent": { "type": "bool" ... } how would one use it inside a resource condition? "resources": [ { "apiVersion": "...", "name": "...", "type": "...", "condition": "[???]", I tried out several approaches, but it seems that equals supports only [int, string, array, or object], if needs both the condition and values to match it to etc. I didn't find a nice clean

What does “hidden-link:” mean in Azure Resource Manager Tags

有些话、适合烂在心里 提交于 2019-12-10 12:38:49
问题 I exported an Azure Resource Manager JSON template from my resource group on Azure. I see a bunch of tags in the generated file like: "tags": { "hidden-link:/subscriptions/[my-subscription-id-here]/resourceGroups/[my-resource-group]/providers/Microsoft.Sql/servers/[my-database-server-name]/databases/[my-database-name]": "Resource" }, The only documentation I can find on it is from Using tags to organize your Azure resources, which says: You may see tags that start with "hidden-" and "link:".

How to make Azure Function code readable in Azure ARM json template

断了今生、忘了曾经 提交于 2019-12-10 12:19:41
问题 I have an Azure Resource group that contains an Azure Logic App that calls into an Azure Function. I exported this Resource Group as an ARM template so I can re-import the resources to another Azure Subscription. This works fine, but the problem is, the Azure Function Code (100+ line c# file) is all included on one line of the JSON ARM template file. This makes is really hard to read or modify the Azure Function from the template itself. Is there an easy way to work around this? Ideally my

How to capture Azure VM Image with “Specialized” VM creation type using power shell? or How to create a Specialized image of a RM VM?

时光毁灭记忆、已成空白 提交于 2019-12-10 12:16:29
问题 I know that there are two types of virtual machine images, Generalized and Specialized. If the OS has been generalized /de-provisioned, the virtual machine must be shut down in order to capture it as a VM Image. Once the VM has been captured as a VM Image, the virtual machine will automatically be deleted. If the OS is specialized , the virtual machine can be captured while it is running or shut down. The captured virtual machine remains untouched. If an application consistent or cross-disk

What DNS Name Label should I give my Azure Virtual Machine?

点点圈 提交于 2019-12-10 11:15:10
问题 In my ongoing effort to wrap my head around Azure's new Resource Group model (see previous questions here and here), I am now trying to create a new Virtual Machine that will be used as a web server. I have thee questions: Question One: Assuming I eventually want this VM to host the website woodswild.com, what DNS Name Label should I give this VM? Does it matter? All I know for sure is that it needs to be globally unique. Does it need to reflect the domain I want to host (woodswild.com)?

Azure Logic Apps - ARM template to deploy filesystem API connection

可紊 提交于 2019-12-10 11:01:20
问题 I am trying to deploy file system API connection using ARM template. I could not find the parametersValue schema for this connection and so tried with naming the parameters as they appear on Azure portal Edit API Connection Screen shot on Azure Portal1 { "apiVersion": "2016-06-01", "name": "filesystem", "type": "Microsoft.Web/connections", "location": "[resourceGroup().location]", "properties": { "api": { "id": "[concat(subscription().id,'/providers/Microsoft.Web/locations/westus/managedApis

How can I retrieve the instrumentation key for an Application Insights instance in an Azure Resource Group Template?

老子叫甜甜 提交于 2019-12-10 00:44:46
问题 Is there any way to retrieve the Instrumentation Key for an Application Insights instance in an Azure Resource Group template ? I've tried the instructions here to retrieve the list of list* operations available on Azure resources, but Microsoft.Insights/components doesn't appear in the list anywhere. It's making me think that retrieving an Instrumentation Key in the template isn't currently possible 回答1: After some digging and experimenting, this is what I found works: "outputs": {

Azure permissions over microsoft.aadiam/diagnosticSettings/write

六月ゝ 毕业季﹏ 提交于 2019-12-09 20:29:50
问题 I'm trying to call above API provider via REST with the following URL: https://management.azure.com/providers/microsoft.aadiam/diagnosticSettings with api-version=2017-04-01-preview However, even though the Service Principal I am using is a member of the "Global Administrator" role in my AAD tenant I am getting a does not have authorization to perform action error. This endpoint doesn't seem to be documented though. Anybody know what is required to call this API endpoint with a service

Azure - do not allow Arm template to modify existing resources

两盒软妹~` 提交于 2019-12-09 13:07:15
问题 I have arm template that provisions few resources in a single resource group. Some of those resources are then altered (pricing tiers are being changed for different resource groups). For example in my arm template Sql Database is initially provisioned for S1 performance and then scaled up to S2 by user. Then I edit my arm template to add Storage account resource for example. When I publish the updated template in to the existing resource group (the one with Sql database scaled up to S2) in