Microsoft.Media mediaServices/assets/assetFilters

Template format

To create a Microsoft.Media/mediaServices/assets/assetFilters resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.Media/mediaServices/assets/assetFilters",
  "apiVersion": "2020-05-01",
  "properties": {
    "presentationTimeRange": {
      "startTimestamp": "integer",
      "endTimestamp": "integer",
      "presentationWindowDuration": "integer",
      "liveBackoffDuration": "integer",
      "timescale": "integer",
      "forceEndTimestamp": "boolean"
    },
    "firstQuality": {
      "bitrate": "integer"
    },
    "tracks": [
      {
        "trackSelections": [
          {
            "property": "string",
            "value": "string",
            "operation": "string"
          }
        ]
      }
    ]
  }
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Media/mediaServices/assets/assetFilters object

Note

In Bicep, type and apiVersion are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>. Don't set those properties in the resource body.

Name Type Required Value
name string Yes The Asset Filter name
type enum Yes For JSON -assetFilters
-or-
Microsoft.Media/mediaServices/assets/assetFilters

See Set name and type for child resources.
apiVersion enum Yes For JSON - 2020-05-01
properties object Yes MediaFilterProperties object

MediaFilterProperties object

Name Type Required Value
presentationTimeRange object No The presentation time range. - PresentationTimeRange object
firstQuality object No The first quality. - FirstQuality object
tracks array No The tracks selection conditions. - FilterTrackSelection object

PresentationTimeRange object

Name Type Required Value
startTimestamp integer No The absolute start time boundary.
endTimestamp integer No The absolute end time boundary.
presentationWindowDuration integer No The relative to end sliding window.
liveBackoffDuration integer No The relative to end right edge.
timescale integer No The time scale of time stamps.
forceEndTimestamp boolean No The indicator of forcing existing of end time stamp.

FirstQuality object

Name Type Required Value
bitrate integer Yes The first quality bitrate.

FilterTrackSelection object

Name Type Required Value
trackSelections array Yes The track selections. - FilterTrackPropertyCondition object

FilterTrackPropertyCondition object

Name Type Required Value
property enum Yes The track property type. - Unknown, Type, Name, Language, FourCC, Bitrate
value string Yes The track property value.
operation enum Yes The track property condition operation. - Equal or NotEqual