Skip to content

Commit e2c90b1

Browse files
authored
remove roleID (#36699)
1 parent 6ea3407 commit e2c90b1

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

sdk/eventhub/azure-eventhub/stress/stress-test-resources.bicep

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ param location string = resourceGroup().location
1111
param storageEndpointSuffix string = 'core.windows.net'
1212

1313
var ehVersion = '2017-04-01'
14-
var contributorRoleId = 'b24988ac-6180-42a0-ab88-20f7382dd24c'
15-
var eventHubsDataOwnerRoleId = 'f526a384-b230-433a-b45c-95f59c4a2dec'
1614
var eventHubsNamespace_var = 'eh-${baseName}'
1715
var eventHubName = 'eh-${baseName}-hub'
1816
var eventHubAuthRuleName = 'eh-${baseName}-hub-auth-rule'
@@ -78,24 +76,6 @@ resource storageAccount_default_containerName 'Microsoft.Storage/storageAccounts
7876
]
7977
}
8078

81-
resource id_name_baseName_eventHubsDataOwnerRoleId_testApplicationOid 'Microsoft.Authorization/roleAssignments@2019-04-01-preview' = {
82-
name: guid(resourceGroup().id, deployment().name, baseName, eventHubsDataOwnerRoleId, testApplicationOid)
83-
properties: {
84-
roleDefinitionId: resourceId('Microsoft.Authorization/roleDefinitions', eventHubsDataOwnerRoleId)
85-
principalId: testApplicationOid
86-
scope: resourceGroup().id
87-
}
88-
}
89-
90-
resource id_name_baseName_contributorRoleId_testApplicationOid 'Microsoft.Authorization/roleAssignments@2019-04-01-preview' = {
91-
name: guid(resourceGroup().id, deployment().name, baseName, contributorRoleId, testApplicationOid)
92-
properties: {
93-
roleDefinitionId: resourceId('Microsoft.Authorization/roleDefinitions', contributorRoleId)
94-
principalId: testApplicationOid
95-
scope: resourceGroup().id
96-
}
97-
}
98-
9979
output EVENT_HUB_NAMESPACE string = eventHubsNamespace_var
10080
output EVENT_HUB_HOSTNAME string = '${eventHubsNamespace_var}.servicebus.windows.net'
10181
output EVENT_HUB_NAME string = eventHubName

0 commit comments

Comments
 (0)