azure-resource-manager

Azure Function+ARM: merge app settings with current settings

社会主义新天地 提交于 2020-01-05 17:57:26
问题 My deployment is split into two pipelines deploy infrastructure (run ARM template) deploy & configure application (upload app, run script) My ARM template contains an AppSettings array, like this: { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { // ... }, "variables": { "functionAppName": "[parameters('appName')]", "storageAccountid": "[concat(resourceGroup().id,'/providers/','Microsoft.Storage

Key vault values from deployment, and linked templates parameters

荒凉一梦 提交于 2020-01-04 04:35:30
问题 I have a template to create a key vault and a secret within it. I also have a service fabric template, that requires 3 things from the key vault: the Vault URI, the certificate URL, and the certificate thumbprint. If I create the key vault and secret with powershell, it is easy to manually copy these 3 things from the output, and paste them into the parameters of the service fabric template. However, what I am hoping to do, due to the fact that this cert has the same life cycle as the service

Create and Publish Azure classic Cloud Service project with AzureRM powershell

谁说我不能喝 提交于 2020-01-04 04:29:33
问题 Even after looking at the docs, I couldn't find a way to do this with the AzureRM powershell cmdlets. Does anyone know how to do this? The old Azure Service Management powershell cmdlets have a Publish-AzureServiceProject, but I believe it is deprecated now. EDIT: Supplement Answer to yoape's answer below You can create a new classical cloud service project using something like this: New-AzureRmResource -ResourceType "Microsoft.ClassicCompute/domainNames" -Location "centralus" -ResourceName

Can i put vm into another resource group than availabilitySet?

我的梦境 提交于 2020-01-04 04:03:53
问题 I would like to keep each VM in separate resource group for ease for lifecycle management. I have a cluster containing n VLMs. So I create one resource group for common things like public IP, load balancer and put availabilitySet declaration into it because is also must be shared between VMs. Then I create VM in separate resource group and reference to availabilitySet with "availabilitySet": { "id": "[resourceId('Microsoft.Compute/availabilitySets',variables('availabilitySetName'))]" }, Of

Azure Resource Manager: How to specify optional parameters in linked templates

北慕城南 提交于 2020-01-03 19:17:28
问题 I'm making use of linked templates to deploy common resources. In this case I'm deploying a VM which has an optional parameter defined AdminPassword that is only required in certain scenarios (namely when the parameter PasswordAuthenticationDisabled is set to false ): "parameters": { "AdminPassword": { "type": "securestring", "defaultValue": null, "metadata": { "description": "Password when password-based authentication isn't disabled" } }, "PasswordAuthenticationDisabled": { "type": "bool",

Azure Resource Manager: How to specify optional parameters in linked templates

倾然丶 夕夏残阳落幕 提交于 2020-01-03 19:16:46
问题 I'm making use of linked templates to deploy common resources. In this case I'm deploying a VM which has an optional parameter defined AdminPassword that is only required in certain scenarios (namely when the parameter PasswordAuthenticationDisabled is set to false ): "parameters": { "AdminPassword": { "type": "securestring", "defaultValue": null, "metadata": { "description": "Password when password-based authentication isn't disabled" } }, "PasswordAuthenticationDisabled": { "type": "bool",

Azure: Powershell: Set-AzureRmWebApp: How to set the “alwaysOn” property

拥有回忆 提交于 2020-01-03 08:53:12
问题 I am running Powershell 5 and trying to manipulate my Azure WebApp object using Set-AzureRmWebApp (and NOT Set-AzureResource) to set the "Always On" property of the web app. My basic code snippet starts with a running web app named "myWebApp" , and looks like this: $name = "myWebApp" $resourceGroupName = "myResourceGroup" $app_settings = @{"WEBSITE_LOAD_CERTIFICATES"="*";"CommonDatabase"="Common";"WEBSITE_NODE_DEFAULT_VERSION"="0.10.32"} $result1 = Set-AzureRmWebApp -ResourceGroupName

What is the use of “apiVersion” property in resource section (resources array) of azure resource manager template?

烂漫一生 提交于 2020-01-02 11:15:34
问题 In documentation, it is mentioned that apiVersion property should be used to specify the REST API version of the resource. However, in this 101-automation-configuration template, api version mentioned here for resource type Microsoft.Resources/deployments is 2018-02-01 . If we look at the available versions for Microsoft.Resources/deployments , we see following values: 2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014

Why are Azure Resource Groups associated with a specific region?

早过忘川 提交于 2020-01-01 03:53:06
问题 I'm new to Azure architecture and am trying to understand why Azure Resource Groups, which are logical deployment buckets for applications built on Azure, are associated with a region when they are defined. At first I thought it was to provide global distribution for disaster recovery or geographic redundancy, but then I realized that a single Resource Group can contain web apps in different regions, which can provide those features via Traffic Manager. I suppose that using separate Resource

Azure REST API - query parameters for getting all the virtual machine

故事扮演 提交于 2019-12-30 14:17:38
问题 I want to query all the virtual Machines in a subscription, but I want to be able to filter using a query param and not by code. I am able to get all the virtual machines but I want to know if I can filter them and how. I am not using the classic REST but ARM. 回答1: If this is the API you use: https://management.azure.com/subscriptions/{subscription-id}/resources?&api-version={api-version} then you can use filter like this: ?$filter={filter} Your request will look like this: https://management