azure-resource-manager

Defining Azure VM CustomScriptExtension in Terraform (Expecting state 'Element'.. Encountered 'Text' with name '', namespace ''. \“.”)

不想你离开。 提交于 2020-06-18 15:39:46
问题 I defined a CustomScriptExtension for Azure VM in Terraform: resource "azurerm_virtual_machine_extension" "test" { name = "WinRM" location = "South Central US" resource_group_name = "${azurerm_resource_group.test.name}" virtual_machine_name = "${azurerm_virtual_machine.test.name}" publisher = "Microsoft.Compute" type = "CustomScriptExtension" type_handler_version = "1.8" settings = <<SETTINGS { "fileUris": "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts

Defining Azure VM CustomScriptExtension in Terraform (Expecting state 'Element'.. Encountered 'Text' with name '', namespace ''. \“.”)

跟風遠走 提交于 2020-06-18 15:39:05
问题 I defined a CustomScriptExtension for Azure VM in Terraform: resource "azurerm_virtual_machine_extension" "test" { name = "WinRM" location = "South Central US" resource_group_name = "${azurerm_resource_group.test.name}" virtual_machine_name = "${azurerm_virtual_machine.test.name}" publisher = "Microsoft.Compute" type = "CustomScriptExtension" type_handler_version = "1.8" settings = <<SETTINGS { "fileUris": "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts

Event subscription by ARM template for topic with EndpointType as AzureFunction

自古美人都是妖i 提交于 2020-05-30 09:27:15
问题 I am trying to create an event grid topic subscription with "endpointType": "AzureFunction" . It is giving following error: - "error": { "code": "InvalidRequest", "message": "Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like https://www.example.com." } My ARM template is given below: - { "name": "[concat(variables('eventGridTopicName'), '/Microsoft.EventGrid/', variables('myFuncName'))]", "type": "Microsoft.EventGrid

Event subscription by ARM template for topic with EndpointType as AzureFunction

孤街醉人 提交于 2020-05-30 09:23:35
问题 I am trying to create an event grid topic subscription with "endpointType": "AzureFunction" . It is giving following error: - "error": { "code": "InvalidRequest", "message": "Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like https://www.example.com." } My ARM template is given below: - { "name": "[concat(variables('eventGridTopicName'), '/Microsoft.EventGrid/', variables('myFuncName'))]", "type": "Microsoft.EventGrid

Azure Functions ARM template redeployment deletes my published functions

我是研究僧i 提交于 2020-05-29 03:24:39
问题 I have an Azure Functions (2.0) instance deployed by an ARM Template using Azure DevOps pipelines. I have another pipeline that deploys a functions application to the instance through zip deploy. This almost works perfectly, however, if I deploy the functions Infrastructure as Code, then deploy the app and then redeploy the Infrastructure as Code, my functions app is removed and all the functions disappear. I am using the incremental deployment so I cont see why it does this. Any thoughts on

Azure Functions ARM template redeployment deletes my published functions

拜拜、爱过 提交于 2020-05-29 03:24:38
问题 I have an Azure Functions (2.0) instance deployed by an ARM Template using Azure DevOps pipelines. I have another pipeline that deploys a functions application to the instance through zip deploy. This almost works perfectly, however, if I deploy the functions Infrastructure as Code, then deploy the app and then redeploy the Infrastructure as Code, my functions app is removed and all the functions disappear. I am using the incremental deployment so I cont see why it does this. Any thoughts on

Create Azure Databricks Token using ARM template

会有一股神秘感。 提交于 2020-05-27 06:29:08
问题 I need to create a token in Azure Databricks using ARM template. I am able to create Azure Databricks using ARM template but unable to create token in Azure Databricks using ARM template Following is the template which i have used to create Azure Databricks { "$schema": "https://schema.management.azure.com/schemas/2015-01- 01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "workspaceName": { "type": "string", "metadata": { "description": "The name of the Azure

How do you track down the Resource Type of a VNet Integration in Azure?

落花浮王杯 提交于 2020-04-18 06:10:16
问题 Yesterday I was trying to disconnect an App Service VNet integration in Powershell. I asked this question, and I got an answer. However, even if I knew the Powershell cmdlet specified in the solution, I would still be dependent on knowing that an App Service VNet integration has a resource type "Microsoft.Web/sites/config". I don't know how to arrive at that information, and I will surely face similar questions in the future. Where is the resource type of a VNet Integration defined? How do I

Deployment of ARM: Authorization failed for template resource 'sql

允我心安 提交于 2020-04-18 05:47:33
问题 I try to deply SQL Server Logical server with PS and ARM. I can succesfully create logical server at portal with contributor rights, but cannot figure out what is wrong here. I have here PowerShell ISE on Windows. ARM template is copy and paste from https://github.com/Azure/azure-quickstart-templates/tree/master/101-sql-logical-server/ //CODE Connect-AzAccount -Credential $Credential -Tenant $tenant -Subscription $subscription #ARM Deployment $templateFile = "C:\Azure\SQLServer\azuredeploy

How to create a Linux AppService Plan with New-AzAppServicePlan?

℡╲_俬逩灬. 提交于 2020-04-16 05:53:51
问题 What is the equivalient of this code using New-AzAppServicePlan ? az appservice plan create --resource-group $ServerFarmResourceGroupName ` --name $AppServicePlanName ` --is-linux ` --location $ResourceGroupLocation ` --sku $AppServicePlanTier ` --number-of-workers $NumberOfWorkers Is there really no way to create an App Service Plan using Az Powershell? Why can it only be done via Azure CLI or ARM? I only found this answer, which basically uses ARM directly: How do I use Powershell to create