High Memory Utilization when using "O365 script execution configuration" activity
说明
When using a custom script module which leverages the O365 script execution configuration activity to perform regularly scheduled operations against Azure, memory utilization on the Active Roles host increases dramatically.
原因
The custom script module is not disposing of sessions properly.
解决办法
Use the following method to dispose of all open remote sessions:
$context.O365RemoveAllModulesSessions()
变更请求
TF00261559
其他信息
Enhancement Request 261559 has been created to add this method into the sample scripts included with Active Roles.