azure-resource-manager

VS2015 Azure Resource Manager deploy dialog ignores solution and project build configuration for referenced projects

空扰寡人 提交于 2019-12-12 01:46:07
问题 Goal is to deploy Azure App Service with WebDeploy package from VS2015 with all web.config transformations applied according to current solution build configuration. I have tried adding build configuration to ARM deployment project and it works fine when you build it from Visual Studio. WebDeploy package for web project is created with correct web.config transformation applied. However if you use Deploy dialog referenced web project is always built and packaged with default build

Azure Authenticating via java sdk in Resource manager mode

元气小坏坏 提交于 2019-12-11 23:18:30
问题 I am a Mac user and don't have access to the powershell cli tools. I want to authenticate my java program to the azure in resource manager mode (arm) According to the docs i have read so far, i have created a app in the Active directory, but I don't see any option to upload any certificate to the application for authentication in the UI. Also, I don't see any option in the UI for assigning privilege to the application for using resource manager api. Is using powershell the only option to do

how to bind key vault certificate to apns notification hub

谁说我不能喝 提交于 2019-12-11 19:46:32
问题 I've got arm that creates notification hub instance I imported certificate with password into key vault, and now I want to use that certificate as apns of notification hub for apple. I am trying something like this but always get bad request: "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", "apiVersion": "2017-04-01", "name": "[concat(parameters('namespaces_nhn_ecosystem_name'), '/nh-ecosystem-', parameters('environmentSuffix'))]", "location": "[resourceGroup().location]",

Azure Policy Deny :if one of the tag not present in the resource group name

耗尽温柔 提交于 2019-12-11 17:45:47
问题 I've created an Azure Policy, i wanted to deny the resource group creation if user doesn't specify tag with key "Env" or "use" But when i create the resource group with Env tag it blocks me, it only allows me when i add both the tag which is env and use. As per my understanding "anyof" in azure policy is used as "OR" but my code isn't behaving the same wa { "if": { "allOf": [ { "field": "type", "equals": "Microsoft.Resources/subscriptions/resourceGroups" }, { "anyof": [ { "field": "tags.Env",

StorageAccountAlreadyTaken error at incremental deployment

时间秒杀一切 提交于 2019-12-11 17:04:27
问题 This template run on the same resource group produced the error StorageAccountAlreadyTaken but it is expected to do incremental deployment, ie. not to create any new resources. How to fix this? { "type": "Microsoft.Storage/storageAccounts", "name": "[variables('prodSaName')]", "tags": { "displayName": "Storage account" }, "apiVersion": "2016-01-01", "location": "[parameters('location')]", "sku": { "name": "Standard_LRS" }, "kind": "Storage", "properties": {} }, { "type": "Microsoft.Storage

azure arm policy to deny resource group without tags

瘦欲@ 提交于 2019-12-11 16:58:05
问题 I want to write an Azure ARM Policy to deny the creation of Resource Groups if they don't have Tags. This is my current policy rule: { "$schema": "http://schema.management.azure.com/schemas/2015-10-01-preview/policyDefinition.json", "if": { "allOf": [ { "field": "tags", "exists": false }, { "field": "type", "like": "resourceGroup*" } ] }, "then": { "effect": "deny" } } This doesn't prevent the creation of RGs without tags. If I change the policy rule to: { "$schema": "http://schema.management

Equivalent Azure ARM APIs for ComputeManagementClient operations like create, get, swap

南笙酒味 提交于 2019-12-11 16:12:22
问题 I have to replace the service management API's with Azure ARM and I am finding very difficult to find a proper documentation for the following equivalent Azure ARM API's 1) ComputeManagementClient.Deployments.Create - I found the API to GET deployment by slot with the help of azure resource explorer. https://management.azure.com/subscriptions/{mySubID}/resourceGroups/{myResourcegroup}/providers/Microsoft.ClassicCompute/domainNames/{myCloudService}/slots/Production?api-version=2016-04-01 What

Azure ARM Failover group conditional association of a database

两盒软妹~` 提交于 2019-12-11 15:58:42
问题 I am working on an ARM template where I can conditionally control the association of one of the databases in the fail-over group. Here is my sample resource template { "condition": "[variables('Resources').IsFailover]", "name": "[variables('SqlServer').FailoverGroup.Name]", "type": "failoverGroups", "apiVersion": "2015-05-01-preview", "location": "[variables('SqlServer').Servers.Primary.ResourceLocation]", "tags": { "displayName": "Failover Group" }, "properties": { "partnerServers": [ { ...

How to get the configuration of CloudService(classic) with Azure ARM API

♀尐吖头ヾ 提交于 2019-12-11 15:29:41
问题 I wanted to get the configuration of CloudService(classic), I did the following 1) Get the Resource ID: Cloudservice->properties->resourceID Resource Id: /subscriptions/{mySubscriptionID}/resourceGroups/{myResourceGroup}/providers/Microsoft.ClassicCompute/domainNames/{myCloudServicename}/ 2) I used this resourceID as follows https://management.azure.com/ subscriptions/{mySubscriptionID}/resourceGroups/{myResourceGroup}/providers/Microsoft.ClassicCompute/domainNames/{myCloudServicename}

ARM nested templates: _artifactLocation parameter is not populated correctly when deploying template with nested templates

血红的双手。 提交于 2019-12-11 15:19:17
问题 I am trying to figure out how nested templates work and I have the below templates. I am trying to deploy from VS using the VS deploy mechanism: Right click on the project > Deploy > New "Artifact storage account" field is prepopulated with "Automatically create a storage account" and I leave it like that Click on Deploy button If you take a look in HelloWorldParent.json template in variables you will see two variables "nestedTemplateUri" and "nestedTemplateUriWithBlobContainerName". It is my