NSG service tags for Azure Video Indexer
Azure Video Indexer is a service hosted on Azure. In some cases the service needs to interact with other services in order to index video files (for example, a Storage account) or when you orchestrate indexing jobs against Azure Video Indexer API endpoint using your own service hosted on Azure (for example, AKS, Web Apps, Logic Apps, Functions).
If you are already using "AzureVideoAnalyzerForMedia" Network Service Tag you may experience issues with your networking security group starting 9 January 2023. This is because we are moving to a new Security Tag label "VideoIndexer". The mitigatation is to remove the old "AzureVideoAnalyzerForMedia" tag from your configuration and deployment scripts and start using the "VideoIndexer" tag going forward.
Use Network Security Groups with Service Tags to limit access to your resources on a network level. A service tag represents a group of IP address prefixes from a given Azure service, in this case Azure Video Indexer. Microsoft manages the address prefixes grouped by the service tag and automatically updates the service tag as addresses change in our backend, minimizing the complexity of frequent updates to network security rules by the customer.
Get started with service tags
Currently we support the global service tag option for using service tags in your network security groups:
Use a single global VideoIndexer service tag: This option opens your virtual network to all IP addresses that the Azure Video Indexer service uses across all regions we offer our service. This method will allow for all IP addresses owned and used by Azure Video Indexer to reach your network resources behind the NSG.
Currently we do not support IPs allocated to our services in the Switzerland North Region. These will be added soon. If your account is located in this region you cannot use Service Tags in your NSG today since these IPs are not in the Service Tag list and will be rejected by the NSG rule.
Use a single global Azure Video Indexer service tag
The easiest way to begin using service tags with your Azure Video Indexer account is to add the global tag
VideoIndexer to an NSG rule.
- From the Azure portal, select your network security group.
- Under Settings, select Inbound security rules, and then select + Add.
- From the Source drop-down list, select Service Tag.
- From the Source service tag drop-down list, select VideoIndexer.
This tag contains the IP addresses of Azure Video Indexer services for all regions where available. The tag will ensure that your resource can communicate with the Azure Video Indexer services no matter where it's created.
Using Azure CLI
You can also use Azure CLI to create a new or update an existing NSG rule and add the VideoIndexer service tag using the
--source-address-prefixes. For a full list of CLI commands and parameters see az network nsg
Example of a security rule using service tags. For more details, visit https://aka.ms/servicetags
az network nsg rule create -g MyResourceGroup --nsg-name MyNsg -n MyNsgRuleWithTags --priority 400 --source-address-prefixes VideoIndexer --destination-address-prefixes '*' --destination-port-ranges '*' --direction Inbound --access Allow --protocol Tcp --description "Allow traffic from Video Indexer"