Skip to content
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

Merge to main #3032

Closed
wants to merge 81 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
297822a
Weekly OpenApiDocs Download.
Oct 1, 2024
62f0be8
Add generated MgCommandMetadata.json. [run ci]
Oct 2, 2024
b685838
Merge pull request #2984 from microsoftgraph/WeeklyApiRefresh/2024100…
timayabi2020 Oct 3, 2024
962d256
Updating examples
Oct 4, 2024
7e13e5e
Merge pull request #2987 from microsoftgraph/WeeklyExamplesUpdate/202…
timayabi2020 Oct 7, 2024
c8516bb
Use 1ES pipeline template for build pipeline
Ndiritu Oct 9, 2024
3b84057
Merge pull request #2993 from microsoftgraph/feat/build-pipeline-1es
Ndiritu Oct 10, 2024
b688ac2
Updating examples
Oct 11, 2024
5b27da0
Merge pull request #2994 from microsoftgraph/WeeklyExamplesUpdate/202…
timayabi2020 Oct 15, 2024
0e0c1fd
Added pipeline for internal release
Oct 15, 2024
a675b16
Merge branch 'dev' of https://github.com/microsoftgraph/msgraph-sdk-p…
Oct 15, 2024
76f4650
Updated CI build pipeline to have its own job of deploying to an inte…
Oct 15, 2024
ec475ef
Testing with calendar module only
Oct 15, 2024
0b32029
Changed stage name to build
Oct 15, 2024
31548f5
Removed dependancy
Oct 15, 2024
3261c37
Rectified template context
Oct 15, 2024
fadda72
Removed conditional statement
Oct 15, 2024
6ee0a23
Updated nuget push step
Oct 15, 2024
45f194d
Introduced another poolname for publishing
Oct 15, 2024
c423e3a
Updates
Oct 15, 2024
b22d4f2
Updated pipeline
Oct 15, 2024
8c06861
Corrected definition
Oct 15, 2024
7bb29bd
Added checkout none
Oct 15, 2024
a326d6d
Changed to inline task
Oct 15, 2024
4e92592
Removed unexpected checkout value
Oct 15, 2024
264d29e
Removed deployment strategy
Oct 15, 2024
7a7e587
Fixed formatting
Oct 15, 2024
a4896b9
Fixed pipeline formatting
Oct 15, 2024
7744224
Update
Oct 15, 2024
325a65d
Updates
Oct 15, 2024
5950792
Formatting issues
Oct 15, 2024
2fbe264
Formatting issues
Oct 15, 2024
81c6c3f
Added download task
Oct 15, 2024
47cf5a1
Specified dev environment
Oct 15, 2024
17bcec2
Added checkout to resolve credscan issues
Oct 16, 2024
1f40b0f
Removd unnecessary download artifact step
Oct 16, 2024
3b6d995
Updated version to test module publishing
Oct 16, 2024
53ad5ea
Changed the build type to current
Oct 16, 2024
2ceea4d
Added stage for deploying to powershell gallery
Oct 16, 2024
f8fe06f
Fixed formatting issues
Oct 16, 2024
fbfcecd
Added configuration for publishing to Powershell gallery
Oct 16, 2024
64506e9
Deleted unnecessary file
Oct 16, 2024
3e6dacf
Merge pull request #2995 from microsoftgraph/2989-migrate-ado-release…
timayabi2020 Oct 17, 2024
3af676e
Adds condition to deploy to ps gallery on main branch triggers only.
Oct 17, 2024
1aa1431
Commented out the other modules for testing purposes
Oct 17, 2024
c8fc6cf
Reenabled other modules
Oct 17, 2024
717b212
Catered for "in" operator with + character that was being replaced wi…
Oct 17, 2024
0060e60
Merge pull request #2998 from microsoftgraph/fix/pipelinestage
timayabi2020 Oct 17, 2024
de00d01
Merge branch 'dev' into 2973-filter-is-incorrectly-handling-special-c…
timayabi2020 Oct 17, 2024
82733c4
Updating examples
Oct 18, 2024
937c0a0
Updated wrong Connect-MgBetaGraph to Connect-MgGraph
Oct 18, 2024
013be3c
Merge pull request #3000 from microsoftgraph/WeeklyExamplesUpdate/202…
timayabi2020 Oct 22, 2024
310b16c
Merge branch 'dev' into example/cleanup
timayabi2020 Oct 22, 2024
891f694
Merge pull request #3002 from microsoftgraph/example/cleanup
timayabi2020 Oct 22, 2024
158adf0
Added directive to remove duplicate cmdlet
Oct 22, 2024
96dbee8
Updated agent name from 1es-windows-ps-compute to 1es-windows-ps-comp…
Oct 22, 2024
6b6d981
Merge pull request #3006 from microsoftgraph/3004-update-pool-for-bui…
timayabi2020 Oct 22, 2024
445be33
Merge branch 'dev' into 2973-filter-is-incorrectly-handling-special-c…
timayabi2020 Oct 23, 2024
9e268de
Merge pull request #2999 from microsoftgraph/2973-filter-is-incorrect…
timayabi2020 Oct 23, 2024
59323ee
Merge branch 'dev' into fix/autorestgeneration
timayabi2020 Oct 23, 2024
adf4859
Merge pull request #3005 from microsoftgraph/fix/autorestgeneration
timayabi2020 Oct 23, 2024
33fbdea
Updating examples
Oct 25, 2024
4d9097e
Merge pull request #3010 from microsoftgraph/WeeklyExamplesUpdate/202…
timayabi2020 Oct 25, 2024
fd4d051
Fix conjunction problems causing build errors due to duplicates
Oct 28, 2024
2a99f33
Merge branch 'dev' into fix/autorestgen1
timayabi2020 Oct 28, 2024
09855d3
Merge pull request #3012 from microsoftgraph/fix/autorestgen1
timayabi2020 Oct 28, 2024
ce5c1f7
Updating examples
Nov 1, 2024
98aa30f
Merge pull request #3014 from microsoftgraph/WeeklyExamplesUpdate/202…
timayabi2020 Nov 5, 2024
f87013d
Updating examples
Nov 8, 2024
4d893f1
Merge pull request #3023 from microsoftgraph/WeeklyExamplesUpdate/202…
timayabi2020 Nov 11, 2024
9a6ffe5
Updated to torus endpoint
Nov 13, 2024
bc68214
Merge pull request #3026 from microsoftgraph/3020-switch-devx-api-end…
timayabi2020 Nov 13, 2024
d6616cc
Updating examples
Nov 15, 2024
f5aa641
Merge pull request #3028 from microsoftgraph/WeeklyExamplesUpdate/202…
timayabi2020 Nov 18, 2024
b591ad9
Added directory module
Nov 19, 2024
46c0d65
Updated the open Api tweak
Nov 19, 2024
057c0bb
Added Directory API file
Nov 19, 2024
3fd12c9
Changed tag to be included in DirectoryObjects because the word Direc…
Nov 19, 2024
047cc11
Updated Directory Objects file and version
Nov 19, 2024
02af493
Handling of OR preposition needs to be reviewed
Nov 19, 2024
dceff1f
Merge pull request #3031 from microsoftgraph/cert_based_auth
timayabi2020 Nov 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
197 changes: 136 additions & 61 deletions .azure-pipelines/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,86 +2,161 @@
# Licensed under the MIT License.
name: $(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
parameters:
- name: BuildAgent
default: 1es-windows-ps-compute
displayName: Build Agent
- name: Test
type: boolean
default: true
- name: Pack
type: boolean
default: true
- name: Sign
type: boolean
default: true
- name: BuildAgent
default: 1es-windows-ps-compute-m
displayName: Build Agent
- name: Test
type: boolean
default: true
- name: Pack
type: boolean
default: true
- name: Sign
type: boolean
default: true
- name: InternalFeed
type: string
default: '0985d294-5762-4bc2-a565-161ef349ca3e/PowerShell_V2_Build'
displayName: Internal NuGet Feed
values:
- '0985d294-5762-4bc2-a565-161ef349ca3e/PowerShell_v2'
- 'ATPopFeed'
- '0985d294-5762-4bc2-a565-161ef349ca3e/PowerShell_V2_Build'

variables:
BuildAgent: ${{ parameters.BuildAgent }}
GitUserEmail: "[email protected]"
GitUserName: "Microsoft Graph DevX Tooling"

pool: $(BuildAgent)

trigger:
branches:
include:
- main
- dev
- main
- dev
pr:
branches:
include:
- main
- dev

jobs:
- job: MsGraphPsSdkCiBuild
displayName: Microsoft Graph PowerShell SDK CI Build
timeoutInMinutes: 840
steps:
- script: |
git submodule update --init --recursive
- template: ./common-templates/install-tools.yml
- template: ./common-templates/security-pre-checks.yml

- template: ./generation-templates/authentication-module.yml
parameters:
Test: ${{ parameters.Test }}
Pack: ${{ parameters.Pack }}
Sign: ${{ parameters.Sign }}
- main
- dev
resources:
repositories:
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
pool: $(BuildAgent)
sdl:
binskim:
enabled: false
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."
credscan:
suppressionsFile: $(Build.SourcesDirectory)/.azure-pipelines/config/credscan/credscan-suppressions.json
policheck:
exclusionFile: $(Build.SourcesDirectory)/.azure-pipelines/config/policheck/policheck-exclusions.xml
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: stage
jobs:
- job: MsGraphPsSdkCiBuild
displayName: Microsoft Graph PowerShell SDK CI Build
timeoutInMinutes: 840
templateContext:
outputs:
- ${{ if and(eq(parameters.Pack, true), eq(parameters.Sign, true)) }}:
- output: pipelineArtifact
displayName: 'Publish Module Artifacts'
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'drop'
publishLocation: 'Container'
steps:
- script: |
git submodule update --init --recursive
- template: .azure-pipelines/common-templates/install-tools.yml@self
- template: .azure-pipelines/common-templates/security-pre-checks.yml@self

- template: .azure-pipelines/generation-templates/authentication-module.yml@self
parameters:
Test: ${{ parameters.Test }}
Pack: ${{ parameters.Pack }}
Sign: ${{ parameters.Sign }}

- template: ./generation-templates/workload-modules.yml
parameters:
Test: ${{ parameters.Test }}
Pack: ${{ parameters.Pack }}
Sign: ${{ parameters.Sign }}
- template: .azure-pipelines/generation-templates/workload-modules.yml@self
parameters:
Test: ${{ parameters.Test }}
Pack: ${{ parameters.Pack }}
Sign: ${{ parameters.Sign }}

- template: ./generation-templates/meta-module.yml
parameters:
Test: ${{ parameters.Test }}
Pack: ${{ parameters.Pack }}
Sign: ${{ parameters.Sign }}
- template: .azure-pipelines/generation-templates/meta-module.yml@self
parameters:
Test: ${{ parameters.Test }}
Pack: ${{ parameters.Pack }}
Sign: ${{ parameters.Sign }}

- template: ./common-templates/guardian-analyzer.yml
- template: .azure-pipelines/common-templates/guardian-analyzer.yml@self

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

- task: PublishBuildArtifacts@1
displayName: Publish Module Artifacts
inputs:
PathtoPublish: "$(Build.ArtifactStagingDirectory)"
ArtifactName: "drop"
publishLocation: "Container"
- template: .azure-pipelines/common-templates/security-post-checks.yml@self
- stage: 'Deploy_to_Internal_Feed'
dependsOn: stage
jobs:
- deployment: 'DeployToInternalFeed'
displayName: 'Deploy to Internal Feed'
environment: 'PowerShellInternalFeed'
strategy:
runOnce:
deploy:
steps:
- checkout: self
- task: DownloadPipelineArtifact@2
displayName: 'Download Build Artifacts'
inputs:
buildType: 'current'
targetPath: '$(System.DefaultWorkingDirectory)'
- task: 1ES.PublishNuget@1
displayName: 'Publish NuGet to feed'
inputs:
useDotNetTask: false
packageParentPath: '$(System.DefaultWorkingDirectory)'
packagesToPush: '$(System.DefaultWorkingDirectory)/**/drop/**/*.nupkg'
publishVstsFeed: ${{ parameters.InternalFeed }}
nuGetFeedType: internal
allowPackageConflicts: true
- stage: 'Deploy_to_PsGallery'
dependsOn: stage
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main')) # Only deploy to PSGallery on main branch
jobs:
- deployment: 'DeployToPowerShellGallery'
displayName: 'Deploy to PowerShell Gallery'
environment: 'PowerShellGallery'
strategy:
runOnce:
deploy:
steps:
- checkout: self
- task: DownloadPipelineArtifact@2
displayName: 'Download Build Artifacts'
inputs:
buildType: 'current'
targetPath: '$(System.DefaultWorkingDirectory)'
- task: 1ES.PublishNuget@1
displayName: 'Publish NuGet to feed'
inputs:
useDotNetTask: false
packageParentPath: '$(System.DefaultWorkingDirectory)'
packagesToPush: '$(System.DefaultWorkingDirectory)/**/drop/**/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: 'microsoftgraph PowerShell Gallery connection'



- task: NuGetCommand@2
displayName: Publish NuGet to feed
inputs:
command: push
packagesToPush: $(Build.ArtifactStagingDirectory)/**/Microsoft.Graph.*.nupkg
publishVstsFeed: $(PROJECT_NAME)/$(FEED_NAME)
allowPackageConflicts: true

- template: ./common-templates/security-post-checks.yml

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ parameters:
type: string
default: ""
- name: BUILDAGENT
default: 1es-windows-ps-compute
default: 1es-windows-ps-compute-m
displayName: Build Agent

steps:
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/weekly-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: $(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
parameters:
- name: BuildAgent
displayName: Build Agent
default: 1es-windows-ps-compute
default: 1es-windows-ps-compute-m
- name: BaseBranch
displayName: Base Branch
default: dev
Expand Down
6 changes: 3 additions & 3 deletions config/ModuleMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
"versions": {
"authentication": {
"prerelease": "",
"version": "2.24.0"
"version": "2.25.0"
},
"beta": {
"prerelease": "",
"version": "2.24.0"
"version": "2.25.0"
},
"v1.0": {
"prerelease": "",
"version": "2.24.0"
"version": "2.25.0"
}
}
}
2 changes: 1 addition & 1 deletion config/ModulesMapping.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"DeviceManagement.Enrollment": "^deviceManagement.(.*Enrollment.*|.*Autopilot.*|.*depOnboarding.*|importedDeviceIdentity|onPremisesConditionalAccessSettings|windowsFeatureUpdateProfile)$|^roleManagement.roleManagement$|^roleManagement.rbacApplicationMultiple$|^roleManagement.unifiedRbacApplication$",
"DeviceManagement.Actions": "^deviceManagement.Actions$",
"DeviceManagement.Functions": "^deviceManagement.Functions$",
"DirectoryObjects": "^directoryObjects\\.",
"DirectoryObjects": "^directoryObjects\\.|^directory.publicKeyInfrastructureRoot$",
"Education": "^education\\.",
"Files": "^drives\\.|^shares\\.|^users.drive$|^groups.drive$",
"Financials": "^financials\\.",
Expand Down
18 changes: 9 additions & 9 deletions openApiDocs/beta/Applications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12072,11 +12072,11 @@ paths:
put:
tags:
- servicePrincipals.customClaimsPolicy
summary: Update customClaimsPolicy
description: Update a customClaimsPolicy object.
summary: Create or replace claimsPolicy
description: 'Create a new customClaimsPolicy object if it doesn''t exist, or replace an existing one.'
externalDocs:
description: Find more info here
url: https://learn.microsoft.com/graph/api/customclaimspolicy-update?view=graph-rest-beta
url: https://learn.microsoft.com/graph/api/serviceprincipal-put-claimspolicy?view=graph-rest-beta
operationId: servicePrincipal_SetClaimsPolicy
parameters:
- name: servicePrincipal-id
Expand Down Expand Up @@ -12107,11 +12107,11 @@ paths:
patch:
tags:
- servicePrincipals.customClaimsPolicy
summary: Update customClaimsPolicy
description: Update a customClaimsPolicy object.
summary: Create or replace claimsPolicy
description: 'Create a new customClaimsPolicy object if it doesn''t exist, or replace an existing one.'
externalDocs:
description: Find more info here
url: https://learn.microsoft.com/graph/api/customclaimspolicy-update?view=graph-rest-beta
url: https://learn.microsoft.com/graph/api/serviceprincipal-put-claimspolicy?view=graph-rest-beta
operationId: servicePrincipal_UpdateClaimsPolicy
parameters:
- name: servicePrincipal-id
Expand Down Expand Up @@ -27321,7 +27321,7 @@ components:
type: array
items:
$ref: '#/components/schemas/microsoft.graph.appLogCollectionRequest'
description: The collection property of AppLogUploadRequest.
description: Indicates collection of App Log Upload Request.
x-ms-navigationProperty: true
additionalProperties:
type: object
Expand Down Expand Up @@ -29491,11 +29491,11 @@ components:
properties:
key:
type: string
description: Contains the name of the field that a value is associated with.
description: Key.
nullable: true
value:
type: string
description: Contains the corresponding value for the specified key.
description: Value.
nullable: true
additionalProperties:
type: object
Expand Down
6 changes: 3 additions & 3 deletions openApiDocs/beta/Compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15530,7 +15530,7 @@ components:
type: array
items:
$ref: '#/components/schemas/microsoft.graph.appLogCollectionRequest'
description: The collection property of AppLogUploadRequest.
description: Indicates collection of App Log Upload Request.
x-ms-navigationProperty: true
additionalProperties:
type: object
Expand Down Expand Up @@ -26336,11 +26336,11 @@ components:
properties:
key:
type: string
description: Contains the name of the field that a value is associated with.
description: Key.
nullable: true
value:
type: string
description: Contains the corresponding value for the specified key.
description: Value.
nullable: true
additionalProperties:
type: object
Expand Down
6 changes: 3 additions & 3 deletions openApiDocs/beta/CrossDeviceExperiences.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10516,7 +10516,7 @@ components:
type: array
items:
$ref: '#/components/schemas/microsoft.graph.appLogCollectionRequest'
description: The collection property of AppLogUploadRequest.
description: Indicates collection of App Log Upload Request.
x-ms-navigationProperty: true
additionalProperties:
type: object
Expand Down Expand Up @@ -13370,11 +13370,11 @@ components:
properties:
key:
type: string
description: Contains the name of the field that a value is associated with.
description: Key.
nullable: true
value:
type: string
description: Contains the corresponding value for the specified key.
description: Value.
nullable: true
additionalProperties:
type: object
Expand Down
Loading
Loading