azure-resource-manager

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

帅比萌擦擦* 提交于 2019-12-05 00:04:39
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 After some digging and experimenting, this is what I found works: "outputs": { "MyAppInsightsInstrumentationKey": { "value": "[reference(resourceId('Microsoft.Insights/components', variables(

Create Azure web app slot from ARM template without copying original web app configuration

江枫思渺然 提交于 2019-12-04 17:41:18
I am trying to create web app slots through ARM template. I was able to create those but it looks like the default behavior is to create the them as a copy of the current web app state. This result in my slot inheriting app settings, connection strings, virtual directories, .... Here a reproduction sample which demonstrate the behavior https://github.com/ggirard07/ARMSlotWebConfig . I want my slot clean and fresh instead, which is the azure portal default behavior. The portal is able to allow a user to select the behavior by specifying the "configSource": "", value it posts when creating the

Add a Azure WebApp to an Existing VPN using a Point-to-Site connection (RM Powershell)

◇◆丶佛笑我妖孽 提交于 2019-12-04 16:48:41
I have hunted around for an answer to this, but I am not having much luck. All the articles I can find are either setting up a Point-to-Site or are instructions for classic Azure, not Azure 2.0 (Resource Group) Currently, we are dialing up a whole new resource group everytime we do a new built. This consists of Web apps and SQL DBs. When we have a new build we start up the new and del the old resource group. Simple. To minimize the start-up time we have a static resource group that isn't deleted that houses the VPN connection to our on Prem resources. The problem I'm having is when I add the

How to deploy to Azure Resource Group using VSTS release management

旧城冷巷雨未停 提交于 2019-12-04 13:16:53
I am new to Visual Studio Team Services Release Management. My goal is to automate a deployment of an ASP.NET MVC application to the Azure App Service. Trying different approaches, I created a Service Endpoint that is certificate based and one that uses a service principal (SPN). My build definition already builds a web deploy package, and the release definition is linked against that and can use this artifact. Success 1: A deployment of the app using the Azure Web App Deployment Task already succeeded - almost. Shortcoming 1: I do not understand how I can specify the correct Resource Group

Azure: Microsoft.Compute resource provider stuck 'Registering' for about a day

吃可爱长大的小学妹 提交于 2019-12-04 09:11:54
I've tried un-registering and re-registering and it just keeps getting stuck. No logs I can see so I'm not really sure what to do... Has anyone experienced this before? It appears that there was some issue, which is now mitigated. Check your Service Health/Resource Health page. The ‘Service Health’ - Service issues view shows any ongoing problems in Azure services that are impacting your resources. You can understand when the issue began, and what services and regions are impacted. You can also read the most recent update to understand what Azure is doing to resolve the issue. Resource health

Deployment slot specific appsettin in ARM template?

情到浓时终转凉″ 提交于 2019-12-04 05:12:21
I'm trying to get into that Visual Studio Resource Group template. So far it's looking good, and I have added some appsettings for a web app, but my question is, how can I make them deployment slot specific? Is there something in the json for the template or the parameter file? Tom Sun - MSFT Please have a try to add the json code snipped in the ARM template. I have tested it. It works successfully. "resources": [ { "apiVersion": "2015-08-01", "name": "appsettings", "type": "config", "dependsOn": [ "[resourceId('Microsoft.Web/Sites/Slots', variables('webSiteName'), 'Staging')]" ], "properties"

How to escape single quote in ARM template

a 夏天 提交于 2019-12-03 20:37:16
问题 Given the following resource in an AzureRM template, how would one encode the single quote in the commandToExecute part? { "type": "Microsoft.Compute/virtualMachines/extensions", "name": "[concat(variables('vmNameMaster'), copyIndex(), '/sethost')]", "apiVersion": "2015-06-15", "location": "[resourceGroup().location]", "copy": { "name": "extensionLoopNode", "count": "[variables('masterCount')]" }, "dependsOn": [ "[concat('Microsoft.Compute/virtualMachines/', variables('vmNameMaster'),

How to list subscriptions with Microsoft.Azure.ResourceManager?

扶醉桌前 提交于 2019-12-03 20:26:11
Context My core goal is to write an Azure WebApps deployment tool in C#. The process will be roughly User logs in User selects subscription User selects or creates resource group User selects or creates storage for the web app User selects or creates web service plan User selects or creates web app Tool uploads the web app using Kudu to POST a zip Since the last step can't be done in the portal, my idea was to do everything in a GUI tool. I started out using Kudu's ARMClient.Authentication and Microsoft.Azure.ResourceManager 1.0.0-preview . However, when it comes to creating a storage account

Azure ARM Template Unit Test

扶醉桌前 提交于 2019-12-03 20:05:15
问题 How to test Azure ARM Templates and validate them whether these are written correctly or not from local VM. I have tried it from Power Shell but it just validate only. I want to Unit Test the ARM templates 回答1: You can do unit test the ARM Templates with PESTER . If you are unfamiliar with pester, you can refer to this document. Example ARM Template The example template being tested allows for the selection of whether managed or un-managed disk are used for the VM. The template can be found

Azure - do not allow Arm template to modify existing resources

。_饼干妹妹 提交于 2019-12-03 15:51:06
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 order to add Storage account I see that my database is scaled down to S1 (the default value in my arm