azure-resource-manager

How to use an Environment variable in an Azure Resource Management Template

淺唱寂寞╮ 提交于 2019-12-07 21:57:50
问题 I have searched and read the documentation of Resource Management Template, but i couldn't find any information over Environment variables. I tried to define 2 environment variables in a variable object, but it didn't work. variables": { "mailPass": "TYUl5491", "SlackToken": "hrtu-12546233785-55454578422-56454412348-87845155121ht5621552521er55547123" } Is there any way to define environment variables in an Azure Resource Management Template and then use it for the web app or api app? 回答1: Yes

Azure VM custom script extension SAS token support

十年热恋 提交于 2019-12-07 19:44:29
问题 I am trying to deploy add a custom script extension to an Azure VM using an ARM template, and I want to have it download files from a storage account using a SAS token. Here is the template (simplified): { "name": "CustomScriptExtension" "type": "Microsoft.Compute/virtualMachines/extensions", "location": "eastus", "properties": { "publisher": "Microsoft.Compute", "type": "CustomScriptExtension", "typeHandlerVersion": "1.8", "settings": { "fileUris": [ "https://{storage-account}.blob.core

How to get list of Azure VMs (non-classic/Resource Managed) using Java API

别来无恙 提交于 2019-12-07 10:08:36
问题 How to get list of VMs (non-classic) using Java API, which are created using resource Manager? Why we need tenant id, client id and client key to create 'com.microsoft.azure.management.compute.ComputeManagementClient' object? Can it be done using subscription id and Azure Portal credentials? Sample provided with azure-mgmt-compute project needs these tenant id, client id where as we don't need these details when we create VM (selecting Resource Manager) on Azure Portal. 回答1: Why we need

New Azure portal (no End Points) how to connect to VM with RDP from behind a firewall

六眼飞鱼酱① 提交于 2019-12-07 09:00:58
问题 I've created a VM (non-classic, using Resource Manager) in new Azure portal but I need to connect from behind a firewall. I've found a bunch of articles explaining how to solve it by editing an Endpoint settings for RDP, but in the new portal there is nothing like this! Inbound and Outbound rules are just firewall rules as I understand and it gives nothing. I've connected to it from home and tried to change RDP listening port to something not blocked by firewall with following power shell

Does VS 2015 Azure Publish wizard not deal with ARM created resources?

心已入冬 提交于 2019-12-07 08:10:24
问题 I can see ARM Cloud Services from the Publish wizard but do not see ARM storage when using an admin account. I am able to Publish to ARM Cloud service with admin account but must specify ASM storage account. When using an account with RBAC access limited to a resource group that contains the above cloud service, the publish wizard says cloud services are not available in this subscription. VS Cloud Explore shows the correct RBAC limited resources except of the Cloud Service. I can log in to

Create SQL Server via Azure Resource Manager (ARM) template

核能气质少年 提交于 2019-12-07 06:50:40
问题 I am trying to create a new Azure instance of SQL Server in which I would like to then create a few new databases. I know from the Azure Portal that some sort of admin users could be: an SA user (I think this means "Server Admin" and it looks like some sort of old way of managing a SQL Server instance, but at the same time very "basic" and proved to work) an Active Directory user (not sure about Azure terminology here, but it looks like this could be some "broad user" for the whole Azure

Azure: The access token has been obtained from wrong audience or resource

可紊 提交于 2019-12-07 06:15:28
问题 Trying to create a simple task to list all resources in Azure portal. I followed the direction in the given URL and successfully received token. http://azure-sdk-for-python.readthedocs.org/en/latest/resourcemanagement.html#authentication However using the combination of token and superscription_id, I am getting the following error. ERROR: azure.common.AzureHttpError: {"error"{"code":"AuthenticationFailed","message":"The access token has been obtained from wrong audience or resource '00000002

azure-arm-consumption: get consumption of a resource group

大城市里の小女人 提交于 2019-12-07 06:07:16
问题 In my Node.js project I am trying to use azure-arm-consumption package to get the current consumption/billing of a resource group. I mean, how much money was spent on this resource group until now. Under Interfaces, from AggregatedCost to UsageDetails, all of these interfaces contain methods, but I just don't manage to find the method for reading how much money a specific resource group has consumed. My code: const MsRest = require('ms-rest-azure'); const credentials = MsRest

How to use sticky staging slots in Azure Arm Templates

不打扰是莪最后的温柔 提交于 2019-12-07 04:57:03
问题 How can you deploy sticky settings to a production app slot in azure web apps using ARM templates without overwriting the existing app settings? I'm using Azure ARM templates to deploy my environment and code releases. The environment has both Staging and Production slots. Part of the deployment is deploying AppSettings. We deploy to Staging, test, then swap to prod. This system has been working well until now, when I need to deploy a sticky AppSetting to prod. Normally, the deployments are

Configure CORS by using Azure Resource Manager template

為{幸葍}努か 提交于 2019-12-07 03:29:11
问题 I'm trying to set CORS rule for my storage account as suggested here under Configure CORS by using Azure Resource Manager tools: https://docs.microsoft.com/en-us/azure/app-service-api/app-service-api-cors-consume-javascript by adding property cors: "resources": [ { "type": "Microsoft.Storage/storageAccounts", "sku": { "name": "Standard_RAGRS", "tier": "Standard" }, "kind": "Storage", "name": "[parameters('storageAccounts_teststoragejkjk_name')]", "apiVersion": "2016-01-01", "location":