azure-resource-manager

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

柔情痞子 提交于 2019-12-06 04:03:28
问题 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? 回答1: 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

Deployment slot specific appsettin in ARM template?

我们两清 提交于 2019-12-05 23:08:11
问题 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? 回答1: 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": [ "

Azure Resource Group Set Tags with SDK?

房东的猫 提交于 2019-12-05 21:56:41
I have used code similar to http://blogs.infinitesquare.com/b/tranise/archives/-azure-resource-group-une-nouvelle-facon-dorganiser-ses-environnements-dans-azure#.Vr1RrfIrLgk to create a Resource Group in Azure with C#. I am now trying to extend it by putting Tags on the Resource. Adding resourceGroupGetResult.ResourceGroup.Tags.Add("a","1") works, but a subsequent CreateOrUpdateAsync call fails with "InvalidRequestContent: The request content was invalid and could not be deserialized: 'Could not find member 'provisioningState' on object of type 'ResourceGroupDefinition'. Path

Using Azure Resource Manager to Copy Azure SQL Databases

怎甘沉沦 提交于 2019-12-05 18:28:05
I am currently creating an Environment Deployment Package using ARM and I want to be able copy an existing Azure SQL Database (schema and data) to another Azure SQL Database in a new Resource Group. I created a .bacpac file from the original SQL Database and uploaded it into a Storage Account. I then added a SQL Database Import Resource to my Template and pointed it at the URI of the .bacpac file I created. When I try to run the Deployment, I get this error. A project which specifies Microsoft Azure SQL Database v12 as the target platform cannot be published to Microsoft Azure SQL Database {

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

不羁岁月 提交于 2019-12-05 12:05:57
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-0000-0000-c000-000000000000'. It should exactly match (including forward slash) with one of the allowed

Create SQL Server via Azure Resource Manager (ARM) template

会有一股神秘感。 提交于 2019-12-05 10:34:13
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 platform, like e.g. my own login user for the Azure Portal, this is not specific to databases world). I

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

岁酱吖の 提交于 2019-12-05 09:48:53
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.loginWithServicePrincipalSecret(keys.appId, keys.pass, keys.tenantId); const { ConsumptionManagementClient } = require(

Configure CORS by using Azure Resource Manager template

落爺英雄遲暮 提交于 2019-12-05 08:14:01
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": "westus", "tags": {}, "properties": { "cors": {"allowedOrigins": ["*"]} }, "resources": [], "dependsOn": [] }

Connect Azure Web App to vNet using ARM template

混江龙づ霸主 提交于 2019-12-05 04:58:20
I am trying to script the setup of a bunch of resource in Azure, as part of this I need a web app to be able to communicate with a service running on a VM via the vNet. I have created a template that seems to do everything it should to create the connection but for some reason the connection is not made. Looking in the portal shows that the site is connected to the vNet and that the certificates are in sync, but the point-to-site configuration on the vNet gateway shows no active connections. However if I disconnect the web app from the vNet and then use the setup button in the Azure portal to

How to list subscriptions with Microsoft.Azure.ResourceManager?

你说的曾经没有我的故事 提交于 2019-12-05 02:44:57
问题 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