Skip to content

Commit

Permalink
Created VMSS bicep module (#68)
Browse files Browse the repository at this point in the history
* first draft

* first end2end traft

* Minor update

* Minor update

* Minor update

* Minor update

* Minor cleanup

* Minor cleanup

* Minor cleanup

* Added version output

* Added  output

* Minor cleanup

* Added  output

* Added  output

* Added  output

* Simplified logic

* Added output

* Added output

* Added output + refactoring

* Added output

* Added output

* Added replacement

* Added replacement v2

* Cleanup

* Reset trigger

* Added output

* Fixed typo

* Added todo.

* Updated docs

* Replaced login with cred

* Replaced cred ref

* added missing func

* Minor update

* Pretest changes

* Updated remaining tests + extended api tests to exclude preview and allows for latest 5

* Added template translation to test-deployment

* Temp add publish condition

* Another try

* Another try

* Another try

* Another try

* Undid temp changes

* Added workaround to acocunt for bicep compile issue [deployments api version]

* Shifted bicep handling to native PS commands with bicep cli support + updated both RG + Gallery pipelines to ref bicep

* Updated remaining pipelines to use creds object

* Fixed schema eval

* Updated readme

* Temp remove arm templates to ensure it runs without

* Updated removal jobs to bicep + added publish workaround to allow for conditions

* Minor updates

* Further updates

* Further updates

* Restored templates

* Moved lock + rg bicep fix

* Fixed path

* Temp disabled template spec publish

* Undo after test

* Aligned bicep templates rbac

* Reduced roles for gallery

* Reduced role ref

* Cleanup

* Created vmss template

* Adjusted api tests

* Added output

* Switched ref for vmss to bicep

* Updated param

* Updated api

* Adjusted output

* Updated error handling

* Updated output

* Updated function input print

* Finishing touches

* Small update

* Fallback scale set to split PRs

* Re-added vmss changes

* refactored rbac

* Updated module name

* Cleanup

* Cleanupo

* Fixed naming

* Added sql server bicep

* Undo previous changes

* cleanup

* cleanup

Co-authored-by: Alexander Sehr <[email protected]>
  • Loading branch information
AlexanderSehr and Alexander Sehr authored Sep 27, 2021
1 parent 46bd5d9 commit bb0d259
Show file tree
Hide file tree
Showing 4 changed files with 786 additions and 1 deletion.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
param roleAssignment object
param builtInRoleNames object
param vmssName string

resource nested_rbac 'Microsoft.Compute/virtualMachineScaleSets/providers/roleAssignments@2018-09-01-preview' = [for principalId in roleAssignment.principalIds: {
name: '${vmssName}/Microsoft.Authorization/${guid(uniqueString('${vmssName}${principalId}${roleAssignment.roleDefinitionIdOrName}'))}'
properties: {
roleDefinitionId: (contains(builtInRoleNames, roleAssignment.roleDefinitionIdOrName) ? builtInRoleNames[roleAssignment.roleDefinitionIdOrName] : roleAssignment.roleDefinitionIdOrName)
principalId: principalId
}
dependsOn: []
}]
Loading

0 comments on commit bb0d259

Please sign in to comment.