Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
I denne artikel beskrives det, hvordan du henter hændelser fra en Azure IoT-hub til en realtidshub.
Prerequisites
- Adgang til et arbejdsområde i Fabric-kapacitetslicenstilstand (eller) prøvelicenstilstand med bidragydertilladelser eller højere tilladelser.
- Opret en Azure IoT-hub , hvis du ikke har en.
- Du skal have tilladelse til at hente IoT-hubbens adgangsnøgler. IoT-hubben skal være offentligt tilgængelig og ikke bag en firewall eller være sikret i et virtuelt netværk.
Hent begivenheder fra en Azure IoT-hub
Du kan hente begivenheder fra en Azure IoT-hub til realtidshub på en af følgende måder:
Siden Datakilder
Sign in to Microsoft Fabric.
If you see Power BI at the bottom-left of the page, switch to the Fabric workload by selecting Power BI and then by selecting Fabric.
Select Real-Time on the left navigation bar.
On the Real-Time hub page, select + Data sources under Connect to on the left navigation menu.
You can also get to the Data sources page from the Real-Time hub page by selecting the + Add data button in the top-right corner.
On the Data sources page, select Microsoft sources category at the top, and then select Connect on the Azure IoT Hub tile.
Følg nu vejledningen i afsnittet Opret forbindelse til en Azure iot-hub .
Siden Microsoft-kilder
In Real-Time hub, select Microsoft sources. Du kan bruge søgefeltet til at skrive ressourcenavnet eller bruge filtre (kilde, abonnement, ressourcegruppe, område) til at søge efter din ressource.
In the Source drop-down list, select Azure IoT Hub.
For Subscription, select an Azure subscription that has the resource group with your IoT hub.
For Resource group, select a resource group that has your IoT hub.
For Region, select a location where your IoT hub is located.
Now, move the mouse over the name of the IoT hub that you want to connect to Real-Time hub in the list of IoT hubs, and select the Connect button, or select ... (ellipsis), and then select Connect data source.
Opret forbindelse til en Azure iot-hub
On the Connect page, select New connection.
If there's an existing connection to your Azure iot hub, you select that existing connection as shown in the following image, and then move on to the step to configure the data format.
In the Connection settings section, for IoT Hub, specify the name of your Azure IoT hub.
In the Connection credentials section, do these steps:
Hvis der er en eksisterende forbindelse, skal du vælge den på rullelisten. Hvis ikke, skal du bekræfte, at Opret ny forbindelse er valgt for denne indstilling.
For Connection name, enter a name for the connection to the IoT hub.
For Authentication method, confirm that Shared Access Key is selected.
Angiv navnet på den delte adgangsnøgle for Navn på delt adgangsnøgle.
Angiv værdien for den delte adgangsnøgle for Delt adgangsnøgle.
Select Connect at the bottom of the page.
Now, on the Connect page of wizard, for Consumer group, enter the name of the consumer group. Er som standard
$Defaultvalgt, som er standardforbrugergruppen for IoT-hubben.For Data format, select a data format of the incoming real-time events that you want to get from your Azure IoT hub. Du kan vælge mellem JSON-, Avro- og CSV-dataformater og derefter vælge Opret forbindelse.
In the Stream details section to the right, select the Fabric workspace where you want to save the eventstream that the Wizard is going to create.
For eventstream name, enter a name for the eventstream. Guiden opretter en hændelsesstream med den valgte Azure IoT-hub som kilde.
The Stream name is automatically generated for you by appending -stream to the name of the eventstream. Du kan se denne stream på siden Alle datastrømme i realtid og på siden Mine datastrømme, når guiden er færdig.
Select Next at the bottom of the page.
Gennemse indstillingerne på siden Gennemse + opret forbindelse , og vælg Opret forbindelse.
Få vist oplysninger om datastream
Hvis du vælger Open eventstream på siden Gennemse + opret forbindelse, åbner guiden eventstream med den valgte Azure IoT-hub som en kilde. To close the wizard, select Finish at the bottom of the page.
Du bør kunne se streamen i afsnittet Seneste streamingdata på startsiden forReal-Time hub . Du kan finde detaljerede trin under Få vist detaljer om datastrømme i Fabric Real-Time-hubben.
Related content
Du kan få mere at vide om brug af datastrømme i følgende artikler: