title: How do you retrieve the provisioning token for a Edge Module using Azure Video Indexer?
body: <p>Recently Azure Video Analyzer became Azure Video Indexer. I'm trying to connect a camera to the Video Indexer using a Edge Modul in the IoT Hub. Part of the template which was designed for the Video Analyzer needs a &quot;AVA_PROVISIONING_TOKEN&quot;. I can find the api call to retrieve this when using Azure Video Analyzer:</p>
  <pre><code>POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/videoAnalyzers/{accountName}/edgeModules/{edgeModuleName}/listProvisioningToken?api-version=2021-11-01-preview
  </code></pre>
  <p>But since this service is not continued I'm not receiving any data. I tried changing it to providers/Microsoft.VideoIndexer but this is not supported by the api.</p>
  <p>The only other thing that comes close is this call:</p>
  <pre><code>GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.VideoIndexer/accounts?api-version=2022-04-13-preview
  </code></pre>
  <p>But this only retrieves the provisioning state not the actual Token.</p>
  <p>If anybody knows a workaround either with the api or the azure portal I would be very thankful.</p>
  <p>Sources:</p>
  <p><a href="https://docs.microsoft.com/en-us/rest/api/videoindexer/accounts/list" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/rest/api/videoindexer/accounts/list</a></p>
  <p><a href="https://techcommunity.microsoft.com/t5/ai-applied-ai-blog/build-intelligent-video-solutions-with-axis-cameras-and-azure/ba-p/2967607" rel="nofollow noreferrer">https://techcommunity.microsoft.com/t5/ai-applied-ai-blog/build-intelligent-video-solutions-with-axis-cameras-and-azure/ba-p/2967607</a></p>
  <p><a href="https://docs.microsoft.com/de-de/azure/azure-video-analyzer/video-analyzer-docs/edge/deploy-iot-edge-device" rel="nofollow noreferrer">https://docs.microsoft.com/de-de/azure/azure-video-analyzer/video-analyzer-docs/edge/deploy-iot-edge-device</a></p>