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?

- [ ]  Yes, it's included
- [ ] 🕐 Yes, but in a later PR
- [x]  No

#### Type of change

- [ ] 🌻 Feature
- [x] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Supportability/Tests
- [x] 💻 CI/Deployment
- [ ] 🧹 Tech Debt/Cleanup

#### Test Plan

- [ ] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
This commit is contained in:
ashmrtn 2023-09-11 10:43:54 -07:00 committed by GitHub
parent 3706ae6c14
commit c92ce44e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,14 +55,15 @@ runs:
AZURE_TENANT_ID: ${{ inputs.azure-tenant-id }} AZURE_TENANT_ID: ${{ inputs.azure-tenant-id }}
run: ./exchangePurge.ps1 -User ${{ inputs.user }} -FolderNamePurgeList PersonMetadata -FolderPrefixPurgeList "${{ inputs.folder-prefix }}".Split(",") -PurgeBeforeTimestamp ${{ inputs.older-than }} 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 # TODO(ashmrtn): Re-enable when we figure out errors we're seeing with Get-Mailbox call.
if: ${{ inputs.user == '' }} #- name: Reset retention for all mailboxes to 0
shell: pwsh # if: ${{ inputs.user == '' }}
working-directory: ./src/cmd/purge/scripts # shell: pwsh
env: # working-directory: ./src/cmd/purge/scripts
M365_TENANT_ADMIN_USER: ${{ inputs.m365-admin-user }} # env:
M365_TENANT_ADMIN_PASSWORD: ${{ inputs.m365-admin-password }} # M365_TENANT_ADMIN_USER: ${{ inputs.m365-admin-user }}
run: ./exchangeRetention.ps1 # M365_TENANT_ADMIN_PASSWORD: ${{ inputs.m365-admin-password }}
# run: ./exchangeRetention.ps1
################################################################################################################ ################################################################################################################
# OneDrive # OneDrive