azure-resource-manager

Can Secrets From Objects Created in ARM Templates Get Auto Added to Key Vault

∥☆過路亽.° 提交于 2019-12-20 04:24:08
问题 If I have an Azure ARM template that can create: Azure Container Registry Azure Key Vault Is there a way for the username and password for the Azure Container Registry to be automatically be added to the Azure Key Vault using ARM templates? Is there some way to refer to the Azure Container Registry username and password secrets in ARM templates for this purpose? UPDATE @EdBoykin's answer is correct, this is what I ended up with: { "type": "Microsoft.KeyVault/vaults/secrets", "name": "[concat

Delete Azure Resource Groups with no resources in it

久未见 提交于 2019-12-20 03:32:41
问题 I am trying to find all the Azure RM resource groups with no resources in it and delete those resource groups using PowerShell. Deleting using Portal is so time consuming. Using powershell I was able to accomplish by using the following code. Is there a better way of achieving this in powershell? $allResourceGroups = Get-AzureRmResourceGroup $resourceGroupsWithResources = Get-AzureRMResource | Group-Object ResourceGroupName $allResourceGroups | % { $r1 = $_ [bool]$hasResource = $false

In Azure as a Resource Group contributor why can't I create Storage Accounts and what should be done to prevent this situation?

前提是你 提交于 2019-12-20 01:09:05
问题 A Subscription admin at a customer granted me (an MS account) Contributor role on one of their Resource Groups. When I try to create a Storage Account in that Resource Group, I get a failure that: 'AuthorizationFailed' does not have authorization to perform action 'Microsoft.Storage/register/action' over scope I logged into the Subscription via Powershell and listed the available providers, and found that most are not registered. When I try to register, I get that error. Why are they not

Azure Resource Template Dependencies / Application Insights

南笙酒味 提交于 2019-12-19 06:05:32
问题 I have a chicken and egg problem deploying Application Insights with my web application to Azure. In the ARM template, the Application Insights module is dependent upon the web site for the application id (see dependencies in the ARM templates below). On the other hand, in order to fully instrument the web application, I need the instrumentation key from the Application Insights Module. How does one get around this? Application Insights View From the Portal ARM Template for Web App ARM

Azure move app service to a different app service plan

穿精又带淫゛_ 提交于 2019-12-19 05:18:46
问题 I have the following setup: Resource group 1 App service plan 1 App Service 1 (app service plan 1) Resource group 2 App service plan 2 App Service 2 (app service plan 2) App Service 3 (app service plan 1) I would like to move App Service 3 which is into Resource group 2 but uses app service plan 1 , to app service plan 2 . Is this possible? I have tried to use the feature "Change App service plan" available on the new portal but when I click on it a blade appear saying that "No App Service

Azure resource manager template website app settings

百般思念 提交于 2019-12-19 03:16:47
问题 I am trying to add app settings to my Azure Website via the JSON template files as part of the Azure Resource Manager. In an Azure Resource template json file, there are examples for creating connectionStrings directly from the JSON template file with a sub-dependency of type 'config' with properties for 'connectionStrings' as in the final example here http://haishibai.blogspot.co.uk/2014/09/tutorial-building-azure-template.html I have also checked in the website schema definition for

Azure resource manager template website app settings

我怕爱的太早我们不能终老 提交于 2019-12-19 03:16:07
问题 I am trying to add app settings to my Azure Website via the JSON template files as part of the Azure Resource Manager. In an Azure Resource template json file, there are examples for creating connectionStrings directly from the JSON template file with a sub-dependency of type 'config' with properties for 'connectionStrings' as in the final example here http://haishibai.blogspot.co.uk/2014/09/tutorial-building-azure-template.html I have also checked in the website schema definition for

Azure website resource template error

只谈情不闲聊 提交于 2019-12-18 13:58:06
问题 I'm attempting to use the AzureResourceManager PowerShell module to create and configure a website. I started with a template file generated by Visual Studio, which works fine when I use it via New-AzureResourceGroup -TemplateFile website.json . So now I'm trying to tweak the template file to configure the site. I'm trying to set the php and .NET Framework versions. According to the schema these properties are set via a config object in a resources array. Here's the website section of my json

Deploying website from private Github repository using ARM Templates

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 13:14:28
问题 I am trying to create a website through Azure Resource Manager and then deploy from a private Github repository. I have an ARM Template that works for a public repository. if I then make the repository private, connect to it through the Portal it all works fine. If I redeploy the ARM Template it will fail with the message "Cannot find SourceControlToken with name GitHub." It seems that when the portal connects to a private repo it will create an ssh key that is used to authenticate. The ssh

How do I use ARM 'outputs' values another release task?

自古美人都是妖i 提交于 2019-12-18 12:14:25
问题 I have an ARM template that has and outputs section like the following: "outputs": { "sqlServerFqdn": { "type": "string", "value": "[reference(concat('Microsoft.Sql/servers/', variables('sqlserverName'))).fullyQualifiedDomainName]" }, "primaryConnectionString": { "type": "string", "value": "[concat('Data Source=tcp:', reference(concat('Microsoft.Sql/servers/', variables('sqlserverName'))).fullyQualifiedDomainName, ',1433;Initial Catalog=', variables('databaseName'), ';User Id=', parameters(