I am working on a remote event receiver inside our root site collection, which worked well locally, but when i deploy it to azure it did not have any effect. here are the steps i followed for the deployment:-
1. i generate the client and secret id, using this url https://****.sharepoint.com/_layouts/15/appregnew.aspx
2. then i access the app from the SP admin center @ https://***-admin.sharepoint.com/_layouts/15/appinv.aspx
3. i add the following inside the app permission:-
<AppPermissionRequests AllowAppOnlyPolicy="true"><AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" /></AppPermissionRequests>
4. inside VS 2019 >> i added the client id and client secret inside web.config >> i publish the project to my c drive.
![]()
5. then i zip the generated files "bin.zip".
6. i created a new web app inside azure named TGroupPUSRER, as follow:-
![]()
7. after that i publish the zip file to azue using this command:-
az webapp deployment source config-zip --resource-group "PUS" --name "TGroupPUSRER" --src "C:\pus\bin.zip"
8. i add the RER using these 2 command:-
Add-PnPEventReceiver -List "Project System" -Name "PUSRERupdating" -Url https://tgrouppusrer.azurewebsites.net/rer.svc -EventReceiverType ItemUpdating -Synchronization Synchronous
Add-PnPEventReceiver -List "Project System" -Name "PUSRERupdated" -Url https://tgrouppusrer.azurewebsites.net/rer.svc -EventReceiverType ItemUpdated -Synchronization Asynchronous
but when i edit items inside the Project System list the RER will not have any effect. so can anyone advice what i am missing? as i think i had done all the necessary steps for the RER to work.