Media Service - Update

Updates a Media Service.

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}?api-version={api-version}

URI Parameters

Name In Required Type Description
subscriptionId
path True
  • string

The unique identifier for a Microsoft Azure subscription.

resourceGroupName
path True
  • string

Name of the resource group within the Azure subscription.

mediaServiceName
path True
  • string

Name of the Media Service.

Regex pattern: ^[a-z0-9]{3,24}$

api-version
query True
  • string

Version of the API to be used with the client request. The current version is 2015-10-01.

Request Body

Name Required Type Description
location
  • string

The geographic location of the resource. This must be one of the supported and registered Azure Geo Regions (for example, West US, East US, Southeast Asia, and so forth).

storageAccounts

The storage accounts for this resource.

tags
  • <string, string>

Tags to help categorize the resource in the Azure portal.

Responses

Name Type Description
200 OK

Success. The Media Services account was updated.

Other Status Codes

Update Media Services failed.

Examples

MediaServiceUpdate

Sample Request

PATCH https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosmedia?api-version=2015-10-01
{
  "location": "West US",
  "properties": {
    "storageAccounts": [
      {
        "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore",
        "isPrimary": true
      }
    ]
  }
}

Sample Response

{
  "location": "West US",
  "properties": {
    "storageAccounts": [
      {
        "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore",
        "isPrimary": true
      }
    ]
  }
}

Definitions

ApiEndpoint

The properties for a Media Services REST API endpoint.

ApiError
MediaService
StorageAccount

The properties of a storage account associated with this resource.

The properties for a Media Services REST API endpoint.

Name Type Description
endpoint
  • string

The Media Services REST endpoint.

majorVersion
  • string

The version of Media Services REST API.

Name Type Description
code
  • string

Error code.

message
  • string

Error message.

Name Type Description
apiEndpoints

Read-only property that lists the Media Services REST API endpoints for this resource. If supplied on a PUT or PATCH, the value will be ignored.

id
  • string

The id of the resource.

location
  • string

The geographic location of the resource. This must be one of the supported and registered Azure Geo Regions (for example, West US, East US, Southeast Asia, and so forth).

name
  • string

The name of the resource.

storageAccounts

The storage accounts for this resource.

tags
  • <string, string>

Tags to help categorize the resource in the Azure portal.

type
  • string

The type of the resource

The properties of a storage account associated with this resource.

Name Type Description
id
  • string

The id of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts (isPrimary false).

isPrimary
  • boolean

Is this storage account resource the primary storage account for the Media Service resource. Blob only storage must set this to false.