-
Notifications
You must be signed in to change notification settings - Fork 343
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
New scripts to help manage mailbox extended property quota issues #2227
base: main
Are you sure you want to change the base?
New scripts to help manage mailbox extended property quota issues #2227
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick review of the scripts, make those changes and will come back and go in deeper into it.
…om/cboonham/CSS-Exchange into chris-CheckMailboxExtendedProperty
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Spellings corrected |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@lusassl-msft will review and test tomorrow |
#Requires -Modules @{ ModuleName="ExchangeOnlineManagement"; RequiredVersion="3.4.0" } | ||
#Requires -Modules @{ ModuleName="Microsoft.Graph.Users"; RequiredVersion="2.24.0" } | ||
#Requires -Modules @{ ModuleName="Microsoft.Graph.Mail"; RequiredVersion="2.24.0" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cboonham do we require exactly these versions or is this the minimum version that is required? If it's the minimum version, it would be better to use ModuleVersion
instead as this specifies a minimum acceptable version of the module whereas RequiredVersion
specifies an exact, required version of the module.
# Get the current Microsoft Graph context | ||
$context = Get-MgContext | ||
if ($null -eq $context) { | ||
Write-Host -ForegroundColor Red "No valid context. Please connect to Microsoft Graph first." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to write out a log file? You can use the shared GenericScriptStartLogging.ps1
helper functions to write Write-Host
and Write-Verbose
out to a log file. This would be helpful in case of troubleshooting issues with the script.
) | ||
|
||
process { | ||
# Get the current Microsoft Graph context |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add the shared GenericScriptUpdate.ps1
helper functions to the script. This will add auto-update capabilities in case that we release a newer version of the script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't think the scripts are going to have a lot of repeat traffic, we might not need to have the update script feature. @cboonham I would leave that up to your discretion.
Issue:
Mailboxes can hit extended property (nee named properties) quota issue, due to apps registering too many extended properties.
Reason:
These scripts help diagnose if there is an extended properties quota issue and help to address the issue by searching for a removing the unwanted extended properties.
Fix:
New scripts and documentation.
Validation:
Tested in own tenant.