Skip to content

Commit 7c507ab

Browse files
authored
Remove dependency on onefuzz deployment role to unblock (microsoft#1693)
1 parent e2bd878 commit 7c507ab

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/api-service/__app__/onefuzzlib/workers/scalesets.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,6 @@ def setup(self) -> None:
261261
SCALESET_LOG_PREFIX + "scaleset running scaleset_id:%s",
262262
self.scaleset_id,
263263
)
264-
auto_scaling = self.try_to_enable_auto_scaling()
265-
if isinstance(auto_scaling, Error):
266-
self.set_failed(auto_scaling)
267-
return
268264

269265
identity_result = self.try_set_identity(vmss)
270266
if identity_result:

src/deployment/azuredeploy.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
"Storage Account Contributor": "17d1049b-9a84-46fb-8f53-869881c3d3ab",
6868
"Virtual Machine Contributor": "9980e02c-c2be-4d73-94e8-173b1dc7cf3c",
6969
"Storage Blob Data Reader": "2a2b9908-6ea1-4ae2-8e65-a410df84e7d1",
70-
"OneFuzz Deployment": "d4f7c2d9-6c1e-4caa-a39b-cba6d76bc647",
7170
"keyVaultName": "[concat('of-kv-', uniquestring(resourceGroup().id))]"
7271
},
7372
"functions": [
@@ -820,21 +819,6 @@
820819
"OWNER": "[parameters('owner')]"
821820
}
822821
},
823-
{
824-
"type": "Microsoft.Authorization/roleAssignments",
825-
"apiVersion": "2017-09-01",
826-
"name": "[guid(concat(resourceGroup().id, '-auto_scale'))]",
827-
"properties": {
828-
"roleDefinitionId": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/', variables('OneFuzz Deployment'))]",
829-
"principalId": "[reference(resourceId('Microsoft.Web/sites', parameters('name')), '2018-02-01', 'Full').identity.principalId]"
830-
},
831-
"DependsOn": [
832-
"[resourceId('Microsoft.Web/sites', parameters('name'))]"
833-
],
834-
"tags": {
835-
"OWNER": "[parameters('owner')]"
836-
}
837-
},
838822
{
839823
"type": "Microsoft.Authorization/roleAssignments",
840824
"apiVersion": "2018-07-01",

0 commit comments

Comments
 (0)