1. Packages
  2. Azure Classic
  3. API Docs
  4. media
  5. ServiceAccount

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.media.ServiceAccount

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Manages a Media Services Account.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "media-resources",
        location: "West Europe",
    });
    const exampleAccount = new azure.storage.Account("example", {
        name: "examplestoracc",
        resourceGroupName: example.name,
        location: example.location,
        accountTier: "Standard",
        accountReplicationType: "GRS",
    });
    const exampleServiceAccount = new azure.media.ServiceAccount("example", {
        name: "examplemediaacc",
        location: example.location,
        resourceGroupName: example.name,
        storageAccounts: [{
            id: exampleAccount.id,
            isPrimary: true,
        }],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="media-resources",
        location="West Europe")
    example_account = azure.storage.Account("example",
        name="examplestoracc",
        resource_group_name=example.name,
        location=example.location,
        account_tier="Standard",
        account_replication_type="GRS")
    example_service_account = azure.media.ServiceAccount("example",
        name="examplemediaacc",
        location=example.location,
        resource_group_name=example.name,
        storage_accounts=[azure.media.ServiceAccountStorageAccountArgs(
            id=example_account.id,
            is_primary=True,
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/media"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("media-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
    			Name:                   pulumi.String("examplestoracc"),
    			ResourceGroupName:      example.Name,
    			Location:               example.Location,
    			AccountTier:            pulumi.String("Standard"),
    			AccountReplicationType: pulumi.String("GRS"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = media.NewServiceAccount(ctx, "example", &media.ServiceAccountArgs{
    			Name:              pulumi.String("examplemediaacc"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			StorageAccounts: media.ServiceAccountStorageAccountArray{
    				&media.ServiceAccountStorageAccountArgs{
    					Id:        exampleAccount.ID(),
    					IsPrimary: pulumi.Bool(true),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "media-resources",
            Location = "West Europe",
        });
    
        var exampleAccount = new Azure.Storage.Account("example", new()
        {
            Name = "examplestoracc",
            ResourceGroupName = example.Name,
            Location = example.Location,
            AccountTier = "Standard",
            AccountReplicationType = "GRS",
        });
    
        var exampleServiceAccount = new Azure.Media.ServiceAccount("example", new()
        {
            Name = "examplemediaacc",
            Location = example.Location,
            ResourceGroupName = example.Name,
            StorageAccounts = new[]
            {
                new Azure.Media.Inputs.ServiceAccountStorageAccountArgs
                {
                    Id = exampleAccount.Id,
                    IsPrimary = true,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.storage.Account;
    import com.pulumi.azure.storage.AccountArgs;
    import com.pulumi.azure.media.ServiceAccount;
    import com.pulumi.azure.media.ServiceAccountArgs;
    import com.pulumi.azure.media.inputs.ServiceAccountStorageAccountArgs;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("media-resources")
                .location("West Europe")
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
                .name("examplestoracc")
                .resourceGroupName(example.name())
                .location(example.location())
                .accountTier("Standard")
                .accountReplicationType("GRS")
                .build());
    
            var exampleServiceAccount = new ServiceAccount("exampleServiceAccount", ServiceAccountArgs.builder()
                .name("examplemediaacc")
                .location(example.location())
                .resourceGroupName(example.name())
                .storageAccounts(ServiceAccountStorageAccountArgs.builder()
                    .id(exampleAccount.id())
                    .isPrimary(true)
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: media-resources
          location: West Europe
      exampleAccount:
        type: azure:storage:Account
        name: example
        properties:
          name: examplestoracc
          resourceGroupName: ${example.name}
          location: ${example.location}
          accountTier: Standard
          accountReplicationType: GRS
      exampleServiceAccount:
        type: azure:media:ServiceAccount
        name: example
        properties:
          name: examplemediaacc
          location: ${example.location}
          resourceGroupName: ${example.name}
          storageAccounts:
            - id: ${exampleAccount.id}
              isPrimary: true
    

    Create ServiceAccount Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ServiceAccount(name: string, args: ServiceAccountArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceAccount(resource_name: str,
                       args: ServiceAccountArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceAccount(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       resource_group_name: Optional[str] = None,
                       storage_accounts: Optional[Sequence[ServiceAccountStorageAccountArgs]] = None,
                       encryption: Optional[ServiceAccountEncryptionArgs] = None,
                       identity: Optional[ServiceAccountIdentityArgs] = None,
                       key_delivery_access_control: Optional[ServiceAccountKeyDeliveryAccessControlArgs] = None,
                       location: Optional[str] = None,
                       name: Optional[str] = None,
                       public_network_access_enabled: Optional[bool] = None,
                       storage_authentication_type: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None)
    func NewServiceAccount(ctx *Context, name string, args ServiceAccountArgs, opts ...ResourceOption) (*ServiceAccount, error)
    public ServiceAccount(string name, ServiceAccountArgs args, CustomResourceOptions? opts = null)
    public ServiceAccount(String name, ServiceAccountArgs args)
    public ServiceAccount(String name, ServiceAccountArgs args, CustomResourceOptions options)
    
    type: azure:media:ServiceAccount
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ServiceAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ServiceAccountArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ServiceAccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceAccountArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var serviceAccountResource = new Azure.Media.ServiceAccount("serviceAccountResource", new()
    {
        ResourceGroupName = "string",
        StorageAccounts = new[]
        {
            new Azure.Media.Inputs.ServiceAccountStorageAccountArgs
            {
                Id = "string",
                IsPrimary = false,
                ManagedIdentity = new Azure.Media.Inputs.ServiceAccountStorageAccountManagedIdentityArgs
                {
                    UseSystemAssignedIdentity = false,
                    UserAssignedIdentityId = "string",
                },
            },
        },
        Encryption = new Azure.Media.Inputs.ServiceAccountEncryptionArgs
        {
            CurrentKeyIdentifier = "string",
            KeyVaultKeyIdentifier = "string",
            ManagedIdentity = new Azure.Media.Inputs.ServiceAccountEncryptionManagedIdentityArgs
            {
                UseSystemAssignedIdentity = false,
                UserAssignedIdentityId = "string",
            },
            Type = "string",
        },
        Identity = new Azure.Media.Inputs.ServiceAccountIdentityArgs
        {
            Type = "string",
            IdentityIds = new[]
            {
                "string",
            },
            PrincipalId = "string",
            TenantId = "string",
        },
        KeyDeliveryAccessControl = new Azure.Media.Inputs.ServiceAccountKeyDeliveryAccessControlArgs
        {
            DefaultAction = "string",
            IpAllowLists = new[]
            {
                "string",
            },
        },
        Location = "string",
        Name = "string",
        PublicNetworkAccessEnabled = false,
        StorageAuthenticationType = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := media.NewServiceAccount(ctx, "serviceAccountResource", &media.ServiceAccountArgs{
    	ResourceGroupName: pulumi.String("string"),
    	StorageAccounts: media.ServiceAccountStorageAccountArray{
    		&media.ServiceAccountStorageAccountArgs{
    			Id:        pulumi.String("string"),
    			IsPrimary: pulumi.Bool(false),
    			ManagedIdentity: &media.ServiceAccountStorageAccountManagedIdentityArgs{
    				UseSystemAssignedIdentity: pulumi.Bool(false),
    				UserAssignedIdentityId:    pulumi.String("string"),
    			},
    		},
    	},
    	Encryption: &media.ServiceAccountEncryptionArgs{
    		CurrentKeyIdentifier:  pulumi.String("string"),
    		KeyVaultKeyIdentifier: pulumi.String("string"),
    		ManagedIdentity: &media.ServiceAccountEncryptionManagedIdentityArgs{
    			UseSystemAssignedIdentity: pulumi.Bool(false),
    			UserAssignedIdentityId:    pulumi.String("string"),
    		},
    		Type: pulumi.String("string"),
    	},
    	Identity: &media.ServiceAccountIdentityArgs{
    		Type: pulumi.String("string"),
    		IdentityIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		PrincipalId: pulumi.String("string"),
    		TenantId:    pulumi.String("string"),
    	},
    	KeyDeliveryAccessControl: &media.ServiceAccountKeyDeliveryAccessControlArgs{
    		DefaultAction: pulumi.String("string"),
    		IpAllowLists: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Location:                   pulumi.String("string"),
    	Name:                       pulumi.String("string"),
    	PublicNetworkAccessEnabled: pulumi.Bool(false),
    	StorageAuthenticationType:  pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var serviceAccountResource = new ServiceAccount("serviceAccountResource", ServiceAccountArgs.builder()
        .resourceGroupName("string")
        .storageAccounts(ServiceAccountStorageAccountArgs.builder()
            .id("string")
            .isPrimary(false)
            .managedIdentity(ServiceAccountStorageAccountManagedIdentityArgs.builder()
                .useSystemAssignedIdentity(false)
                .userAssignedIdentityId("string")
                .build())
            .build())
        .encryption(ServiceAccountEncryptionArgs.builder()
            .currentKeyIdentifier("string")
            .keyVaultKeyIdentifier("string")
            .managedIdentity(ServiceAccountEncryptionManagedIdentityArgs.builder()
                .useSystemAssignedIdentity(false)
                .userAssignedIdentityId("string")
                .build())
            .type("string")
            .build())
        .identity(ServiceAccountIdentityArgs.builder()
            .type("string")
            .identityIds("string")
            .principalId("string")
            .tenantId("string")
            .build())
        .keyDeliveryAccessControl(ServiceAccountKeyDeliveryAccessControlArgs.builder()
            .defaultAction("string")
            .ipAllowLists("string")
            .build())
        .location("string")
        .name("string")
        .publicNetworkAccessEnabled(false)
        .storageAuthenticationType("string")
        .tags(Map.of("string", "string"))
        .build());
    
    service_account_resource = azure.media.ServiceAccount("serviceAccountResource",
        resource_group_name="string",
        storage_accounts=[azure.media.ServiceAccountStorageAccountArgs(
            id="string",
            is_primary=False,
            managed_identity=azure.media.ServiceAccountStorageAccountManagedIdentityArgs(
                use_system_assigned_identity=False,
                user_assigned_identity_id="string",
            ),
        )],
        encryption=azure.media.ServiceAccountEncryptionArgs(
            current_key_identifier="string",
            key_vault_key_identifier="string",
            managed_identity=azure.media.ServiceAccountEncryptionManagedIdentityArgs(
                use_system_assigned_identity=False,
                user_assigned_identity_id="string",
            ),
            type="string",
        ),
        identity=azure.media.ServiceAccountIdentityArgs(
            type="string",
            identity_ids=["string"],
            principal_id="string",
            tenant_id="string",
        ),
        key_delivery_access_control=azure.media.ServiceAccountKeyDeliveryAccessControlArgs(
            default_action="string",
            ip_allow_lists=["string"],
        ),
        location="string",
        name="string",
        public_network_access_enabled=False,
        storage_authentication_type="string",
        tags={
            "string": "string",
        })
    
    const serviceAccountResource = new azure.media.ServiceAccount("serviceAccountResource", {
        resourceGroupName: "string",
        storageAccounts: [{
            id: "string",
            isPrimary: false,
            managedIdentity: {
                useSystemAssignedIdentity: false,
                userAssignedIdentityId: "string",
            },
        }],
        encryption: {
            currentKeyIdentifier: "string",
            keyVaultKeyIdentifier: "string",
            managedIdentity: {
                useSystemAssignedIdentity: false,
                userAssignedIdentityId: "string",
            },
            type: "string",
        },
        identity: {
            type: "string",
            identityIds: ["string"],
            principalId: "string",
            tenantId: "string",
        },
        keyDeliveryAccessControl: {
            defaultAction: "string",
            ipAllowLists: ["string"],
        },
        location: "string",
        name: "string",
        publicNetworkAccessEnabled: false,
        storageAuthenticationType: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure:media:ServiceAccount
    properties:
        encryption:
            currentKeyIdentifier: string
            keyVaultKeyIdentifier: string
            managedIdentity:
                useSystemAssignedIdentity: false
                userAssignedIdentityId: string
            type: string
        identity:
            identityIds:
                - string
            principalId: string
            tenantId: string
            type: string
        keyDeliveryAccessControl:
            defaultAction: string
            ipAllowLists:
                - string
        location: string
        name: string
        publicNetworkAccessEnabled: false
        resourceGroupName: string
        storageAccounts:
            - id: string
              isPrimary: false
              managedIdentity:
                useSystemAssignedIdentity: false
                userAssignedIdentityId: string
        storageAuthenticationType: string
        tags:
            string: string
    

    ServiceAccount Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ServiceAccount resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
    StorageAccounts List<ServiceAccountStorageAccount>
    One or more storage_account blocks as defined below.
    Encryption ServiceAccountEncryption
    An encryption block as defined below.
    Identity ServiceAccountIdentity
    An identity block as defined below.
    KeyDeliveryAccessControl ServiceAccountKeyDeliveryAccessControl
    A key_delivery_access_control block as defined below.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the Media Services Account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.
    PublicNetworkAccessEnabled bool
    Whether public network access is allowed for this server. Defaults to true.
    StorageAuthenticationType string
    Specifies the storage authentication type. Possible value is ManagedIdentity or System.
    Tags Dictionary<string, string>
    A mapping of tags assigned to the resource.
    ResourceGroupName string
    The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
    StorageAccounts []ServiceAccountStorageAccountArgs
    One or more storage_account blocks as defined below.
    Encryption ServiceAccountEncryptionArgs
    An encryption block as defined below.
    Identity ServiceAccountIdentityArgs
    An identity block as defined below.
    KeyDeliveryAccessControl ServiceAccountKeyDeliveryAccessControlArgs
    A key_delivery_access_control block as defined below.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the Media Services Account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.
    PublicNetworkAccessEnabled bool
    Whether public network access is allowed for this server. Defaults to true.
    StorageAuthenticationType string
    Specifies the storage authentication type. Possible value is ManagedIdentity or System.
    Tags map[string]string
    A mapping of tags assigned to the resource.
    resourceGroupName String
    The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
    storageAccounts List<ServiceAccountStorageAccount>
    One or more storage_account blocks as defined below.
    encryption ServiceAccountEncryption
    An encryption block as defined below.
    identity ServiceAccountIdentity
    An identity block as defined below.
    keyDeliveryAccessControl ServiceAccountKeyDeliveryAccessControl
    A key_delivery_access_control block as defined below.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    Specifies the name of the Media Services Account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.
    publicNetworkAccessEnabled Boolean
    Whether public network access is allowed for this server. Defaults to true.
    storageAuthenticationType String
    Specifies the storage authentication type. Possible value is ManagedIdentity or System.
    tags Map<String,String>
    A mapping of tags assigned to the resource.
    resourceGroupName string
    The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
    storageAccounts ServiceAccountStorageAccount[]
    One or more storage_account blocks as defined below.
    encryption ServiceAccountEncryption
    An encryption block as defined below.
    identity ServiceAccountIdentity
    An identity block as defined below.
    keyDeliveryAccessControl ServiceAccountKeyDeliveryAccessControl
    A key_delivery_access_control block as defined below.
    location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name string
    Specifies the name of the Media Services Account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.
    publicNetworkAccessEnabled boolean
    Whether public network access is allowed for this server. Defaults to true.
    storageAuthenticationType string
    Specifies the storage authentication type. Possible value is ManagedIdentity or System.
    tags {[key: string]: string}
    A mapping of tags assigned to the resource.
    resource_group_name str
    The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
    storage_accounts Sequence[ServiceAccountStorageAccountArgs]
    One or more storage_account blocks as defined below.
    encryption ServiceAccountEncryptionArgs
    An encryption block as defined below.
    identity ServiceAccountIdentityArgs
    An identity block as defined below.
    key_delivery_access_control ServiceAccountKeyDeliveryAccessControlArgs
    A key_delivery_access_control block as defined below.
    location str
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name str
    Specifies the name of the Media Services Account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.
    public_network_access_enabled bool
    Whether public network access is allowed for this server. Defaults to true.
    storage_authentication_type str
    Specifies the storage authentication type. Possible value is ManagedIdentity or System.
    tags Mapping[str, str]
    A mapping of tags assigned to the resource.
    resourceGroupName String
    The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
    storageAccounts List<Property Map>
    One or more storage_account blocks as defined below.
    encryption Property Map
    An encryption block as defined below.
    identity Property Map
    An identity block as defined below.
    keyDeliveryAccessControl Property Map
    A key_delivery_access_control block as defined below.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    Specifies the name of the Media Services Account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.
    publicNetworkAccessEnabled Boolean
    Whether public network access is allowed for this server. Defaults to true.
    storageAuthenticationType String
    Specifies the storage authentication type. Possible value is ManagedIdentity or System.
    tags Map<String>
    A mapping of tags assigned to the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServiceAccount resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ServiceAccount Resource

    Get an existing ServiceAccount resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ServiceAccountState, opts?: CustomResourceOptions): ServiceAccount
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            encryption: Optional[ServiceAccountEncryptionArgs] = None,
            identity: Optional[ServiceAccountIdentityArgs] = None,
            key_delivery_access_control: Optional[ServiceAccountKeyDeliveryAccessControlArgs] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            public_network_access_enabled: Optional[bool] = None,
            resource_group_name: Optional[str] = None,
            storage_accounts: Optional[Sequence[ServiceAccountStorageAccountArgs]] = None,
            storage_authentication_type: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> ServiceAccount
    func GetServiceAccount(ctx *Context, name string, id IDInput, state *ServiceAccountState, opts ...ResourceOption) (*ServiceAccount, error)
    public static ServiceAccount Get(string name, Input<string> id, ServiceAccountState? state, CustomResourceOptions? opts = null)
    public static ServiceAccount get(String name, Output<String> id, ServiceAccountState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Encryption ServiceAccountEncryption
    An encryption block as defined below.
    Identity ServiceAccountIdentity
    An identity block as defined below.
    KeyDeliveryAccessControl ServiceAccountKeyDeliveryAccessControl
    A key_delivery_access_control block as defined below.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the Media Services Account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.
    PublicNetworkAccessEnabled bool
    Whether public network access is allowed for this server. Defaults to true.
    ResourceGroupName string
    The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
    StorageAccounts List<ServiceAccountStorageAccount>
    One or more storage_account blocks as defined below.
    StorageAuthenticationType string
    Specifies the storage authentication type. Possible value is ManagedIdentity or System.
    Tags Dictionary<string, string>
    A mapping of tags assigned to the resource.
    Encryption ServiceAccountEncryptionArgs
    An encryption block as defined below.
    Identity ServiceAccountIdentityArgs
    An identity block as defined below.
    KeyDeliveryAccessControl ServiceAccountKeyDeliveryAccessControlArgs
    A key_delivery_access_control block as defined below.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the Media Services Account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.
    PublicNetworkAccessEnabled bool
    Whether public network access is allowed for this server. Defaults to true.
    ResourceGroupName string
    The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
    StorageAccounts []ServiceAccountStorageAccountArgs
    One or more storage_account blocks as defined below.
    StorageAuthenticationType string
    Specifies the storage authentication type. Possible value is ManagedIdentity or System.
    Tags map[string]string
    A mapping of tags assigned to the resource.
    encryption ServiceAccountEncryption
    An encryption block as defined below.
    identity ServiceAccountIdentity
    An identity block as defined below.
    keyDeliveryAccessControl ServiceAccountKeyDeliveryAccessControl
    A key_delivery_access_control block as defined below.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    Specifies the name of the Media Services Account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.
    publicNetworkAccessEnabled Boolean
    Whether public network access is allowed for this server. Defaults to true.
    resourceGroupName String
    The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
    storageAccounts List<ServiceAccountStorageAccount>
    One or more storage_account blocks as defined below.
    storageAuthenticationType String
    Specifies the storage authentication type. Possible value is ManagedIdentity or System.
    tags Map<String,String>
    A mapping of tags assigned to the resource.
    encryption ServiceAccountEncryption
    An encryption block as defined below.
    identity ServiceAccountIdentity
    An identity block as defined below.
    keyDeliveryAccessControl ServiceAccountKeyDeliveryAccessControl
    A key_delivery_access_control block as defined below.
    location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name string
    Specifies the name of the Media Services Account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.
    publicNetworkAccessEnabled boolean
    Whether public network access is allowed for this server. Defaults to true.
    resourceGroupName string
    The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
    storageAccounts ServiceAccountStorageAccount[]
    One or more storage_account blocks as defined below.
    storageAuthenticationType string
    Specifies the storage authentication type. Possible value is ManagedIdentity or System.
    tags {[key: string]: string}
    A mapping of tags assigned to the resource.
    encryption ServiceAccountEncryptionArgs
    An encryption block as defined below.
    identity ServiceAccountIdentityArgs
    An identity block as defined below.
    key_delivery_access_control ServiceAccountKeyDeliveryAccessControlArgs
    A key_delivery_access_control block as defined below.
    location str
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name str
    Specifies the name of the Media Services Account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.
    public_network_access_enabled bool
    Whether public network access is allowed for this server. Defaults to true.
    resource_group_name str
    The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
    storage_accounts Sequence[ServiceAccountStorageAccountArgs]
    One or more storage_account blocks as defined below.
    storage_authentication_type str
    Specifies the storage authentication type. Possible value is ManagedIdentity or System.
    tags Mapping[str, str]
    A mapping of tags assigned to the resource.
    encryption Property Map
    An encryption block as defined below.
    identity Property Map
    An identity block as defined below.
    keyDeliveryAccessControl Property Map
    A key_delivery_access_control block as defined below.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    Specifies the name of the Media Services Account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.
    publicNetworkAccessEnabled Boolean
    Whether public network access is allowed for this server. Defaults to true.
    resourceGroupName String
    The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
    storageAccounts List<Property Map>
    One or more storage_account blocks as defined below.
    storageAuthenticationType String
    Specifies the storage authentication type. Possible value is ManagedIdentity or System.
    tags Map<String>
    A mapping of tags assigned to the resource.

    Supporting Types

    ServiceAccountEncryption, ServiceAccountEncryptionArgs

    CurrentKeyIdentifier string
    The current key used to encrypt the Media Services Account, including the key version.
    KeyVaultKeyIdentifier string
    Specifies the URI of the Key Vault Key used to encrypt data. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey).
    ManagedIdentity ServiceAccountEncryptionManagedIdentity
    A managed_identity block as defined below.
    Type string
    Specifies the type of key used to encrypt the account data. Possible values are SystemKey and CustomerKey. Defaults to SystemKey.
    CurrentKeyIdentifier string
    The current key used to encrypt the Media Services Account, including the key version.
    KeyVaultKeyIdentifier string
    Specifies the URI of the Key Vault Key used to encrypt data. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey).
    ManagedIdentity ServiceAccountEncryptionManagedIdentity
    A managed_identity block as defined below.
    Type string
    Specifies the type of key used to encrypt the account data. Possible values are SystemKey and CustomerKey. Defaults to SystemKey.
    currentKeyIdentifier String
    The current key used to encrypt the Media Services Account, including the key version.
    keyVaultKeyIdentifier String
    Specifies the URI of the Key Vault Key used to encrypt data. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey).
    managedIdentity ServiceAccountEncryptionManagedIdentity
    A managed_identity block as defined below.
    type String
    Specifies the type of key used to encrypt the account data. Possible values are SystemKey and CustomerKey. Defaults to SystemKey.
    currentKeyIdentifier string
    The current key used to encrypt the Media Services Account, including the key version.
    keyVaultKeyIdentifier string
    Specifies the URI of the Key Vault Key used to encrypt data. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey).
    managedIdentity ServiceAccountEncryptionManagedIdentity
    A managed_identity block as defined below.
    type string
    Specifies the type of key used to encrypt the account data. Possible values are SystemKey and CustomerKey. Defaults to SystemKey.
    current_key_identifier str
    The current key used to encrypt the Media Services Account, including the key version.
    key_vault_key_identifier str
    Specifies the URI of the Key Vault Key used to encrypt data. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey).
    managed_identity ServiceAccountEncryptionManagedIdentity
    A managed_identity block as defined below.
    type str
    Specifies the type of key used to encrypt the account data. Possible values are SystemKey and CustomerKey. Defaults to SystemKey.
    currentKeyIdentifier String
    The current key used to encrypt the Media Services Account, including the key version.
    keyVaultKeyIdentifier String
    Specifies the URI of the Key Vault Key used to encrypt data. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey).
    managedIdentity Property Map
    A managed_identity block as defined below.
    type String
    Specifies the type of key used to encrypt the account data. Possible values are SystemKey and CustomerKey. Defaults to SystemKey.

    ServiceAccountEncryptionManagedIdentity, ServiceAccountEncryptionManagedIdentityArgs

    UseSystemAssignedIdentity bool
    Whether to use System Assigned Identity. Possible Values are true and false.
    UserAssignedIdentityId string
    The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
    UseSystemAssignedIdentity bool
    Whether to use System Assigned Identity. Possible Values are true and false.
    UserAssignedIdentityId string
    The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
    useSystemAssignedIdentity Boolean
    Whether to use System Assigned Identity. Possible Values are true and false.
    userAssignedIdentityId String
    The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
    useSystemAssignedIdentity boolean
    Whether to use System Assigned Identity. Possible Values are true and false.
    userAssignedIdentityId string
    The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
    use_system_assigned_identity bool
    Whether to use System Assigned Identity. Possible Values are true and false.
    user_assigned_identity_id str
    The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
    useSystemAssignedIdentity Boolean
    Whether to use System Assigned Identity. Possible Values are true and false.
    userAssignedIdentityId String
    The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false

    ServiceAccountIdentity, ServiceAccountIdentityArgs

    Type string
    Specifies the type of Managed Service Identity that should be configured on this Media Services Account. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).
    IdentityIds List<string>
    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Media Services Account.
    PrincipalId string
    The Principal ID associated with this Managed Service Identity.
    TenantId string
    The Tenant ID associated with this Managed Service Identity.
    Type string
    Specifies the type of Managed Service Identity that should be configured on this Media Services Account. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).
    IdentityIds []string
    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Media Services Account.
    PrincipalId string
    The Principal ID associated with this Managed Service Identity.
    TenantId string
    The Tenant ID associated with this Managed Service Identity.
    type String
    Specifies the type of Managed Service Identity that should be configured on this Media Services Account. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).
    identityIds List<String>
    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Media Services Account.
    principalId String
    The Principal ID associated with this Managed Service Identity.
    tenantId String
    The Tenant ID associated with this Managed Service Identity.
    type string
    Specifies the type of Managed Service Identity that should be configured on this Media Services Account. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).
    identityIds string[]
    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Media Services Account.
    principalId string
    The Principal ID associated with this Managed Service Identity.
    tenantId string
    The Tenant ID associated with this Managed Service Identity.
    type str
    Specifies the type of Managed Service Identity that should be configured on this Media Services Account. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).
    identity_ids Sequence[str]
    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Media Services Account.
    principal_id str
    The Principal ID associated with this Managed Service Identity.
    tenant_id str
    The Tenant ID associated with this Managed Service Identity.
    type String
    Specifies the type of Managed Service Identity that should be configured on this Media Services Account. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).
    identityIds List<String>
    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Media Services Account.
    principalId String
    The Principal ID associated with this Managed Service Identity.
    tenantId String
    The Tenant ID associated with this Managed Service Identity.

    ServiceAccountKeyDeliveryAccessControl, ServiceAccountKeyDeliveryAccessControlArgs

    DefaultAction string
    The Default Action to use when no rules match from ip_allow_list. Possible values are Allow and Deny.
    IpAllowLists List<string>
    One or more IP Addresses, or CIDR Blocks which should be able to access the Key Delivery.
    DefaultAction string
    The Default Action to use when no rules match from ip_allow_list. Possible values are Allow and Deny.
    IpAllowLists []string
    One or more IP Addresses, or CIDR Blocks which should be able to access the Key Delivery.
    defaultAction String
    The Default Action to use when no rules match from ip_allow_list. Possible values are Allow and Deny.
    ipAllowLists List<String>
    One or more IP Addresses, or CIDR Blocks which should be able to access the Key Delivery.
    defaultAction string
    The Default Action to use when no rules match from ip_allow_list. Possible values are Allow and Deny.
    ipAllowLists string[]
    One or more IP Addresses, or CIDR Blocks which should be able to access the Key Delivery.
    default_action str
    The Default Action to use when no rules match from ip_allow_list. Possible values are Allow and Deny.
    ip_allow_lists Sequence[str]
    One or more IP Addresses, or CIDR Blocks which should be able to access the Key Delivery.
    defaultAction String
    The Default Action to use when no rules match from ip_allow_list. Possible values are Allow and Deny.
    ipAllowLists List<String>
    One or more IP Addresses, or CIDR Blocks which should be able to access the Key Delivery.

    ServiceAccountStorageAccount, ServiceAccountStorageAccountArgs

    Id string
    Specifies the ID of the Storage Account that will be associated with the Media Services instance.
    IsPrimary bool

    Specifies whether the storage account should be the primary account or not. Defaults to false.

    NOTE: Whilst multiple storage_account blocks can be specified - one of them must be set to the primary

    ManagedIdentity ServiceAccountStorageAccountManagedIdentity
    A managed_identity block as defined below.
    Id string
    Specifies the ID of the Storage Account that will be associated with the Media Services instance.
    IsPrimary bool

    Specifies whether the storage account should be the primary account or not. Defaults to false.

    NOTE: Whilst multiple storage_account blocks can be specified - one of them must be set to the primary

    ManagedIdentity ServiceAccountStorageAccountManagedIdentity
    A managed_identity block as defined below.
    id String
    Specifies the ID of the Storage Account that will be associated with the Media Services instance.
    isPrimary Boolean

    Specifies whether the storage account should be the primary account or not. Defaults to false.

    NOTE: Whilst multiple storage_account blocks can be specified - one of them must be set to the primary

    managedIdentity ServiceAccountStorageAccountManagedIdentity
    A managed_identity block as defined below.
    id string
    Specifies the ID of the Storage Account that will be associated with the Media Services instance.
    isPrimary boolean

    Specifies whether the storage account should be the primary account or not. Defaults to false.

    NOTE: Whilst multiple storage_account blocks can be specified - one of them must be set to the primary

    managedIdentity ServiceAccountStorageAccountManagedIdentity
    A managed_identity block as defined below.
    id str
    Specifies the ID of the Storage Account that will be associated with the Media Services instance.
    is_primary bool

    Specifies whether the storage account should be the primary account or not. Defaults to false.

    NOTE: Whilst multiple storage_account blocks can be specified - one of them must be set to the primary

    managed_identity ServiceAccountStorageAccountManagedIdentity
    A managed_identity block as defined below.
    id String
    Specifies the ID of the Storage Account that will be associated with the Media Services instance.
    isPrimary Boolean

    Specifies whether the storage account should be the primary account or not. Defaults to false.

    NOTE: Whilst multiple storage_account blocks can be specified - one of them must be set to the primary

    managedIdentity Property Map
    A managed_identity block as defined below.

    ServiceAccountStorageAccountManagedIdentity, ServiceAccountStorageAccountManagedIdentityArgs

    UseSystemAssignedIdentity bool
    Whether to use System Assigned Identity. Possible Values are true and false.
    UserAssignedIdentityId string
    The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
    UseSystemAssignedIdentity bool
    Whether to use System Assigned Identity. Possible Values are true and false.
    UserAssignedIdentityId string
    The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
    useSystemAssignedIdentity Boolean
    Whether to use System Assigned Identity. Possible Values are true and false.
    userAssignedIdentityId String
    The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
    useSystemAssignedIdentity boolean
    Whether to use System Assigned Identity. Possible Values are true and false.
    userAssignedIdentityId string
    The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
    use_system_assigned_identity bool
    Whether to use System Assigned Identity. Possible Values are true and false.
    user_assigned_identity_id str
    The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
    useSystemAssignedIdentity Boolean
    Whether to use System Assigned Identity. Possible Values are true and false.
    userAssignedIdentityId String
    The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false

    Import

    Media Services Accounts can be imported using the resource id, e.g.

    $ pulumi import azure:media/serviceAccount:ServiceAccount account /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Media/mediaServices/account1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi