From 356ef8c9ee7219626bd1e95d2b8245bc9b9af7ac Mon Sep 17 00:00:00 2001 From: Yorick Kuijs Date: Fri, 4 Oct 2024 13:53:46 +0200 Subject: [PATCH] Added support for new workloads --- CHANGELOG.md | 1 + source/Public/New-CompositeResourceModule.ps1 | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 620a2bf..e2719f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added the SettingDefinitionId parameter to the mergeable parameters, so that UniqueId is not required in those instances. +- Added support for the new Azure, Azure DevOps and Defender workloads ## [0.1.19] - 2024-09-18 diff --git a/source/Public/New-CompositeResourceModule.ps1 b/source/Public/New-CompositeResourceModule.ps1 index 616bda0..1eef625 100644 --- a/source/Public/New-CompositeResourceModule.ps1 +++ b/source/Public/New-CompositeResourceModule.ps1 @@ -149,6 +149,21 @@ function New-CompositeResourceModule $resourceWorkload = 'AzureAD' $customResourceName = $shortResourceName -replace "^AAD" } + { $_.StartsWith('ADO') } + { + $resourceWorkload = 'AzureDevOps' + $customResourceName = $shortResourceName -replace "^ADO" + } + { $_.StartsWith('Azure') } + { + $resourceWorkload = 'Azure' + $customResourceName = $shortResourceName -replace "^$resourceWorkload" + } + { $_.StartsWith('Defender') } + { + $resourceWorkload = 'Defender' + $customResourceName = $shortResourceName -replace "^$resourceWorkload" + } { $_.StartsWith('EXO') } { $resourceWorkload = 'Exchange'