4
votes

I am developing some Provider Hosted add-ins for my SharePoint online tenant, and the Provider Hosted add-ins contain WCFs to implement Remote Event Receivers. Now I know that inside Azure subscription account, i can create a new Service Bus, to use it inside my visual studio projects, for debugging and testing my remote event receivers and workflows. For example inside my Azure web portal i have created this service bus:-

enter image description here

then inside the visual studio's Provider Hosted add-ins Project i entered the service bus information, as follow:-

enter image description here

This allowed me to debug and test my Remote Event Receivers code (actually i did not find any other way to debug my Remote Event Receivers, rather than specifying an Azure Service Bus). now my question is, if we chose to have an Azure Virtual Machine, instated of Azure subscription. will we still be able to create an Azure service bus or similar functionality inside IIS? or this option is only provided as part of Azure subscription account?

If the answer, is No (i can not create a service bus inside Azure VM), then is there a way i can debug and test my Remote Event Receivers code, without using Azure service BUS?

Thanks

1

1 Answers

2
votes

Azure Service Bus is a hostess on azure service. You can't "create" or "emulate" it on premises or VM.

if we chose to have an Azure Virtual Machine, instated of Azure subscription. will we still be able to create an Azure service bus inside IIS? or this option is only provided as part of Azure subscription?

Through Azure subscription you get access to services and they're resources. Such as VMs and Azure Service Bus. To use a VM you don't have to use Azure subscription as you could soon one on your machine if you'd like. But you can't run your own Service Bus. IIS or not. For that you'll need to have an acute subscription and create a namespace under Service Bus.

If the answer, is No (i can not create a service bus inside Azure VM), then is there a way i can debug and test my Remote Event Receiver, without using Azure service BUS??

As mentioned above, you could use a namespace for testing purposes from a VM as long as that VM has access to the internet.