Azure / Azure/azure-quickstart-templates

Problem in oms-servicebus-solution

Open
#3,873 1 comment 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

### Issue Details
There is a problem in serviceBusIngestionRunbook when getting the name of the resourcegroup using Find-AzureRmResource ps command. the problem is that it used the name of...the namespace to find the parent resource group name but if there are differente resource types with the same name (in the subscription) there could be problems...to avid them I modify the published runbook in that way:
everytime it used this:
**$sbResourceGroup = (Find-AzureRmResource -ResourceNameEquals $sb.Name).ResourceGroupName**

I modify it like this:
**$sbResourceGroup = (Find-AzureRmResource -ResourceNameEquals $sb.Name).ResourceGroupName -ResourceType 'Microsoft.ServiceBus/namespaces'**

to be sure to look for a servicebus resource

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in the published serviceBusIngestionRunbook and locate each Find-AzureRmResource call that resolves the Service Bus resource group. Verify the lookup is restricted to Service Bus namespaces and confirm the runbook no longer risks selecting a different resource type with the same name.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
cloud, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.