You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Local: Make sure you're logged in with the correct Azure subscription using az login. If you have multiple subscriptions, use az account set --subscription <subscription_id> to select the right one.
App Service/Kubernetes: Use Managed Identities if possible. Make sure the Managed Identity assigned to your service has the "Video Indexer Contributor" role (or a custom role with equivalent permissions) on the Video Indexer account.
Grant permissions (RBAC): This is the core issue.
Azure portal: Go to your Video Indexer account -> Access Control (IAM) -> Add role assignment. Choose "Video Indexer Contributor" (or a custom role) and select your application as the principal. If you're using a Managed Identity, select the identity of your App Service/Kubernetes pod.
Azure CLI:
az role assignment create --role "Video Indexer Contributor" --assignee <principal_id> --scope <video_indexer_account_resource_id>
Replace <principal_id> with your app's Object ID (or Application ID if it's a service principal) and <video_indexer_account_resource_id> with your Video Indexer account's resource ID (found in the portal's Properties section).
Check your code:
Connection string: Double-check the connection string/credentials in your Python code to ensure they match the application you gave permissions to.
Authentication: Make sure the video_indexer_api_samples.ipynb notebook's authentication (likely using an Azure authentication library) is set up correctly with the right credentials or Managed Identity.
Let me know if you still run into trouble. Please share more details about your setup (how you're authenticating, the relevant code snippet) for more specific help!
Problem in the file video_indexer_api_samples.ipynb, en this line code
This error appears

Error message

what appears in the url of the error message
The text was updated successfully, but these errors were encountered: