Skip to content

Commit 980929d

Browse files
authored
Merge pull request #3033 from microsoftgraph/merge-to-main-20-11-2024
Merge changes latest updates to main
2 parents c567797 + 42ef8cb commit 980929d

File tree

176 files changed

+196764
-195303
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+196764
-195303
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 136 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -2,86 +2,161 @@
22
# Licensed under the MIT License.
33
name: $(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
44
parameters:
5-
- name: BuildAgent
6-
default: 1es-windows-ps-compute
7-
displayName: Build Agent
8-
- name: Test
9-
type: boolean
10-
default: true
11-
- name: Pack
12-
type: boolean
13-
default: true
14-
- name: Sign
15-
type: boolean
16-
default: true
5+
- name: BuildAgent
6+
default: 1es-windows-ps-compute-m
7+
displayName: Build Agent
8+
- name: Test
9+
type: boolean
10+
default: true
11+
- name: Pack
12+
type: boolean
13+
default: true
14+
- name: Sign
15+
type: boolean
16+
default: true
17+
- name: InternalFeed
18+
type: string
19+
default: '0985d294-5762-4bc2-a565-161ef349ca3e/PowerShell_V2_Build'
20+
displayName: Internal NuGet Feed
21+
values:
22+
- '0985d294-5762-4bc2-a565-161ef349ca3e/PowerShell_v2'
23+
- 'ATPopFeed'
24+
- '0985d294-5762-4bc2-a565-161ef349ca3e/PowerShell_V2_Build'
1725

1826
variables:
1927
BuildAgent: ${{ parameters.BuildAgent }}
2028
GitUserEmail: "[email protected]"
2129
GitUserName: "Microsoft Graph DevX Tooling"
2230

23-
pool: $(BuildAgent)
24-
2531
trigger:
2632
branches:
2733
include:
28-
- main
29-
- dev
34+
- main
35+
- dev
3036
pr:
3137
branches:
3238
include:
33-
- main
34-
- dev
35-
36-
jobs:
37-
- job: MsGraphPsSdkCiBuild
38-
displayName: Microsoft Graph PowerShell SDK CI Build
39-
timeoutInMinutes: 840
40-
steps:
41-
- script: |
42-
git submodule update --init --recursive
43-
- template: ./common-templates/install-tools.yml
44-
- template: ./common-templates/security-pre-checks.yml
45-
46-
- template: ./generation-templates/authentication-module.yml
47-
parameters:
48-
Test: ${{ parameters.Test }}
49-
Pack: ${{ parameters.Pack }}
50-
Sign: ${{ parameters.Sign }}
39+
- main
40+
- dev
41+
resources:
42+
repositories:
43+
- repository: 1ESPipelineTemplates
44+
type: git
45+
name: 1ESPipelineTemplates/1ESPipelineTemplates
46+
ref: refs/tags/release
47+
extends:
48+
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
49+
parameters:
50+
pool: $(BuildAgent)
51+
sdl:
52+
binskim:
53+
enabled: false
54+
justificationForDisabling: "Binskim keeps on crushing and failing the weekly build pipeline. Disabling it for now because we are unable to publish the artifacts to internal feeds."
55+
credscan:
56+
suppressionsFile: $(Build.SourcesDirectory)/.azure-pipelines/config/credscan/credscan-suppressions.json
57+
policheck:
58+
exclusionFile: $(Build.SourcesDirectory)/.azure-pipelines/config/policheck/policheck-exclusions.xml
59+
customBuildTags:
60+
- ES365AIMigrationTooling
61+
stages:
62+
- stage: stage
63+
jobs:
64+
- job: MsGraphPsSdkCiBuild
65+
displayName: Microsoft Graph PowerShell SDK CI Build
66+
timeoutInMinutes: 840
67+
templateContext:
68+
outputs:
69+
- ${{ if and(eq(parameters.Pack, true), eq(parameters.Sign, true)) }}:
70+
- output: pipelineArtifact
71+
displayName: 'Publish Module Artifacts'
72+
targetPath: '$(Build.ArtifactStagingDirectory)'
73+
artifactName: 'drop'
74+
publishLocation: 'Container'
75+
steps:
76+
- script: |
77+
git submodule update --init --recursive
78+
- template: .azure-pipelines/common-templates/install-tools.yml@self
79+
- template: .azure-pipelines/common-templates/security-pre-checks.yml@self
80+
81+
- template: .azure-pipelines/generation-templates/authentication-module.yml@self
82+
parameters:
83+
Test: ${{ parameters.Test }}
84+
Pack: ${{ parameters.Pack }}
85+
Sign: ${{ parameters.Sign }}
5186

52-
- template: ./generation-templates/workload-modules.yml
53-
parameters:
54-
Test: ${{ parameters.Test }}
55-
Pack: ${{ parameters.Pack }}
56-
Sign: ${{ parameters.Sign }}
87+
- template: .azure-pipelines/generation-templates/workload-modules.yml@self
88+
parameters:
89+
Test: ${{ parameters.Test }}
90+
Pack: ${{ parameters.Pack }}
91+
Sign: ${{ parameters.Sign }}
5792

58-
- template: ./generation-templates/meta-module.yml
59-
parameters:
60-
Test: ${{ parameters.Test }}
61-
Pack: ${{ parameters.Pack }}
62-
Sign: ${{ parameters.Sign }}
93+
- template: .azure-pipelines/generation-templates/meta-module.yml@self
94+
parameters:
95+
Test: ${{ parameters.Test }}
96+
Pack: ${{ parameters.Pack }}
97+
Sign: ${{ parameters.Sign }}
6398

64-
- template: ./common-templates/guardian-analyzer.yml
99+
- template: .azure-pipelines/common-templates/guardian-analyzer.yml@self
65100

66-
- ${{ if and(eq(parameters.Pack, true), eq(parameters.Sign, true)) }}:
67-
- template: ./common-templates/esrp/codesign-nuget.yml
101+
- ${{ if and(eq(parameters.Pack, true), eq(parameters.Sign, true)) }}:
102+
- template: .azure-pipelines/common-templates/esrp/codesign-nuget.yml@self
68103
parameters:
69104
FolderPath: "$(Build.ArtifactStagingDirectory)"
70105
Pattern: "Microsoft.Graph*.nupkg"
71106

72-
- task: PublishBuildArtifacts@1
73-
displayName: Publish Module Artifacts
74-
inputs:
75-
PathtoPublish: "$(Build.ArtifactStagingDirectory)"
76-
ArtifactName: "drop"
77-
publishLocation: "Container"
107+
- template: .azure-pipelines/common-templates/security-post-checks.yml@self
108+
- stage: 'Deploy_to_Internal_Feed'
109+
dependsOn: stage
110+
jobs:
111+
- deployment: 'DeployToInternalFeed'
112+
displayName: 'Deploy to Internal Feed'
113+
environment: 'PowerShellInternalFeed'
114+
strategy:
115+
runOnce:
116+
deploy:
117+
steps:
118+
- checkout: self
119+
- task: DownloadPipelineArtifact@2
120+
displayName: 'Download Build Artifacts'
121+
inputs:
122+
buildType: 'current'
123+
targetPath: '$(System.DefaultWorkingDirectory)'
124+
- task: 1ES.PublishNuget@1
125+
displayName: 'Publish NuGet to feed'
126+
inputs:
127+
useDotNetTask: false
128+
packageParentPath: '$(System.DefaultWorkingDirectory)'
129+
packagesToPush: '$(System.DefaultWorkingDirectory)/**/drop/**/*.nupkg'
130+
publishVstsFeed: ${{ parameters.InternalFeed }}
131+
nuGetFeedType: internal
132+
allowPackageConflicts: true
133+
- stage: 'Deploy_to_PsGallery'
134+
dependsOn: stage
135+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main')) # Only deploy to PSGallery on main branch
136+
jobs:
137+
- deployment: 'DeployToPowerShellGallery'
138+
displayName: 'Deploy to PowerShell Gallery'
139+
environment: 'PowerShellGallery'
140+
strategy:
141+
runOnce:
142+
deploy:
143+
steps:
144+
- checkout: self
145+
- task: DownloadPipelineArtifact@2
146+
displayName: 'Download Build Artifacts'
147+
inputs:
148+
buildType: 'current'
149+
targetPath: '$(System.DefaultWorkingDirectory)'
150+
- task: 1ES.PublishNuget@1
151+
displayName: 'Publish NuGet to feed'
152+
inputs:
153+
useDotNetTask: false
154+
packageParentPath: '$(System.DefaultWorkingDirectory)'
155+
packagesToPush: '$(System.DefaultWorkingDirectory)/**/drop/**/*.nupkg'
156+
nuGetFeedType: external
157+
publishFeedCredentials: 'microsoftgraph PowerShell Gallery connection'
158+
159+
78160

79-
- task: NuGetCommand@2
80-
displayName: Publish NuGet to feed
81-
inputs:
82-
command: push
83-
packagesToPush: $(Build.ArtifactStagingDirectory)/**/Microsoft.Graph.*.nupkg
84-
publishVstsFeed: $(PROJECT_NAME)/$(FEED_NAME)
85-
allowPackageConflicts: true
86161

87-
- template: ./common-templates/security-post-checks.yml
162+

.azure-pipelines/generation-templates/generate-helpdocs-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ parameters:
99
type: string
1010
default: ""
1111
- name: BUILDAGENT
12-
default: 1es-windows-ps-compute
12+
default: 1es-windows-ps-compute-m
1313
displayName: Build Agent
1414

1515
steps:

.azure-pipelines/weekly-generation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name: $(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
1010
parameters:
1111
- name: BuildAgent
1212
displayName: Build Agent
13-
default: 1es-windows-ps-compute
13+
default: 1es-windows-ps-compute-m
1414
- name: BaseBranch
1515
displayName: Base Branch
1616
default: dev

config/ModuleMetadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
"versions": {
2828
"authentication": {
2929
"prerelease": "",
30-
"version": "2.24.0"
30+
"version": "2.25.0"
3131
},
3232
"beta": {
3333
"prerelease": "",
34-
"version": "2.24.0"
34+
"version": "2.25.0"
3535
},
3636
"v1.0": {
3737
"prerelease": "",
38-
"version": "2.24.0"
38+
"version": "2.25.0"
3939
}
4040
}
4141
}

config/ModulesMapping.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"DeviceManagement.Enrollment": "^deviceManagement.(.*Enrollment.*|.*Autopilot.*|.*depOnboarding.*|importedDeviceIdentity|onPremisesConditionalAccessSettings|windowsFeatureUpdateProfile)$|^roleManagement.roleManagement$|^roleManagement.rbacApplicationMultiple$|^roleManagement.unifiedRbacApplication$",
1717
"DeviceManagement.Actions": "^deviceManagement.Actions$",
1818
"DeviceManagement.Functions": "^deviceManagement.Functions$",
19-
"DirectoryObjects": "^directoryObjects\\.",
19+
"DirectoryObjects": "^directoryObjects\\.|^directory.publicKeyInfrastructureRoot$",
2020
"Education": "^education\\.",
2121
"Files": "^drives\\.|^shares\\.|^users.drive$|^groups.drive$",
2222
"Financials": "^financials\\.",

openApiDocs/beta/Applications.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12072,11 +12072,11 @@ paths:
1207212072
put:
1207312073
tags:
1207412074
- servicePrincipals.customClaimsPolicy
12075-
summary: Update customClaimsPolicy
12076-
description: Update a customClaimsPolicy object.
12075+
summary: Create or replace claimsPolicy
12076+
description: 'Create a new customClaimsPolicy object if it doesn''t exist, or replace an existing one.'
1207712077
externalDocs:
1207812078
description: Find more info here
12079-
url: https://learn.microsoft.com/graph/api/customclaimspolicy-update?view=graph-rest-beta
12079+
url: https://learn.microsoft.com/graph/api/serviceprincipal-put-claimspolicy?view=graph-rest-beta
1208012080
operationId: servicePrincipal_SetClaimsPolicy
1208112081
parameters:
1208212082
- name: servicePrincipal-id
@@ -12107,11 +12107,11 @@ paths:
1210712107
patch:
1210812108
tags:
1210912109
- servicePrincipals.customClaimsPolicy
12110-
summary: Update customClaimsPolicy
12111-
description: Update a customClaimsPolicy object.
12110+
summary: Create or replace claimsPolicy
12111+
description: 'Create a new customClaimsPolicy object if it doesn''t exist, or replace an existing one.'
1211212112
externalDocs:
1211312113
description: Find more info here
12114-
url: https://learn.microsoft.com/graph/api/customclaimspolicy-update?view=graph-rest-beta
12114+
url: https://learn.microsoft.com/graph/api/serviceprincipal-put-claimspolicy?view=graph-rest-beta
1211512115
operationId: servicePrincipal_UpdateClaimsPolicy
1211612116
parameters:
1211712117
- name: servicePrincipal-id
@@ -27321,7 +27321,7 @@ components:
2732127321
type: array
2732227322
items:
2732327323
$ref: '#/components/schemas/microsoft.graph.appLogCollectionRequest'
27324-
description: The collection property of AppLogUploadRequest.
27324+
description: Indicates collection of App Log Upload Request.
2732527325
x-ms-navigationProperty: true
2732627326
additionalProperties:
2732727327
type: object
@@ -29491,11 +29491,11 @@ components:
2949129491
properties:
2949229492
key:
2949329493
type: string
29494-
description: Contains the name of the field that a value is associated with.
29494+
description: Key.
2949529495
nullable: true
2949629496
value:
2949729497
type: string
29498-
description: Contains the corresponding value for the specified key.
29498+
description: Value.
2949929499
nullable: true
2950029500
additionalProperties:
2950129501
type: object

openApiDocs/beta/Compliance.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15530,7 +15530,7 @@ components:
1553015530
type: array
1553115531
items:
1553215532
$ref: '#/components/schemas/microsoft.graph.appLogCollectionRequest'
15533-
description: The collection property of AppLogUploadRequest.
15533+
description: Indicates collection of App Log Upload Request.
1553415534
x-ms-navigationProperty: true
1553515535
additionalProperties:
1553615536
type: object
@@ -26336,11 +26336,11 @@ components:
2633626336
properties:
2633726337
key:
2633826338
type: string
26339-
description: Contains the name of the field that a value is associated with.
26339+
description: Key.
2634026340
nullable: true
2634126341
value:
2634226342
type: string
26343-
description: Contains the corresponding value for the specified key.
26343+
description: Value.
2634426344
nullable: true
2634526345
additionalProperties:
2634626346
type: object

openApiDocs/beta/CrossDeviceExperiences.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10516,7 +10516,7 @@ components:
1051610516
type: array
1051710517
items:
1051810518
$ref: '#/components/schemas/microsoft.graph.appLogCollectionRequest'
10519-
description: The collection property of AppLogUploadRequest.
10519+
description: Indicates collection of App Log Upload Request.
1052010520
x-ms-navigationProperty: true
1052110521
additionalProperties:
1052210522
type: object
@@ -13370,11 +13370,11 @@ components:
1337013370
properties:
1337113371
key:
1337213372
type: string
13373-
description: Contains the name of the field that a value is associated with.
13373+
description: Key.
1337413374
nullable: true
1337513375
value:
1337613376
type: string
13377-
description: Contains the corresponding value for the specified key.
13377+
description: Value.
1337813378
nullable: true
1337913379
additionalProperties:
1338013380
type: object

0 commit comments

Comments
 (0)