azure-resource-manager

Using Azure resource graph with .net SDK

我是研究僧i 提交于 2020-03-25 18:06:51
问题 I'm trying to query my Azure Resource Manager resources using Azure Resource Graph with Azure .NET SDK. Currently I'm stuck at creating a ResourceGraphClient , I'm not really sure what value to provide to the System.Net.Http.DelegatingHandler[] parameter. 回答1: According to my research, If you want to create ResourceGraphClient with System.Net.Http.DelegatingHandler[] directly, it is impossible. Because it is a projected Constructor. For more details, please refer to here Besides, according to

Azure Resource Manager microsoft.classicstorage/storageAccounts no registered resource provider

主宰稳场 提交于 2020-03-06 10:55:07
问题 I am getting an error when Azure Resource Manager (ARM) is deploying my template on Azure. In the Resource Group events pane I get an error for the storage account creation of: statusMessage:{"error":{"code":"NoRegisteredProviderFound","message":"No registered resource provider found for location 'Australia Southeast' and API version '2014-11-01'."}} I am using the Azure xPlat CLI and can confirm with the command azure location list that the storageAccounts resource is available in Australia

Azure Resource Manager microsoft.classicstorage/storageAccounts no registered resource provider

喜你入骨 提交于 2020-03-06 10:53:29
问题 I am getting an error when Azure Resource Manager (ARM) is deploying my template on Azure. In the Resource Group events pane I get an error for the storage account creation of: statusMessage:{"error":{"code":"NoRegisteredProviderFound","message":"No registered resource provider found for location 'Australia Southeast' and API version '2014-11-01'."}} I am using the Azure xPlat CLI and can confirm with the command azure location list that the storageAccounts resource is available in Australia

How to test linked ARM templates?

喜欢而已 提交于 2020-03-04 18:33:30
问题 My ARM template is getting too big so I would like to use linked templates. I understand that templates need to be somewhere where they are accessible to ARM. But I should be able to test them somehow before I upload them to target location. Otherwise there is a risk that I override previously working templates with invalid ones. How do I revert then? How do you do it? 回答1: Here's what works for me. I have a pipeline that deploys the template from the Azure Devops repo. The pipeline deploys

Azure ARM Template Skip Nested Condition

Deadly 提交于 2020-02-25 17:14:50
问题 So I'm really new to ARM templates and for my first template I'm trying to create one that asks some questions and ultimately creates a new subnet and an NSG if required and then a VM and all it's components. The template I've pasted below works perfectly if I select 'Yes' for both the 'Create New Subnet' and 'Create New NSG' questions. If I select 'No' I get an error saying: The template resource 'dev-vnet/' for type 'Microsoft.WindowsAzure.ResourceStack.Frontdoor.Common.Entities

Azure ARM Template Skip Nested Condition

谁都会走 提交于 2020-02-25 16:59:30
问题 So I'm really new to ARM templates and for my first template I'm trying to create one that asks some questions and ultimately creates a new subnet and an NSG if required and then a VM and all it's components. The template I've pasted below works perfectly if I select 'Yes' for both the 'Create New Subnet' and 'Create New NSG' questions. If I select 'No' I get an error saying: The template resource 'dev-vnet/' for type 'Microsoft.WindowsAzure.ResourceStack.Frontdoor.Common.Entities

ARM Return App Service Environment ID to use in Terraform Script

妖精的绣舞 提交于 2020-02-05 04:38:19
问题 Terraform does not allow for the deployment of App Service Environments so I am using the azurerm_template_deployment as a work around. However, I want to reference the App Service Environment ID in an App Service Plan resource that I am creating later. How would I get and save the ID of the App Service Environment using this method? I am using the depends_on tag in the app service plan resource to ensure its creation after the app service environment, but I can not figure out how to get the

Creating a blobServiceClient in azure-sdk-for-js with JWT accessToken

时光怂恿深爱的人放手 提交于 2020-02-05 02:34:14
问题 When migrating from v2 to v10 version of a azure SDK javascript library , we have been facing an issue. We need to create a blobServiceClient using the JWT accessToken that has been received from acquireTokenWithAuthorizationCode function in the adal-node library. The options seem limited to us and the examples are few. SimpleTokenCredential class have been removed from the azure-sdk-for-js and thus it cannot be instantiated. Going, through the javascript source code for the azure-sdk-for-js

How can I set “Https only” for my Azure web app using an ARM template?

前提是你 提交于 2020-02-03 04:15:08
问题 I know how to set Https only manually in the Azure portal. Navigating to My Web Application > Custom domains in the Azure portal opens the Custom domains pane, which has an "Https Only" option. Setting this option to "On" enables the functionality I am looking for. I found how to do this manually on Benjamin Perkins Blog. Unfortunately, it does not contain a description of how to solve the problem in an automated way using ARM templates. How can I set this "Https only" flag in my ARM template

Create Azure blob/fileshare container through ARM template

核能气质少年 提交于 2020-02-01 14:12:58
问题 I am looking a way to create a container in Azure blob & file-share storage through ARM template. At present I have ARM template to provision the storage accounts, but I want to create containers also in ARM. { "name": "[parameters('storageAccountName')]", "type": "Microsoft.Storage/storageAccounts", "location": "[resourceGroup().location]", "apiVersion": "[variables('storageApiVersion')]", "sku": { "name": "[variables('storageAccountType')]" }, "dependsOn": [ ], "tags": { "Environment": "