cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
suni_thomas
Level: Power Up

Powerapps to connect to different Azure Subscriptions

Hi All, 

 

I have a trial subscription and a Non-Prod (work) subscription in Azure. There is Eventhub created in both subscription. I have created my own trial subscription in Powerapps and I am able to connect to the Eventhub in my Trial subscription.  However I am not able to access the Event hub under Non-Prod subscription. 

 

How can I enforce that Powerapps connect to the Non-Prod subscription , so that my Flow can connect to the required Event hub. 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Powerapps to connect to different Azure Subscriptions

Hi @suni_thomas ,

Do you want to connect to the Azure Event Hubs connector from your PowerApps app?

 

When you create a connection to the Event Hubs connector from your PowerApps app, it requires that you need to provide a connection string (Azure Event Hubs Connection String) as below:2.JPG

The sample format of the Connection string as below:

Endpoint=sb://dummynamespace.servicebus.windows.net/;SharedAccessKeyName=DummyAccessKeyName;SharedAccessKey=5dOntTRytoC24opYThisAsit3is2B+OGY1US/fuL3ly=

The Event Hub created in your trial subscription and the Non-Prod (work) subscription of your Azure would have different connection string.

If you want to connect to the Event Hubs in your Non-Prod subscription from your app, you need to get the Connection string for the Event Hubs in your Non-Prod subscription, then re-create a new connection to the Event Hubs connector using the retrieved Connection string from your app. Then within your app, you could use the new created Event Hubs connection to connect to Event Hubs in your Non-Prod subscription.

More details about getting Connection string for the Event Hubs in your Azure, please check the following article:

https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-get-connection-string

 

More detais about the Event Hubs connector in PowerApps, please check the following article:

https://docs.microsoft.com/en-us/connectors/eventhubs/

 

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Powerapps to connect to different Azure Subscriptions

Hi @suni_thomas ,

Do you want to connect to the Azure Event Hubs connector from your PowerApps app?

 

When you create a connection to the Event Hubs connector from your PowerApps app, it requires that you need to provide a connection string (Azure Event Hubs Connection String) as below:2.JPG

The sample format of the Connection string as below:

Endpoint=sb://dummynamespace.servicebus.windows.net/;SharedAccessKeyName=DummyAccessKeyName;SharedAccessKey=5dOntTRytoC24opYThisAsit3is2B+OGY1US/fuL3ly=

The Event Hub created in your trial subscription and the Non-Prod (work) subscription of your Azure would have different connection string.

If you want to connect to the Event Hubs in your Non-Prod subscription from your app, you need to get the Connection string for the Event Hubs in your Non-Prod subscription, then re-create a new connection to the Event Hubs connector using the retrieved Connection string from your app. Then within your app, you could use the new created Event Hubs connection to connect to Event Hubs in your Non-Prod subscription.

More details about getting Connection string for the Event Hubs in your Azure, please check the following article:

https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-get-connection-string

 

More detais about the Event Hubs connector in PowerApps, please check the following article:

https://docs.microsoft.com/en-us/connectors/eventhubs/

 

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,487)