ARM deployment resourceID with the servicebus is not working

0 votes

I am getting this error when trying to deploy my Azure Resource Package. Would love to find a way around 'resourceId': function requires exactly one multi-segmented argument statement.

 [ERROR] New-AzureRmResourceGroupDeployment : 2:17:06 PM - Error: Code=InvalidTemplate; 
14:17:06 - [ERROR] Message=Deployment template validation failed: 'The template resource 
14:17:06 - [ERROR] 'xxxxx/basket-item-changed-topic/basket-telemetry-processor' at line 
14:17:06 - [ERROR] '2799' and column '10' is not valid: Unable to evaluate template language 
14:17:06 - [ERROR] function 'resourceId': function requires exactly one multi-segmented argument 
14:17:06 - [ERROR] which must be resource type including resource provider namespace. Current 
14:17:06 - [ERROR] function arguments 'Microsoft.ServiceBus/namespaces/topics,xxxxxx/bask
14:17:06 - [ERROR] et-item-changed-topic'. Please see 

-------------------This is the template

{ "comments": "Generalized from resource: '/subscriptions/fa17ed69-d83f-47bc-8604-fd96cd27d322/resourcegroups/xxxxxxx-Integration-Environment/providers/Microsoft.ServiceBus/namespaces/xxxxx/topics/basket-item-changed-topic/subscriptions/basket-telemetry-processor'.", "type": "Microsoft.ServiceBus/namespaces/topics/subscriptions",
"name": "[parameters('subscriptions_basket_telemetry_processor_name')]",
"apiVersion": "2015-08-01", "location": "UK West",
"scale": null, "properties": {
"lockDuration": "00:02:00", "requiresSession": false,
"defaultMessageTimeToLive": "10675199.02:48:05.4775807",
"deadLetteringOnMessageExpiration": true,
"deadLetteringOnFilterEvaluationExceptions": true,
"messageCount": 0, "maxDeliveryCount": 1,
"enableBatchedOperations": true, "status": "Active",
"createdAt": "2017-05-10T14:31:54.2059078Z",
"updatedAt": "2017-05-10T14:31:56.6330818Z",
"accessedAt": "2017-06-23T10:53:20.3815084Z",
"countDetails": { "activeMessageCount": 0,
"deadLetterMessageCount": 0,
"scheduledMessageCount": 0, "transferMessageCount": 0, "transferDeadLetterMessageCount": 0
}, "autoDeleteOnIdle": "10675199.02:48:05.4775807",
"entityAvailabilityStatus": "Available" },
"dependsOn": [
"[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespaces_xxx_int_name'))]",
"[resourceId('Microsoft.ServiceBus/namespaces/topics', parameters('topics_basket_item_changed_topic_name'))]" ]

Jun 17, 2018 in DevOps on Cloud by Atul
• 10,240 points

1 answer to this question.

0 votes

You can just use the name of the resource if its deployed in the same template:

dependsOn: [

you cannot use dependsOn with resources deployed or existing outside of the template, so my original remark doesn't make any sense.

I hope that the above information would be helpful for you.

answered Jun 17, 2018 by shubham
• 7,320 points

Related Questions In DevOps on Cloud

0 votes
1 answer

Is it possible to open a bug in VSTS if release deployment fails?

You can do this by adding another ...READ MORE

answered Apr 24, 2018 in DevOps on Cloud by DareDev
• 6,890 points
0 votes
1 answer

IBM Cloud DevOps - Eclipse Orion IDE not working correctly

Open the dev-tools and run localStorage.clear() in ...READ MORE

answered Jul 19, 2018 in DevOps on Cloud by Kalgi
• 2,680 points
0 votes
1 answer

I am looking for a python code to get my Azure VM status in my email , like whether the running vms port is open to the internet. If its open to internet I should get a mail notification

Hey, @Sourav, Check this out It deals with ...READ MORE

answered May 29, 2020 in DevOps on Cloud by Sirajul
• 58,990 points
0 votes
1 answer

Boto3 not retrieving users from AWS Appstream. whats the issue?

Hi@Lakshminarayanan, I think you didn't get any output ...READ MORE

answered Sep 21, 2020 in DevOps on Cloud by MD
• 95,060 points
+1 vote
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
0 votes
1 answer