Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
d9ae4f7
Usability Params for Set-EntraUserExtension
emmanuel-karanja Oct 18, 2024
afedf69
Added module splitter and psm1 builder
emmanuel-karanja Oct 21, 2024
0d63239
Added module splitter and psm1 builder
emmanuel-karanja Oct 21, 2024
a5d0d6a
added moduleMapper.json
emmanuel-karanja Oct 21, 2024
7cd7b75
added runner script and typedefs
emmanuel-karanja Oct 21, 2024
6410a6d
Added Comments
emmanuel-karanja Oct 21, 2024
8dc4aff
Added WriteModuleManifest
emmanuel-karanja Oct 21, 2024
cfee052
changed name to Create-EntraModule
emmanuel-karanja Oct 21, 2024
5ba92cc
Added CreateModuleHelp
emmanuel-karanja Oct 21, 2024
35ae9a9
fixed the help generation code
emmanuel-karanja Oct 21, 2024
7585d5b
Fixed the runner script
emmanuel-karanja Oct 21, 2024
c67a7e0
added dependency mapping
emmanuel-karanja Oct 21, 2024
f8fd7c1
Added dependency mapping.json
emmanuel-karanja Oct 21, 2024
a6a4d7a
Fixes
emmanuel-karanja Oct 21, 2024
91fb608
fixes
emmanuel-karanja Oct 21, 2024
7ce268f
fixes
emmanuel-karanja Oct 21, 2024
75a46cc
fixes to EntraModulebuilder
emmanuel-karanja Oct 21, 2024
7a4192b
fixes to EntraModuleBuilder
emmanuel-karanja Oct 21, 2024
37c3d88
formatting
emmanuel-karanja Oct 21, 2024
571da38
fixed manifest gen bug
emmanuel-karanja Oct 21, 2024
cee3976
fixed manifest gen bug
emmanuel-karanja Oct 21, 2024
db8e828
Created New-Build.md
emmanuel-karanja Oct 21, 2024
1d02ff9
added Doc Splitting code and Module Mapping creator
emmanuel-karanja Oct 21, 2024
c304675
updates
emmanuel-karanja Oct 21, 2024
7568d34
Debugged to add Get-EntraUnsupportedCommand and New-EntraCustomHeader…
emmanuel-karanja Oct 21, 2024
ad6275b
Debug to add export
emmanuel-karanja Oct 21, 2024
43b75b0
Debug to add export
emmanuel-karanja Oct 21, 2024
bfa1a5f
Refactored Create-ModuleMapping
emmanuel-karanja Oct 22, 2024
2b6c359
refactored logging code
emmanuel-karanja Oct 22, 2024
c74ffb4
refactored Split-Docs code
emmanuel-karanja Oct 22, 2024
291c717
Refactor
emmanuel-karanja Oct 22, 2024
fe37408
rename file
emmanuel-karanja Oct 22, 2024
3d16d69
minor changes
emmanuel-karanja Oct 23, 2024
b5b8540
minor changes
emmanuel-karanja Oct 23, 2024
3c05a72
Small changes to mapping generation and doc splitting
emmanuel-karanja Oct 23, 2024
f775b2a
Small changes to mapping generation and doc splitting
emmanuel-karanja Oct 23, 2024
641ddee
fixes
emmanuel-karanja Oct 23, 2024
23a9eef
Updated dependencyMapping.json
emmanuel-karanja Oct 23, 2024
01d3e12
Updated module map code
emmanuel-karanja Oct 23, 2024
b1de1ba
Added Meta-Module Generation Code
emmanuel-karanja Oct 23, 2024
17b83d8
Added Meta-Module Generation Code
emmanuel-karanja Oct 23, 2024
43a1cee
Added Meta-Module Generation Code
emmanuel-karanja Oct 24, 2024
dceb5d3
Fixes
emmanuel-karanja Oct 24, 2024
75ffa4d
fixed submodule loading code
emmanuel-karanja Oct 24, 2024
84a3820
fixed root module manifest gen code
emmanuel-karanja Oct 24, 2024
b40c751
fixed root module manifest gen code
emmanuel-karanja Oct 24, 2024
51ad3ac
fixed root module manifest gen code
emmanuel-karanja Oct 24, 2024
7c6abfc
fixed root module manifest gen code
emmanuel-karanja Oct 24, 2024
f911d16
fixed root module manifest gen code
emmanuel-karanja Oct 24, 2024
231ea41
fixed root module manifest gen code
emmanuel-karanja Oct 24, 2024
1641509
fixed module loading issue
emmanuel-karanja Oct 24, 2024
bce1c8d
fixed root module generation to give correct path
emmanuel-karanja Oct 24, 2024
78184c9
Fixed required module fetching
emmanuel-karanja Oct 24, 2024
52b460a
Added logging for testing
emmanuel-karanja Oct 24, 2024
dad0c51
Added logging for testing
emmanuel-karanja Oct 24, 2024
50fcee0
Added correct moduleMapping for Entra
emmanuel-karanja Oct 28, 2024
6c4a298
fix bug
emmanuel-karanja Oct 28, 2024
547fb99
fix bug
emmanuel-karanja Oct 28, 2024
f3f7d87
fix bug
emmanuel-karanja Oct 28, 2024
885e068
fix bug
emmanuel-karanja Oct 28, 2024
aa5dcbf
Split Files
emmanuel-karanja Oct 28, 2024
cef35ef
Split Files
emmanuel-karanja Oct 28, 2024
be2bf89
fix bug
emmanuel-karanja Oct 28, 2024
30713a6
New Split
emmanuel-karanja Oct 28, 2024
a678a9a
resplit docs
emmanuel-karanja Oct 28, 2024
5190f41
fixes to dependency mapping and added logic to skip the Migrations di…
emmanuel-karanja Oct 28, 2024
fb44982
update dependency maps
emmanuel-karanja Oct 28, 2024
9feed35
fixes
emmanuel-karanja Oct 29, 2024
0bd49e8
fixes
emmanuel-karanja Oct 29, 2024
1e66e59
migrate to moduleVNext
emmanuel-karanja Oct 29, 2024
d4ba57d
migrate to moduleVNext
emmanuel-karanja Oct 29, 2024
a94ef43
migrate to moduleVNext
emmanuel-karanja Oct 29, 2024
db3e691
fixes
emmanuel-karanja Oct 29, 2024
92b1e58
fixes
emmanuel-karanja Oct 29, 2024
4d61f6d
Update VNext-Build.md file
emmanuel-karanja Oct 29, 2024
d9c6123
Update VNext-Build.md file
emmanuel-karanja Oct 29, 2024
28c869f
Update VNext-Build.md file
emmanuel-karanja Oct 29, 2024
034524b
Update VNext-Build.md file
emmanuel-karanja Oct 29, 2024
009ed28
Update VNext-Build.md file
emmanuel-karanja Oct 29, 2024
c20e3df
Update VNext-Build.md file
emmanuel-karanja Oct 29, 2024
b67c380
Update RootModule Import for Tests
emmanuel-karanja Oct 29, 2024
c82e224
Update modularization paths (#1177)
KenitoInc Oct 29, 2024
a5c125f
Fix telemetry custom headers (#1179)
KenitoInc Oct 30, 2024
db1140a
Split Test files to sub-module directories (#1180)
emmanuel-karanja Nov 5, 2024
392e75c
Changes
emmanuel-karanja Nov 7, 2024
7e2855e
Changes
emmanuel-karanja Nov 7, 2024
a99b16a
Generate the Root Module .ps1 file (#1192)
emmanuel-karanja Nov 7, 2024
0613a00
resolve New-EntraBetaCustomHeaders
emmanuel-karanja Nov 7, 2024
4f2ef08
resolve New-EntraBetaCustomHeaders
emmanuel-karanja Nov 7, 2024
7b15a77
resolve New-EntraBetaCustomHeaders and updated splitting
emmanuel-karanja Nov 7, 2024
91b3f88
clean up
emmanuel-karanja Nov 7, 2024
a726d1a
clean up
emmanuel-karanja Nov 7, 2024
a070618
Directory Harmonization
emmanuel-karanja Nov 7, 2024
96bf00a
Directory Harmonization
emmanuel-karanja Nov 7, 2024
f9a5c65
Commented out call to create root psm1 file
emmanuel-karanja Nov 11, 2024
7c47a17
Inject RequiredModules section into Root Module Manifest (#1195)
emmanuel-karanja Nov 11, 2024
20c84d0
Commented out call to create root psm1 file (#1199)
emmanuel-karanja Nov 11, 2024
5dfb879
Enganga/remove root module psm1 file (#1200)
emmanuel-karanja Nov 11, 2024
36f8377
Tests Cleanup (#1209)
emmanuel-karanja Nov 14, 2024
f65f649
Add the Sub-Modules as RequiredModules in the Root Module Manifest (#…
emmanuel-karanja Nov 14, 2024
7ca186b
Merge branch 'modularize' of https://github.com/microsoftgraph/entra-…
emmanuel-karanja Nov 14, 2024
6f884ae
Groups changes
emmanuel-karanja Nov 14, 2024
037aa3a
Groups changes
emmanuel-karanja Nov 14, 2024
dbff765
Groups changes
emmanuel-karanja Nov 14, 2024
86073f3
entra-beta-audit changes (#1210)
emmanuel-karanja Nov 15, 2024
45989ee
Additional EntraBeta Tests Issues (#1211)
emmanuel-karanja Nov 15, 2024
f9b7aae
Removed additional entry for MsDirectoryObject
emmanuel-karanja Nov 15, 2024
f40839c
Removed additional entry for MsDirectoryObject and MsRoleMemberInfo (…
emmanuel-karanja Nov 15, 2024
8782410
Run modular tests on the pipeline (#1186)
KenitoInc Nov 18, 2024
0f1ec12
Credscan and PSScriptAnalyzer suppressions (#1220)
KenitoInc Nov 20, 2024
df9ea36
Kemunga/modularize folders restructure (#1222)
KenitoInc Nov 21, 2024
2b08a71
Rename module (#1223)
KenitoInc Nov 21, 2024
92f3b25
Docs updates for legacy (#1225)
emmanuel-karanja Nov 21, 2024
e5f49c0
Release pipeline - update module name (#1224)
KenitoInc Nov 21, 2024
c42b397
Resplit for Release (#1226)
emmanuel-karanja Nov 22, 2024
815c8c1
Version 0.20.0-preview (#1227)
KenitoInc Nov 22, 2024
e3d9eb1
Update docs help (#1228)
KenitoInc Nov 22, 2024
2196a33
Enganga/docfx issue (#1230)
emmanuel-karanja Nov 27, 2024
dad2f12
Mapped Get-EntraBetaObjectByObjectId (#1250)
emmanuel-karanja Dec 10, 2024
373b378
Custom Headers Update automation (#1234)
emmanuel-karanja Dec 10, 2024
f7ad100
Split Automation Fixes (#1236)
emmanuel-karanja Dec 11, 2024
197b3de
Fixing online version entries (#1249)
SteveMutungi254 Dec 11, 2024
4e4d44d
Modularize minor fixes (#1238)
SamErde Dec 19, 2024
4b3c973
Skip Adding Types If they exist (#1233)
emmanuel-karanja Jan 7, 2025
7dd0c15
Update Module Description to reflect new naming (#1235)
emmanuel-karanja Jan 8, 2025
42c266c
Bug fix - Get-EntraDirectoryObjectOnPremisesProvisioningError (#1262)
SteveMutungi254 Jan 9, 2025
8d507d2
Update dependency version to 2.25 (#1255)
emmanuel-karanja Jan 9, 2025
1091083
Suppress source files (#1252)
KenitoInc Jan 9, 2025
f688769
Run tests locally (#1237)
KenitoInc Jan 9, 2025
958bd72
Version bump to 0.21.0 (#1264)
SteveMutungi254 Jan 9, 2025
518d430
Array list fix for RequiredResourceAccess (#1282)
SteveMutungi254 Jan 13, 2025
4cb8d41
[Modularize] Enhancement: Get-EntraContext - Add Entra PowerShell ver…
SteveMutungi254 Jan 13, 2025
d174153
[Modularize] Hotfix - Update-EntraBetaUserAuthenticationRequirement (…
SteveMutungi254 Jan 13, 2025
c536d40
[Modularize] Enhancement - Connect-Entra as a proxy function (#1272)
SteveMutungi254 Jan 17, 2025
9db593d
[Modularize] Adding limit and select aliases - GA commands (#1286)
SteveMutungi254 Jan 20, 2025
23ea550
Adding aliases - Select and Limit for beta commands (#1285)
SteveMutungi254 Jan 20, 2025
ebaffd5
[Modularize] Example quality bump batch 4 (#1288)
SteveMutungi254 Jan 20, 2025
e4311cb
[Modularize] - Get-EntraUserGroup (#1268)
SteveMutungi254 Jan 20, 2025
0f9ba12
Adding Get User Admin Units (code, tests, docs) (#1277)
SteveMutungi254 Jan 20, 2025
4d20d8c
[Modularize] Set-EntraAdministrativeUnit improvements (adding additio…
SteveMutungi254 Jan 20, 2025
5d9ef92
[Modularize] Get-EntraUserRole (#1274)
SteveMutungi254 Jan 20, 2025
77bb271
Added -Property example to docs for Get-EntraGroup (#1291)
emmanuel-karanja Jan 21, 2025
2e3ab89
[Modularize] Get-EntraDeletedServicePrincipal (#1281)
SteveMutungi254 Jan 21, 2025
be864ca
[Modularize] Get-EntraDeletedUser (#1280)
SteveMutungi254 Jan 21, 2025
568f71c
[Modularize] Get-EntraDeletedAdministrativeUnit (#1279)
SteveMutungi254 Jan 21, 2025
0d27f32
[Modularize] Get-EntraDeletedDevice (#1278)
SteveMutungi254 Jan 21, 2025
fd6f869
Hotfix: more detailed example
emmanuel-karanja Jan 21, 2025
606ed66
[Modularize] Get-EntraUserInactiveSignIn (#1271)
SteveMutungi254 Jan 21, 2025
284e833
Enganga/add property example-hotfix (#1292)
emmanuel-karanja Jan 21, 2025
db5fd76
Piping to Select-Object (#1294)
SteveMutungi254 Jan 21, 2025
e4a4ac5
[Modularize] Enhancement - New-EntraServicePrincipalPasswordCredentia…
SteveMutungi254 Jan 21, 2025
edc08e4
Version bump to v0.22.0 (#1297)
KenitoInc Jan 21, 2025
a4b62ff
Fix Get-EntraContext (#1301)
KenitoInc Jan 23, 2025
09940e1
Enganga/fix aliasing (#1304)
emmanuel-karanja Jan 27, 2025
0a5922f
Enganga/add enable entra docs (#1314)
emmanuel-karanja Jan 27, 2025
92cabdb
[Modularize] Example improvements - Batch 6 (#1311)
SteveMutungi254 Jan 27, 2025
d35d1ae
[Modularize] Enrich examples to boost example quality KPI - Batch 2 (…
SteveMutungi254 Jan 27, 2025
07d7f03
Custom security attributes docs update (#1317)
SteveMutungi254 Jan 28, 2025
34f6e98
Add devices docs improvements (#1313)
SteveMutungi254 Jan 28, 2025
a6c5f3f
Domain docs improvement (#1312)
SteveMutungi254 Jan 28, 2025
8a5018f
fix Get-EntraDirectoryObjectOnPremisesProvisioningError (#1305)
KenitoInc Jan 28, 2025
8929293
[Modularize] Improvements to use ExecutionContext automatic variables…
SteveMutungi254 Jan 28, 2025
396abde
[Modularize] Example improvements - SignIns category (#1310)
SteveMutungi254 Jan 28, 2025
0f1c33d
Enganga/fix auth formatting (#1316)
emmanuel-karanja Jan 28, 2025
72a0868
GA Initial Release v1.0.0 (#1321)
emmanuel-karanja Jan 28, 2025
5154a3e
Hot fix v1.0.1 - resolve Connect-Entra in PS 5.x (#1323)
KenitoInc Jan 28, 2025
ae16169
Fix UPN when returning provisioning errors (#1327)
KenitoInc Jan 30, 2025
d2e070b
[Modularize] Usability - Replacing ObjectId with specific <resource>I…
SteveMutungi254 Jan 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
14 changes: 11 additions & 3 deletions .azure-pipelines/1es-entra-powershell-ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ extends:
name: MSSecurity-1ES-Build-Agents-Pool
image: MSSecurity-1ES-Windows-2022
os: windows
credscan:
suppressionsFile: $(Build.SourcesDirectory)\.config\CredScanSuppressions.json
outputFormat: pre
debugMode: false
batchSize: 16
psscriptanalyzer:
break: false
enabled: true
stages:
- stage: build
jobs:
Expand All @@ -42,15 +50,15 @@ extends:
- template: .azure-pipelines/common-templates/install-tools.yml@self
- template: .azure-pipelines/common-templates/security-pre-checks.yml@self

- template: .azure-pipelines/generation-templates/generate_adapter-migrate-1es.yml@self
- template: .azure-pipelines/generation-templates/generate_adapter-1es.yml@self
parameters:
Sign: ${{ parameters.Sign }}

- ${{ if and(eq(parameters.Pack, true), eq(parameters.Sign, true)) }}:
- template: .azure-pipelines/common-templates/esrp/codesign-nuget-migrate.yml@self
parameters:
FolderPath: "$(Build.ArtifactStagingDirectory)"
Pattern: "Microsoft.Graph.Entra.*.nupkg"
Pattern: "Microsoft.Entra.*.nupkg"
- task: 1ES.PublishBuildArtifacts@1
displayName: Publish Module Artifacts
inputs:
Expand All @@ -60,7 +68,7 @@ extends:
displayName: Publish NuGet to preview feed
inputs:
useDotNetTask: false
packagesToPush: $(Build.ArtifactStagingDirectory)/**/Microsoft.Graph.Entra.*.nupkg
packagesToPush: $(Build.ArtifactStagingDirectory)/**/Microsoft.Entra.*.nupkg
packageParentPath: '$(Build.ArtifactStagingDirectory)'
publishVstsFeed: $(PROJECT_NAME)/$(PREVIEW_FEED_NAME)
nuGetFeedType: internal
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/1es-entra-powershell-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ extends:
displayName: Publish Nuget package
inputs:
useDotNetTask: false
packagesToPush: '$(System.ArtifactsDirectory)/drop/Microsoft.Graph.Entra*.nupkg'
packagesToPush: '$(System.ArtifactsDirectory)/drop/Microsoft.Entra*.nupkg'
packageParentPath: '$(System.ArtifactsDirectory)'
nuGetFeedType: external
publishFeedCredentials: EntraPowerShell_PSGallery
4 changes: 2 additions & 2 deletions .azure-pipelines/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- template: ./common-templates/esrp/codesign-nuget.yml
parameters:
FolderPath: "$(Build.ArtifactStagingDirectory)"
Pattern: "Microsoft.Graph.Entra.*.nupkg"
Pattern: "Microsoft.Entra.*.nupkg"

- task: PublishBuildArtifacts@1
displayName: Publish Module Artifacts
Expand All @@ -54,7 +54,7 @@ jobs:
displayName: Publish NuGet to preview feed
inputs:
command: push
packagesToPush: $(Build.ArtifactStagingDirectory)/**/Microsoft.Graph.Entra.*.nupkg
packagesToPush: $(Build.ArtifactStagingDirectory)/**/Microsoft.Entra.*.nupkg
publishVstsFeed: $(PROJECT_NAME)/$(PREVIEW_FEED_NAME)
allowPackageConflicts: true

Expand Down
4 changes: 2 additions & 2 deletions .azure-pipelines/entra-powershell-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ stages:
inputs:
targetType: inline
script: |
Publish-Module -NuGetApiKey $env:NuGetApiKey -Path $(Build.ArtifactStagingDirectory)/modules/Microsoft.Graph.Entra -Verbose
Publish-Module -NuGetApiKey $env:NuGetApiKey -Path $(Build.ArtifactStagingDirectory)/modules/Microsoft.Graph.Entra.Beta -Verbose
Publish-Module -NuGetApiKey $env:NuGetApiKey -Path $(Build.ArtifactStagingDirectory)/modules/Microsoft.Entra -Verbose
Publish-Module -NuGetApiKey $env:NuGetApiKey -Path $(Build.ArtifactStagingDirectory)/modules/Microsoft.Entra.Beta -Verbose
pwsh: false
dependsOn: Release_Approval
247 changes: 247 additions & 0 deletions .azure-pipelines/generation-templates/generate_adapter-1es.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# https://aka.ms/yaml

parameters:
- name: Sign
type: boolean
default: false
- name: Integration
type: boolean
default: false

steps:
- task: powershell@2
displayName: 'Show current PowerShell version information'
inputs:
targetType: inline
script: 'echo $PSVersionTable'
pwsh: true
- task: powershell@2
displayName: 'Set maximum function count'
inputs:
targetType: inline
script: '$MaximumFunctionCount=32768'
pwsh: true
- task: powershell@2
displayName: 'Install Dependencies Entra'
inputs:
targetType: inline
script: |
./build/Install-Dependencies.ps1 -ModuleName Entra -Verbose
pwsh: true
- task: powershell@2
displayName: 'Install PlatyPS'
inputs:
targetType: inline
script: Install-Module PlatyPS -scope currentuser -Force
pwsh: true
# - task: powershell@2
# displayName: 'Create Module Help Files Entra'
# inputs:
# targetType: inline
# script: |
# Import-Module PlatyPS
# . ./build/common-functions.ps1
# Create-ModuleHelp -Module Entra
# pwsh: true
- task: powershell@2
displayName: '[Modularization ] Build Entra'
inputs:
targetType: inline
script: |
./build/Create-EntraModule.ps1 -Module Entra -Verbose
./build/Create-EntraModule.ps1 -Module Entra -Root -Verbose
pwsh: true
- ${{ if eq(parameters.Sign, true) }}:
- template: ../common-templates/esrp/codesign-migrate.yml
parameters:
FolderPath: "bin"
Pattern: "*.psm1, *.psd1, *.format.ps1xml, *.ps1"
- task: PowerShell@2
displayName: "Validate Authenticode Signature"
inputs:
targetType: "inline"
pwsh: true
script: ./build/ValidateAuthenticodeSignature.ps1
- task: powershell@2
displayName: 'Create Module Files Entra'
inputs:
targetType: inline
script: |
. ./build/common-functions.ps1
Create-ModuleFolder
pwsh: true
- task: 1ES.PublishBuildArtifacts@1
displayName: 'Publish Module Files EntraBeta'
inputs:
PathtoPublish: 'bin'
ArtifactName: 'Module Files'
- task: powershell@2
displayName: 'Register Local Gallery'
inputs:
targetType: inline
script: |
. ./build/common-functions.ps1
Register-LocalGallery -Path $(Build.ArtifactStagingDirectory)
pwsh: true
- task: powershell@2
displayName: 'Publish to Local Gallery Entra'
inputs:
targetType: inline
script: ./build/Publish-LocalCompatModule.ps1 -Install
pwsh: true
- task: 1ES.PublishBuildArtifacts@1
displayName: 'Publish Module Nuget File Entra'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'Module Nuget'
- task: powershell@2
displayName: 'Remove Build Folders'
inputs:
targetType: inline
script: |
. ./build/common-functions.ps1
Remove-BuildDirectories
pwsh: true
- task: powershell@2
displayName: 'Install Dependencies EntraBeta'
inputs:
targetType: inline
script: |
./build/Install-Dependencies.ps1 -ModuleName EntraBeta -Verbose
pwsh: true
# - task: powershell@2
# displayName: 'Create Module Help Files EntraBeta'
# inputs:
# targetType: inline
# script: |
# Import-Module PlatyPS
# . ./build/common-functions.ps1
# Create-ModuleHelp -Module EntraBeta
# pwsh: true
- task: powershell@2
displayName: '[Modularization ] Build EntraBeta'
inputs:
targetType: inline
script: |
./build/Create-EntraModule.ps1 -Module EntraBeta -Verbose
./build/Create-EntraModule.ps1 -Module EntraBeta -Root -Verbose
pwsh: true
- ${{ if eq(parameters.Sign, true) }}:
- template: ../common-templates/esrp/codesign-migrate.yml
parameters:
FolderPath: "bin"
Pattern: "*.psm1, *.psd1, *.format.ps1xml, *.ps1"
- task: PowerShell@2
displayName: "Validate Authenticode Signature"
inputs:
targetType: "inline"
pwsh: true
script: ./build/ValidateAuthenticodeSignature.ps1
- task: powershell@2
displayName: 'Create Module Files EntraBeta'
inputs:
targetType: inline
script: |
. ./build/common-functions.ps1
Create-ModuleFolder
pwsh: true
- task: 1ES.PublishBuildArtifacts@1
displayName: 'Publish Module Files EntraBeta'
inputs:
PathtoPublish: 'bin'
ArtifactName: 'Module Files'
- task: powershell@2
displayName: 'Publish to Local Gallery EntraBeta'
inputs:
targetType: inline
script: ./build/Publish-LocalCompatModule.ps1 -Install
pwsh: true
- task: 1ES.PublishBuildArtifacts@1
displayName: 'Publish Module Nuget File EntraBeta'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'Module Nuget'
- task: powershell@2
displayName: 'Remove Build Folders'
inputs:
targetType: inline
script: |
. ./build/common-functions.ps1
Remove-BuildDirectories
pwsh: true
- task: powershell@2
displayName: 'Install Pester'
inputs:
targetType: inline
script: Install-Module Pester -scope currentuser -SkipPublisherCheck -Force
pwsh: true
- task: powershell@2
displayName: 'Run tests Entra'
inputs:
targetType: inline
pwsh: true
script: |
cd test/Entra
Invoke-Pester -OutputFile "./test/results/pester-test-results-ad.xml" -OutputFormat NUnitXml
- task: PublishTestResults@2
inputs:
testResultsFormat: NUnit
testResultsFiles: "./test/results/pester-test-results-ad.xml"
failTaskOnFailedTests: true
- task: powershell@2
displayName: 'Run tests Entra Beta'
inputs:
targetType: inline
pwsh: true
script: |
cd test/EntraBeta
Invoke-Pester -OutputFile "./test/results/pester-test-results-ad.xml" -OutputFormat NUnitXml
- task: PublishTestResults@2
inputs:
testResultsFormat: NUnit
testResultsFiles: "./test/results/pester-test-results-ad.xml"
failTaskOnFailedTests: true
- ${{ if eq(parameters.Integration, true) }}:
- task: powershell@2
displayName: 'Run Entra integration tests'
inputs:
targetType: inline
pwsh: true
script: |
cd test/module/Integration/Entra
Invoke-Pester -OutputFile "./test/results/pester-test-results-preview.xml" -OutputFormat NUnitXml
- task: PublishTestResults@2
inputs:
testResultsFormat: NUnit
testResultsFiles: "./test/results/pester-test-results-preview.xml"
failTaskOnFailedTests: true
- task: powershell@2
displayName: 'Run EntraBeta integration tests'
inputs:
targetType: inline
pwsh: true
script: |
cd test/module/Integration/EntraBeta
Invoke-Pester -OutputFile "./test/results/pester-test-results-preview.xml" -OutputFormat NUnitXml
- task: PublishTestResults@2
inputs:
testResultsFormat: NUnit
testResultsFiles: "./test/results/pester-test-results-preview.xml"
failTaskOnFailedTests: true
- task: powershell@2
displayName: 'Remove Local Gallery'
inputs:
targetType: inline
script: |
. ./build/common-functions.ps1
Unregister-LocalGallery
pwsh: true
- task: PSScriptAnalyzer@1
displayName: 'Run PSScriptAnalyzer'
inputs:
Path: '$(Build.SourcesDirectory)'
Settings: required
IgnorePattern: .gdn
Recurse: true
Loading
Loading