Skip to content

Commit

Permalink
Merge pull request KelvinTegelaar#652 from Ray-MRQ/patch-2
Browse files Browse the repository at this point in the history
Update adding Connectors with the correct text
  • Loading branch information
JohnDuprey authored Mar 9, 2024
2 parents c2ad437 + d4d09f9 commit 6f14c83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Modules/CIPPCore/Public/Entrypoints/Invoke-AddExConnector.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ Function Invoke-AddExConnector {
$Result = foreach ($Tenantfilter in $tenants) {
try {
$GraphRequest = New-ExoRequest -tenantid $Tenantfilter -cmdlet "New-$($ConnectorType)connector" -cmdParams $RequestParams
"Successfully created transport rule for $Tenantfilter."
Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $Tenantfilter -message "Created transport rule for $($Tenantfilter)" -sev 'Info'
"Successfully created Connector for $Tenantfilter."
Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $Tenantfilter -message "Created Connector for $($Tenantfilter)" -sev 'Info'
}
catch {
"Could not create created transport rule for $($Tenantfilter): $($_.Exception.message)"
Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $Tenantfilter -message "Could not create created transport rule for $($Tenantfilter): $($_.Exception.message)" -sev 'Error'
"Could not create created Connector for $($Tenantfilter): $($_.Exception.message)"
Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $Tenantfilter -message "Could not create created Connector for $($Tenantfilter): $($_.Exception.message)" -sev 'Error'
}
}

Expand Down

0 comments on commit 6f14c83

Please sign in to comment.