-
Notifications
You must be signed in to change notification settings - Fork 437
[Modules] Create solutions module and cross reference in workspace and automation account #1511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
d928be7
solutions module
eriqua 1c96b31
rke settings
eriqua 40289a3
workflow
eriqua 8976890
skip validation
eriqua df46d20
law and automation account
eriqua f4eb712
readme
eriqua 964358b
law and automation account skip pester
eriqua d60d13d
ado
eriqua fcb0242
Merge branch 'main' of https://github.com/Azure/ResourceModules
eriqua 3073190
enable pester
eriqua b41c970
fix static val location
eriqua d900fb3
carml tokens
eriqua 9c198ba
fix input
eriqua 555b9ea
rke
eriqua 27651f4
carml
eriqua 07303eb
disabling telemetry
eriqua 20760e1
gallery param
eriqua 17b13cb
telemetry
eriqua 6647423
readme note
eriqua 63ba035
merge main
eriqua b2f5b57
enableReferencedModulesTelemetry
eriqua d80e5fb
ado pipeline trigger
eriqua 097577e
ado pipeline min par
eriqua e4b85e3
third party
eriqua cf2a042
third party param
eriqua 676fe52
disable test
eriqua 0dd6f95
test third party
eriqua aed9b34
Merge pull request #3 from eriqua/users/erikag/solutions
eriqua d134551
workspace readme
eriqua 697d3d1
Merge branch 'main' of https://github.com/eriqua/ResourceModules
eriqua bec0582
carml
eriqua c2526cb
rke
eriqua fe38662
acr
eriqua 262d297
Merge pull request #4 from eriqua/use3rs/erikag/sol
eriqua 2ba6715
readme
eriqua 55dd628
carml
eriqua File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
.azuredevops/modulePipelines/ms.operationsmanagement.solutions.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| name: 'OperationsManagement - Solutions' | ||
|
|
||
| parameters: | ||
| - name: removeDeployment | ||
| displayName: Remove deployed module | ||
| type: boolean | ||
| default: true | ||
| - name: prerelease | ||
| displayName: Publish prerelease module | ||
| type: boolean | ||
| default: false | ||
|
|
||
| pr: none | ||
|
|
||
| trigger: | ||
| batch: true | ||
| branches: | ||
| include: | ||
| - main | ||
| paths: | ||
| include: | ||
| - '/.azuredevops/modulePipelines/ms.operationsmanagement.solutions.yml' | ||
| - '/.azuredevops/pipelineTemplates/*.yml' | ||
| - '/arm/Microsoft.OperationsManagement/solutions/*' | ||
| - '/arm/.global/global.module.tests.ps1' | ||
| exclude: | ||
| - '/**/*.md' | ||
|
|
||
| variables: | ||
| - template: '../../global.variables.yml' | ||
| - group: 'PLATFORM_VARIABLES' | ||
| - name: modulePath | ||
| value: '/arm/Microsoft.OperationsManagement/solutions' | ||
|
|
||
| stages: | ||
| - stage: Validation | ||
| displayName: Static validation | ||
| jobs: | ||
| - template: /.azuredevops/pipelineTemplates/jobs.validateModulePester.yml | ||
|
|
||
| - stage: Deployment | ||
| displayName: Deployment validation | ||
| jobs: | ||
| - template: /.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml | ||
| parameters: | ||
| removeDeployment: '${{ parameters.removeDeployment }}' | ||
| deploymentBlocks: | ||
| - path: $(modulePath)/.parameters/min.parameters.json | ||
| - path: $(modulePath)/.parameters/nonms.parameters.json | ||
| - path: $(modulePath)/.parameters/ms.parameters.json | ||
|
|
||
| - stage: Publishing | ||
| displayName: Publishing | ||
| condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq('${{ parameters.prerelease }}', 'true'))) | ||
| jobs: | ||
| - template: /.azuredevops/pipelineTemplates/jobs.publishModule.yml |
142 changes: 142 additions & 0 deletions
142
.github/workflows/ms.operationsmanagement.solutions.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,142 @@ | ||
| name: 'OperationsManagement: Solutions' | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| removeDeployment: | ||
| type: boolean | ||
| description: 'Remove deployed module' | ||
| required: false | ||
| default: true | ||
| prerelease: | ||
| type: boolean | ||
| description: 'Publish prerelease module' | ||
| required: false | ||
| default: false | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - '.github/actions/templates/**' | ||
| - '.github/workflows/ms.operationsmanagement.solutions.yml' | ||
| - 'arm/Microsoft.OperationsManagement/solutions/**' | ||
| - 'arm/.global/global.module.tests.ps1' | ||
| - '!*/**/readme.md' | ||
| - 'utilities/pipelines/**' | ||
| - '!utilities/pipelines/dependencies/**' | ||
|
|
||
| env: | ||
| variablesPath: 'global.variables.yml' | ||
| modulePath: 'arm/Microsoft.OperationsManagement/solutions' | ||
| workflowPath: '.github/workflows/ms.operationsmanagement.solutions.yml' | ||
| AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} | ||
| ARM_SUBSCRIPTION_ID: '${{ secrets.ARM_SUBSCRIPTION_ID }}' | ||
| ARM_MGMTGROUP_ID: '${{ secrets.ARM_MGMTGROUP_ID }}' | ||
| ARM_TENANT_ID: '${{ secrets.ARM_TENANT_ID }}' | ||
| DEPLOYMENT_SP_ID: '${{ secrets.DEPLOYMENT_SP_ID }}' | ||
|
|
||
| jobs: | ||
| ########################### | ||
| # Initialize pipeline # | ||
| ########################### | ||
| job_initialize_pipeline: | ||
| runs-on: ubuntu-20.04 | ||
| name: 'Initialize pipeline' | ||
| steps: | ||
| - name: 'Checkout' | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: 'Set input parameters to output variables' | ||
| id: get-workflow-param | ||
| uses: ./.github/actions/templates/getWorkflowInput | ||
| with: | ||
| workflowPath: '${{ env.workflowPath}}' | ||
| - name: 'Get parameter file paths' | ||
| id: get-parameter-file-paths | ||
| uses: ./.github/actions/templates/getParameterFiles | ||
| with: | ||
| modulePath: '${{ env.modulePath }}' | ||
| outputs: | ||
| removeDeployment: ${{ steps.get-workflow-param.outputs.removeDeployment }} | ||
| parameterFilePaths: ${{ steps.get-parameter-file-paths.outputs.parameterFilePaths }} | ||
|
|
||
| ######################### | ||
| # Static validation # | ||
| ######################### | ||
| job_module_pester_validation: | ||
| runs-on: ubuntu-20.04 | ||
| name: 'Static validation' | ||
| steps: | ||
| - name: 'Checkout' | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: 'Run tests' | ||
| uses: ./.github/actions/templates/validateModulePester | ||
| with: | ||
| modulePath: '${{ env.modulePath }}' | ||
|
|
||
| ############################# | ||
| # Deployment validation # | ||
| ############################# | ||
| job_module_deploy_validation: | ||
| runs-on: ubuntu-20.04 | ||
| name: 'Deployment validation' | ||
| needs: | ||
| - job_initialize_pipeline | ||
| - job_module_pester_validation | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| parameterFilePaths: ${{ fromJSON(needs.job_initialize_pipeline.outputs.parameterFilePaths) }} | ||
| steps: | ||
| - name: 'Checkout' | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Set environment variables | ||
| uses: ./.github/actions/templates/setEnvironmentVariables | ||
| with: | ||
| variablesPath: ${{ env.variablesPath }} | ||
| - name: 'Using parameter file [${{ matrix.parameterFilePaths }}]' | ||
| uses: ./.github/actions/templates/validateModuleDeployment | ||
| with: | ||
| templateFilePath: '${{ env.modulePath }}/deploy.bicep' | ||
| parameterFilePath: '${{ env.modulePath }}/${{ matrix.parameterFilePaths }}' | ||
| location: '${{ env.location }}' | ||
| resourceGroupName: '${{ env.resourceGroupName }}' | ||
| subscriptionId: '${{ secrets.ARM_SUBSCRIPTION_ID }}' | ||
| managementGroupId: '${{ secrets.ARM_MGMTGROUP_ID }}' | ||
| removeDeployment: '${{ needs.job_initialize_pipeline.outputs.removeDeployment }}' | ||
|
|
||
| ################## | ||
| # Publishing # | ||
| ################## | ||
| job_publish_module: | ||
| name: 'Publishing' | ||
| if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || github.event.inputs.prerelease == 'true' | ||
| runs-on: ubuntu-20.04 | ||
| needs: | ||
| - job_module_deploy_validation | ||
| steps: | ||
| - name: 'Checkout' | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Set environment variables | ||
| uses: ./.github/actions/templates/setEnvironmentVariables | ||
| with: | ||
| variablesPath: ${{ env.variablesPath }} | ||
| - name: 'Publishing' | ||
| uses: ./.github/actions/templates/publishModule | ||
| with: | ||
| templateFilePath: '${{ env.modulePath }}/deploy.bicep' | ||
| templateSpecsRGName: '${{ env.templateSpecsRGName }}' | ||
| templateSpecsRGLocation: '${{ env.templateSpecsRGLocation }}' | ||
| templateSpecsDescription: '${{ env.templateSpecsDescription }}' | ||
| templateSpecsDoPublish: '${{ env.templateSpecsDoPublish }}' | ||
| bicepRegistryName: '${{ env.bicepRegistryName }}' | ||
| bicepRegistryRGName: '${{ env.bicepRegistryRGName }}' | ||
| bicepRegistryRgLocation: '${{ env.bicepRegistryRgLocation }}' | ||
| bicepRegistryDoPublish: '${{ env.bicepRegistryDoPublish }}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 0 additions & 43 deletions
43
arm/Microsoft.Automation/automationAccounts/.bicep/nested_solution.bicep
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
arm/Microsoft.OperationalInsights/workspaces/.bicep/nested_solutions.bicep
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.