From c92ce44e108bdc9c91f700b0419e015e651b5260 Mon Sep 17 00:00:00 2001 From: ashmrtn <3891298+ashmrtn@users.noreply.github.com> Date: Mon, 11 Sep 2023 10:43:54 -0700 Subject: [PATCH] Disable command to disable retention (#4221) Currently failing, possibly due to changes in the cmdlet that the retention command uses. --- #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [x] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [x] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Supportability/Tests - [x] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup #### Test Plan - [ ] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- .github/actions/purge-m365-data/action.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/actions/purge-m365-data/action.yml b/.github/actions/purge-m365-data/action.yml index cf013a054..819778c01 100644 --- a/.github/actions/purge-m365-data/action.yml +++ b/.github/actions/purge-m365-data/action.yml @@ -55,14 +55,15 @@ runs: AZURE_TENANT_ID: ${{ inputs.azure-tenant-id }} run: ./exchangePurge.ps1 -User ${{ inputs.user }} -FolderNamePurgeList PersonMetadata -FolderPrefixPurgeList "${{ inputs.folder-prefix }}".Split(",") -PurgeBeforeTimestamp ${{ inputs.older-than }} - - name: Reset retention for all mailboxes to 0 - if: ${{ inputs.user == '' }} - shell: pwsh - working-directory: ./src/cmd/purge/scripts - env: - M365_TENANT_ADMIN_USER: ${{ inputs.m365-admin-user }} - M365_TENANT_ADMIN_PASSWORD: ${{ inputs.m365-admin-password }} - run: ./exchangeRetention.ps1 + # TODO(ashmrtn): Re-enable when we figure out errors we're seeing with Get-Mailbox call. + #- name: Reset retention for all mailboxes to 0 + # if: ${{ inputs.user == '' }} + # shell: pwsh + # working-directory: ./src/cmd/purge/scripts + # env: + # M365_TENANT_ADMIN_USER: ${{ inputs.m365-admin-user }} + # M365_TENANT_ADMIN_PASSWORD: ${{ inputs.m365-admin-password }} + # run: ./exchangeRetention.ps1 ################################################################################################################ # OneDrive