Azure / Azure/azure-quickstart-templates

101-vms-with-selfhost-integration-runtime - template resource '_artifactsLocation' at line '81' and column '27' is not valid

Open
#7,360 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

[101-vms-with-selfhost-integration-runtime](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-vms-with-selfhost-integration-runtime/azuredeploy.json)

### Issue Details
I was reading [a blog about setting up a SHIR for connecting data factory to an SQL database within a VNET](https://towardsdatascience.com/how-to-secure-your-azure-data-factory-pipeline-e2450502cd43) and encountered a problem when trying to set up the SHIR.
### Repro steps (*if necessary, delete otherwise*)
1. Section 3b of the linked article has the following command:
`az group deployment create -g $shir_rg --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-vms-with-selfhost-integration-runtime/azuredeploy.json --parameters existingDataFactoryName=$adfv2 existingDataFactoryResourceGroup=$rg existingDataFactoryVersion=V2 IntegrationRuntimeName=$shir_name NodeCount=2 adminUserName=$shir_admin adminPassword=$shir_pass existingVirtualNetworkName=$vnet existingVnetLocation=$loc existingVnetResourceGroupName=$rg existingSubnetInYourVnet="shir"`

The command fails when using Azure CLI 2.3.0 with the following error:
`{'additional_properties': {}, 'code': 'InvalidTemplate', 'message': "Deployment template validation failed: 'The template resource '_artifactsLocation' at line '81' and column '27' is not valid: The language expression property 'uri' doesn't exist, available properties are '$schema, contentVersion, parameters, variables, resources'.. Please see https://aka.ms/arm-template-expressions for usage details.'.", 'target': None, 'details': None, 'additional_info': []}`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with 101-vms-with-selfhost-integration-runtime/azuredeploy.json, especially the resource named _artifactsLocation around line 81. Reproduce the deployment using the Azure CLI command and parameters in the issue, then inspect the template expression validation error. Done means the template validates and the self-hosted integration runtime deployment proceeds without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.