Media Service
A Media Services account. Uses Azure REST API version 2023-01-01. In version 2.x of the Azure Native provider, it used API version 2023-01-01. Other available API versions: 2015-10-01, 2018-03-30-preview, 2018-06-01-preview, 2018-07-01, 2020-05-01, 2021-05-01, 2021-06-01, 2021-11-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native media [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
Create a Media Services account
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var mediaService = new AzureNative.Media.MediaService("mediaService", new()
{
AccountName = "contososports",
Location = "South Central US",
ResourceGroupName = "contosorg",
StorageAccounts = new[]
{
new AzureNative.Media.Inputs.StorageAccountArgs
{
Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/teststorageaccount",
Type = AzureNative.Media.StorageAccountType.Primary,
},
},
Tags =
{
{ "key1", "value1" },
{ "key2", "value2" },
},
});
});
package main
import (
media "github.com/pulumi/pulumi-azure-native-sdk/media/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := media.NewMediaService(ctx, "mediaService", &media.MediaServiceArgs{
AccountName: pulumi.String("contososports"),
Location: pulumi.String("South Central US"),
ResourceGroupName: pulumi.String("contosorg"),
StorageAccounts: media.StorageAccountArray{
&media.StorageAccountArgs{
Id: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/teststorageaccount"),
Type: pulumi.String(media.StorageAccountTypePrimary),
},
},
Tags: pulumi.StringMap{
"key1": pulumi.String("value1"),
"key2": pulumi.String("value2"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.media.MediaService;
import com.pulumi.azurenative.media.MediaServiceArgs;
import com.pulumi.azurenative.media.inputs.StorageAccountArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var mediaService = new MediaService("mediaService", MediaServiceArgs.builder()
.accountName("contososports")
.location("South Central US")
.resourceGroupName("contosorg")
.storageAccounts(StorageAccountArgs.builder()
.id("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/teststorageaccount")
.type("Primary")
.build())
.tags(Map.ofEntries(
Map.entry("key1", "value1"),
Map.entry("key2", "value2")
))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:media:MediaService contososports /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}
Properties
The Azure API version of the resource.
The account encryption properties.
The Managed Identity for the Media Services account.
The Key Delivery properties for Media Services account.
The Media Services account ID.
The minimum TLS version allowed for this account's requests. This is an optional property. If unspecified, a secure default value will be used.
The Private Endpoint Connections created for the Media Service account.
Provisioning state of the Media Services account.
Whether or not public network access is allowed for resources under the Media Services account.
The storage accounts for this resource.
The system metadata relating to this resource.