diff --git a/sdk/digitaltwins/test-resources.bicep b/sdk/digitaltwins/test-resources.bicep index 3868d3b9420cd..17578827e6416 100644 --- a/sdk/digitaltwins/test-resources.bicep +++ b/sdk/digitaltwins/test-resources.bicep @@ -9,17 +9,8 @@ param baseName string = resourceGroup().name @description('The location of the resource. By default, this is the same as the resource group.') param location string = resourceGroup().location -var rbacOwnerRoleDefinitionId = '/subscriptions/${subscription().subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635' var adtOwnerRoleDefinitionId = '/subscriptions/${subscription().subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/bcd981a7-7f74-457b-83e1-cceb9e632ffe' -resource roleAssignment 'Microsoft.Authorization/roleAssignments@2018-09-01-preview' = { - name: guid(resourceGroup().id) - properties: { - roleDefinitionId: rbacOwnerRoleDefinitionId - principalId: testApplicationOid - } -} - resource digitaltwin 'Microsoft.DigitalTwins/digitalTwinsInstances@2020-03-01-preview' = { name: baseName location: location diff --git a/sdk/digitaltwins/test-resources.json b/sdk/digitaltwins/test-resources.json index 1664a25e61bd2..bec784dcde9da 100644 --- a/sdk/digitaltwins/test-resources.json +++ b/sdk/digitaltwins/test-resources.json @@ -5,7 +5,7 @@ "_generator": { "name": "bicep", "version": "0.4.63.48766", - "templateHash": "14469093771711807520" + "templateHash": "7080001263714194046" } }, "parameters": { @@ -34,19 +34,9 @@ }, "functions": [], "variables": { - "rbacOwnerRoleDefinitionId": "[format('/subscriptions/{0}/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635', subscription().subscriptionId)]", "adtOwnerRoleDefinitionId": "[format('/subscriptions/{0}/providers/Microsoft.Authorization/roleDefinitions/bcd981a7-7f74-457b-83e1-cceb9e632ffe', subscription().subscriptionId)]" }, "resources": [ - { - "type": "Microsoft.Authorization/roleAssignments", - "apiVersion": "2018-09-01-preview", - "name": "[guid(resourceGroup().id)]", - "properties": { - "roleDefinitionId": "[variables('rbacOwnerRoleDefinitionId')]", - "principalId": "[parameters('testApplicationOid')]" - } - }, { "type": "Microsoft.DigitalTwins/digitalTwinsInstances", "apiVersion": "2020-03-01-preview",