Skip to content

1.24.0 Release #1884

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 31 commits into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d676675
Update New-MgTeamTagMember.md
YuriySamorodov Feb 28, 2023
e9922c8
Merge pull request #1841 from YuriySamorodov/patch-1
timayabi2020 Mar 6, 2023
28c61ec
Added a second example
msewaweru Mar 7, 2023
312749c
Merge pull request #1855 from msewaweru/team-app-setting
timayabi2020 Mar 7, 2023
73be6ae
Open api updates and module version update
timayabi2020 Mar 8, 2023
e10d6e2
Added AllowClober parameter to overwrite the existing old modules
timayabi2020 Mar 8, 2023
9edddbd
Changed expected param sets to 3 on the connect-mggraph pester test
timayabi2020 Mar 8, 2023
d8de99a
Conformed test results as per previous pipeline output
timayabi2020 Mar 8, 2023
0e8d520
Returned parameter set count to 3
timayabi2020 Mar 8, 2023
7bba26e
Commented out null values
timayabi2020 Mar 8, 2023
5c5c894
Rolled back
timayabi2020 Mar 8, 2023
6161772
Update projectsbot.yml
ddyett Mar 8, 2023
0ae629a
Merge branch 'dev' into open_api_update
timayabi2020 Mar 8, 2023
2e0122e
Merge pull request #1856 from microsoftgraph/open_api_update
timayabi2020 Mar 8, 2023
74cf2ef
Remove unsupported path in WindowsUpdates.
peombwa Mar 13, 2023
bc832f1
Remove create PR GitHub actions. (#1866)
peombwa Mar 13, 2023
db965ca
Set default value for BaseBranch.
peombwa Mar 14, 2023
092b89e
Set default value for BaseBranch for help docs.
peombwa Mar 14, 2023
ee1e6f8
Remove unnecessary KeyVault task.
peombwa Mar 15, 2023
4767d82
Update create PR task.
peombwa Mar 15, 2023
c5c5bd5
Upgrade AzDo compliance tasks.
peombwa Mar 15, 2023
db465ad
Update cred scan.
peombwa Mar 15, 2023
0442cab
Set msBuildArchitecture to x64
peombwa Mar 15, 2023
9a23e0a
Weekly OpenAPI Docs Refresh (#1877)
peombwa Mar 15, 2023
c9a05f6
Add BinSkim.
peombwa Mar 15, 2023
d1926bd
Merge branch 'dev' into enhancements/RetireAzDoTasks
peombwa Mar 15, 2023
6b2aa2a
Upgrade cred scan version.
peombwa Mar 15, 2023
1145911
Remove generate-helpdocs-template from normal builds.
peombwa Mar 16, 2023
324a29a
Update AzDo Pipelines (#1881)
peombwa Mar 16, 2023
bccb024
Remove duplicate AzDo task.
peombwa Mar 17, 2023
32921e7
Merge branch 'enhancements/RetireAzDoTasks' into dev
peombwa Mar 17, 2023
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
9 changes: 5 additions & 4 deletions .azure-pipelines/common-templates/checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ steps:
git pull
git status


- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
displayName: "Run CredScan"
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3
displayName: 'Run CredScan - Src'
inputs:
debugMode: false
debugMode: false
scanFolder: '$(Build.SourcesDirectory)\src'
toolMajorVersion: 'V2'
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
steps:
- task: CodesignValidation@0

- task: SdtReport@1
- task: SdtReport@2
displayName: "Security Analysis Report"
continueOnError: true
condition: succeededOrFailed()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
steps:
- task: CredScan@2
displayName: 'Run CredScan'
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3
displayName: 'Run CredScan - Src'
inputs:
debugMode: false
batchSize: 20
scanFolder: '$(Build.SourcesDirectory)\src'
toolMajorVersion: 'V2'
searchersFileType: 'Skype'

- task: PoliCheck@1
- task: PoliCheck@2
displayName: 'Run PoliCheck'
condition: and(succeeded(), eq(eq(variables['Build.SourceBranch'], 'refs/heads/main'), false))
inputs:
Expand Down
28 changes: 0 additions & 28 deletions .azure-pipelines/generate-auth-module-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ parameters:
displayName: 'Build Number'
type: string
default: $[format('{0:yyMMddHH}', pipeline.startTime)]
- name: AZURESUBSCRIPTION
default: "Microsoft Graph Build Agents (Win+Lin)"
displayName: Azure Subscription

- name: KEYVAULT
default: "msgraph-build-keyvault"
displayName: Build Key vault


jobs:
- job: MsGraphPSSDKAuthModuleGeneration
Expand All @@ -37,13 +29,6 @@ jobs:
steps:
- template: ./common-templates/install-tools-template.yml

- task: AzureKeyVault@1
inputs:
azureSubscription: $(AZURESUBSCRIPTION)
KeyVaultName: $(KEYVAULT)
SecretsFilter: '*'
RunAsPreJob: true

- task: PowerShell@2
displayName: 'Generate and Build Auth Module'
env:
Expand All @@ -63,19 +48,6 @@ jobs:
projects: '$(System.DefaultWorkingDirectory)/src/Authentication/Authentication.Test/*.csproj'
testRunTitle: 'Run Enabled Tests'

- task: RoslynAnalyzers@2
inputs:
userProvideBuildInfo: 'msBuildInfo'
msBuildVersion: '16.0'
msBuildArchitecture: 'DotNetCore'
msBuildCommandline: '"C:\Program Files\dotnet\dotnet.exe" msbuild $(System.DefaultWorkingDirectory)//src//Authentication//Authentication.sln /nologo /nr:false'

- task: CodeMetrics@1
displayName: 'Run CodeMetrics'
inputs:
Files: '$(System.DefaultWorkingDirectory)//**//Microsoft.Graph.Authentication.dll;$(System.DefaultWorkingDirectory)//**//Microsoft.Graph.Authentication.exe'
continueOnError: true

- task: PowerShell@2
displayName: 'Generate and Build Auth Module'
inputs:
Expand Down
2 changes: 0 additions & 2 deletions .azure-pipelines/generate-modules-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ jobs:
script: |
. $(System.DefaultWorkingDirectory)/tools/PostGeneration/FindDuplicateCommand.ps1 -SourcePath "$(System.DefaultWorkingDirectory)/src/"

- template: ./generation-templates/generate-helpdocs-template.yml

- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'ESRP DLL Strong Name (Graph Resource Modules)'
enabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# Licensed under the MIT License.

parameters:
- name: BaseBranch
type: string
default: "dev"
- name: DOCSBRANCH
type: string
default: "DocsGeneration"
Expand Down Expand Up @@ -54,4 +57,17 @@ steps:
script: |
git status
git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $(ComputeBranch.DocsBranch)
git status
git status

- task: PowerShell@2
displayName: Create Pull Request for Weekly Help Docs Generation
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)
inputs:
pwsh: true
targetType: inline
script: |
$Title = "[v1] Weekly Help Docs Generation"
$Body = "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
$BaseBranch = "${{ parameters.BaseBranch }}"
. $(System.DefaultWorkingDirectory)/scripts/create-pull-request.ps1 -Title $Title -Body $Body -BaseBranchName $BaseBranch
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,15 @@ parameters:
- name: GenerateHelpDocs
type: boolean
default: false
- name: GeneratePullRequest
type: boolean
default: false
- name: DOCSBRANCH
type: string
default: "DocsGeneration"
- name: BaseBranchName
type: string
default: "dev"

jobs:
- job: GenerateServiceModules
Expand All @@ -44,7 +50,9 @@ jobs:
PublishToFeed: ${{ parameters.PublishToFeed }}
GenerateCommandMetadata: ${{ parameters.GenerateCommandMetadata }}
GenerateHelpDocs: ${{ parameters.GenerateHelpDocs }}
GeneratePullRequest: ${{ parameters.GeneratePullRequest }}
DocsBranch: ${{ parameters.DocsBranch }}
BaseBranchName: ${{ parameters.BaseBranchName }}
steps:
- template: ../common-templates/checkout.yml
parameters:
Expand Down Expand Up @@ -155,6 +163,21 @@ jobs:
- ${{ if eq(parameters.GenerateCommandMetadata, true) }}:
- template: ./generate-command-metadata-template.yml

- ${{ if eq(parameters.GeneratePullRequest, true) }}:
- task: PowerShell@2
displayName: Create Pull Request for generated build
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)
inputs:
pwsh: true
targetType: inline
script: |
$Title = "[v1] Weekly OpenApiDocs Refresh"
$Body = "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
$BaseBranch = "${{ parameters.BaseBranchName }}"
Write-Host "Executing . $(System.DefaultWorkingDirectory)/scripts/create-pull-request.ps1 -Title $Title -Body $Body -BaseBranchName $BaseBranch"
. $(System.DefaultWorkingDirectory)/scripts/create-pull-request.ps1 -Title $Title -Body $Body -BaseBranchName $BaseBranch

- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: ESRP DLL strong name (Service Modules)
condition: and(succeeded(), eq('${{ parameters.EnableSigning }}', true))
Expand Down Expand Up @@ -290,8 +313,9 @@ jobs:
- ${{ if eq(parameters.GenerateHelpDocs, true) }}:
- template: ./generate-helpdocs-template.yml
parameters:
DOCSBRANCH: $(DocsBranch)
ModulesToGenerate: $(ModulesToGenerate)
BaseBranch: $(BaseBranchName)
DOCSBRANCH: $(DocsBranch)
ModulesToGenerate: $(ModulesToGenerate)

- task: PowerShell@2
displayName: Find Duplicate Commands
Expand Down
24 changes: 0 additions & 24 deletions .azure-pipelines/integrated-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ parameters:
default: 1es-windows-ps-compute
displayName: Build Agent

- name: AzureSubscription
default: "Microsoft Graph Build Agents (Win+Lin)"
displayName: Azure Subscription

- name: KeyVault
default: "msgraph-build-keyvault"
displayName: Build Key vault

variables:
AUTH_MODULE_NAME: 'Authentication'
AUTH_MODULE_PATH: 'src\Authentication\Authentication'
Expand All @@ -29,8 +21,6 @@ variables:
GitUserName: 'Microsoft Graph DevX Tooling'
BUILDNUMBER: -1
BUILDAGENT: ${{ parameters.BuildAgent }}
AZURESUBSCRIPTION: ${{ parameters.AzureSubscription }}
KEYVAULT: ${{ parameters.KeyVault }}

pool: $(BUILDAGENT)

Expand Down Expand Up @@ -72,18 +62,6 @@ stages:
Write-Host $(BUILDNUMBER)
printenv

- stage: GetSecrets
displayName: 'Get Secrets From Azure KeyVault'
jobs:
- job: GetSecrets
steps:
- task: AzureKeyVault@1
inputs:
azureSubscription: $(AZURESUBSCRIPTION)
KeyVaultName: $(KEYVAULT)
SecretsFilter: '*'
RunAsPreJob: true

- stage: SecurityPreChecks
displayName: 'Security Pre Checks'
jobs:
Expand All @@ -102,8 +80,6 @@ stages:
AUTH_MODULE_PATH: $(AUTH_MODULE_PATH)
EnableSigning: true
BUILDNUMBER: $(BUILDNUMBER)
KEYVAULT: $(KEYVAULT)
AZURESUBSCRIPTION: $(AZURESUBSCRIPTION)

- stage: GenerateModules
displayName: 'Generate Modules (Microsoft.Graph.*)'
Expand Down
16 changes: 15 additions & 1 deletion .azure-pipelines/weekly-examples-update.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.

trigger: none # disable triggers based on commits.
pr: none # disable as a PR gate.
name: 'PowerShellExamplesUpdate Check'
Expand Down Expand Up @@ -57,4 +58,17 @@ jobs:
git add .
git commit -m "Updating examples "+$date
git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $proposedBranch
git status
git status

- task: PowerShell@2
displayName: Create examples update
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)
inputs:
pwsh: true
targetType: inline
script: |
$Title = "[v1] Examples Update"
$Body = "This pull request was automatically created by Azure Pipelines. Contains examples update."
$BaseBranch = "dev"
. $(System.DefaultWorkingDirectory)/scripts/create-pull-request.ps1 -Title $Title -Body $Body -BaseBranchName $BaseBranch
2 changes: 2 additions & 0 deletions .azure-pipelines/weekly-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ stages:
AuthModulePath: "src/Authentication/Authentication"
ServiceModulePath: "src/"
ModulePrefix: "Microsoft.Graph"
BaseBranchName: $(BaseBranch)
EnableSigning: false
PublishToFeed: false
GenerateCommandMetadata: true
GenerateHelpDocs: true
GeneratePullRequest: true
54 changes: 0 additions & 54 deletions .github/workflows/create-helpdocs-pr-workflow.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/create-openapidocs-pr-workflow.yml

This file was deleted.

Loading