Skip to main content

Posts

Showing posts with the label Media Service

Access is Denied when submitting Task Job to Azure Media Services

When submitting Job task in Azure media service it is giving error “ Access Denied ”. ITask task = job.Tasks.AddNew( "My task" ,processor, "H264 Broadband 720p" ,TaskOptions.ProtectedConfiguration); // Specify the input asset to be encoded. task.InputAssets.Add(asset); task.OutputAssets.AddNew( "Output asset" ,AssetCreationOptions.None); // Launch the job. job.Submit(); This is the code segment I have used. This is working in my local machine but I published to Cloud Web Site it is giving access denied error. I found that the  TaskOptions.ProtectedConfiguration caused this error. When you use this option it is accessing client machine certificate store. Since running context does not have sufficient permission; causing  access denied error. So change the TaskOptions.None . it will work.

Understanding Asure Media Service Core Components

Azure media service contains few components. Lets look as abstract. You can find your existing components and there status by navigating to LINK RESOURCES in Azure Media Service. Storage Account Storage account is capable of storing media files that is uploaded to azure media service. Storage account is a Shared Resource which we can use for store other items through out the cloud. Storage Account is mapped to Cloud Storage.  You need to specify a existing account or you can create a new storage account when you are creating a Azure Media Service. Single storage unit is called as Asset in the Azure Media Service . In the same time Asset is also refer as container in the Azure Storage context . Asset / Container is a group which can contains files. When you go to Azure Media service you can view existing assets by navigating to CONTENT link in the azure. Most people misunderstand Asset and Asset files. Though media service shows a publish URL; it doesn’t mean that you c...