1. Packages
  2. Azure Native
  3. API Docs
  4. cognitiveservices
  5. RaiTopic
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.10.1 published on Friday, Nov 7, 2025 by Pulumi
azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.10.1 published on Friday, Nov 7, 2025 by Pulumi

    Cognitive Services Rai Topic.

    Uses Azure REST API version 2025-07-01-preview.

    Other available API versions: 2025-09-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native cognitiveservices [ApiVersion]. See the version guide for details.

    Example Usage

    PutRaiTopic

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var raiTopic = new AzureNative.CognitiveServices.RaiTopic("raiTopic", new()
        {
            AccountName = "accountName",
            Properties = new AzureNative.CognitiveServices.Inputs.RaiTopicPropertiesArgs
            {
                Description = "This is a sample topic.",
                SampleBlobUrl = "https://example.blob.core.windows.net/sampleblob",
                TopicName = "raiTopicName",
            },
            RaiTopicName = "raiTopicName",
            ResourceGroupName = "resourceGroupName",
        });
    
    });
    
    package main
    
    import (
    	cognitiveservices "github.com/pulumi/pulumi-azure-native-sdk/cognitiveservices/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cognitiveservices.NewRaiTopic(ctx, "raiTopic", &cognitiveservices.RaiTopicArgs{
    			AccountName: pulumi.String("accountName"),
    			Properties: &cognitiveservices.RaiTopicPropertiesArgs{
    				Description:   pulumi.String("This is a sample topic."),
    				SampleBlobUrl: pulumi.String("https://example.blob.core.windows.net/sampleblob"),
    				TopicName:     pulumi.String("raiTopicName"),
    			},
    			RaiTopicName:      pulumi.String("raiTopicName"),
    			ResourceGroupName: pulumi.String("resourceGroupName"),
    		})
    		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.cognitiveservices.RaiTopic;
    import com.pulumi.azurenative.cognitiveservices.RaiTopicArgs;
    import com.pulumi.azurenative.cognitiveservices.inputs.RaiTopicPropertiesArgs;
    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 raiTopic = new RaiTopic("raiTopic", RaiTopicArgs.builder()
                .accountName("accountName")
                .properties(RaiTopicPropertiesArgs.builder()
                    .description("This is a sample topic.")
                    .sampleBlobUrl("https://example.blob.core.windows.net/sampleblob")
                    .topicName("raiTopicName")
                    .build())
                .raiTopicName("raiTopicName")
                .resourceGroupName("resourceGroupName")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const raiTopic = new azure_native.cognitiveservices.RaiTopic("raiTopic", {
        accountName: "accountName",
        properties: {
            description: "This is a sample topic.",
            sampleBlobUrl: "https://example.blob.core.windows.net/sampleblob",
            topicName: "raiTopicName",
        },
        raiTopicName: "raiTopicName",
        resourceGroupName: "resourceGroupName",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    rai_topic = azure_native.cognitiveservices.RaiTopic("raiTopic",
        account_name="accountName",
        properties={
            "description": "This is a sample topic.",
            "sample_blob_url": "https://example.blob.core.windows.net/sampleblob",
            "topic_name": "raiTopicName",
        },
        rai_topic_name="raiTopicName",
        resource_group_name="resourceGroupName")
    
    resources:
      raiTopic:
        type: azure-native:cognitiveservices:RaiTopic
        properties:
          accountName: accountName
          properties:
            description: This is a sample topic.
            sampleBlobUrl: https://example.blob.core.windows.net/sampleblob
            topicName: raiTopicName
          raiTopicName: raiTopicName
          resourceGroupName: resourceGroupName
    

    Create RaiTopic Resource

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

    Constructor syntax

    new RaiTopic(name: string, args: RaiTopicArgs, opts?: CustomResourceOptions);
    @overload
    def RaiTopic(resource_name: str,
                 args: RaiTopicArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def RaiTopic(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 account_name: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 properties: Optional[RaiTopicPropertiesArgs] = None,
                 rai_topic_name: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = None)
    func NewRaiTopic(ctx *Context, name string, args RaiTopicArgs, opts ...ResourceOption) (*RaiTopic, error)
    public RaiTopic(string name, RaiTopicArgs args, CustomResourceOptions? opts = null)
    public RaiTopic(String name, RaiTopicArgs args)
    public RaiTopic(String name, RaiTopicArgs args, CustomResourceOptions options)
    
    type: azure-native:cognitiveservices:RaiTopic
    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 RaiTopicArgs
    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 RaiTopicArgs
    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 RaiTopicArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RaiTopicArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RaiTopicArgs
    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 raiTopicResource = new AzureNative.CognitiveServices.RaiTopic("raiTopicResource", new()
    {
        AccountName = "string",
        ResourceGroupName = "string",
        Properties = new AzureNative.CognitiveServices.Inputs.RaiTopicPropertiesArgs
        {
            CreatedAt = "string",
            Description = "string",
            FailedReason = "string",
            LastModifiedAt = "string",
            SampleBlobUrl = "string",
            Status = "string",
            TopicId = "string",
            TopicName = "string",
        },
        RaiTopicName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := cognitiveservices.NewRaiTopic(ctx, "raiTopicResource", &cognitiveservices.RaiTopicArgs{
    	AccountName:       pulumi.String("string"),
    	ResourceGroupName: pulumi.String("string"),
    	Properties: &cognitiveservices.RaiTopicPropertiesArgs{
    		CreatedAt:      pulumi.String("string"),
    		Description:    pulumi.String("string"),
    		FailedReason:   pulumi.String("string"),
    		LastModifiedAt: pulumi.String("string"),
    		SampleBlobUrl:  pulumi.String("string"),
    		Status:         pulumi.String("string"),
    		TopicId:        pulumi.String("string"),
    		TopicName:      pulumi.String("string"),
    	},
    	RaiTopicName: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var raiTopicResource = new RaiTopic("raiTopicResource", RaiTopicArgs.builder()
        .accountName("string")
        .resourceGroupName("string")
        .properties(RaiTopicPropertiesArgs.builder()
            .createdAt("string")
            .description("string")
            .failedReason("string")
            .lastModifiedAt("string")
            .sampleBlobUrl("string")
            .status("string")
            .topicId("string")
            .topicName("string")
            .build())
        .raiTopicName("string")
        .tags(Map.of("string", "string"))
        .build());
    
    rai_topic_resource = azure_native.cognitiveservices.RaiTopic("raiTopicResource",
        account_name="string",
        resource_group_name="string",
        properties={
            "created_at": "string",
            "description": "string",
            "failed_reason": "string",
            "last_modified_at": "string",
            "sample_blob_url": "string",
            "status": "string",
            "topic_id": "string",
            "topic_name": "string",
        },
        rai_topic_name="string",
        tags={
            "string": "string",
        })
    
    const raiTopicResource = new azure_native.cognitiveservices.RaiTopic("raiTopicResource", {
        accountName: "string",
        resourceGroupName: "string",
        properties: {
            createdAt: "string",
            description: "string",
            failedReason: "string",
            lastModifiedAt: "string",
            sampleBlobUrl: "string",
            status: "string",
            topicId: "string",
            topicName: "string",
        },
        raiTopicName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:cognitiveservices:RaiTopic
    properties:
        accountName: string
        properties:
            createdAt: string
            description: string
            failedReason: string
            lastModifiedAt: string
            sampleBlobUrl: string
            status: string
            topicId: string
            topicName: string
        raiTopicName: string
        resourceGroupName: string
        tags:
            string: string
    

    RaiTopic Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RaiTopic resource accepts the following input properties:

    AccountName string
    The name of Cognitive Services account.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Properties Pulumi.AzureNative.CognitiveServices.Inputs.RaiTopicProperties
    Properties of Cognitive Services Rai Topic.
    RaiTopicName string
    The name of the Rai Topic associated with the Cognitive Services Account
    Tags Dictionary<string, string>
    Resource tags.
    AccountName string
    The name of Cognitive Services account.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Properties RaiTopicPropertiesArgs
    Properties of Cognitive Services Rai Topic.
    RaiTopicName string
    The name of the Rai Topic associated with the Cognitive Services Account
    Tags map[string]string
    Resource tags.
    accountName String
    The name of Cognitive Services account.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    properties RaiTopicProperties
    Properties of Cognitive Services Rai Topic.
    raiTopicName String
    The name of the Rai Topic associated with the Cognitive Services Account
    tags Map<String,String>
    Resource tags.
    accountName string
    The name of Cognitive Services account.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    properties RaiTopicProperties
    Properties of Cognitive Services Rai Topic.
    raiTopicName string
    The name of the Rai Topic associated with the Cognitive Services Account
    tags {[key: string]: string}
    Resource tags.
    account_name str
    The name of Cognitive Services account.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    properties RaiTopicPropertiesArgs
    Properties of Cognitive Services Rai Topic.
    rai_topic_name str
    The name of the Rai Topic associated with the Cognitive Services Account
    tags Mapping[str, str]
    Resource tags.
    accountName String
    The name of Cognitive Services account.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    properties Property Map
    Properties of Cognitive Services Rai Topic.
    raiTopicName String
    The name of the Rai Topic associated with the Cognitive Services Account
    tags Map<String>
    Resource tags.

    Outputs

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

    AzureApiVersion string
    The Azure API version of the resource.
    Etag string
    Resource Etag.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.CognitiveServices.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AzureApiVersion string
    The Azure API version of the resource.
    Etag string
    Resource Etag.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    etag String
    Resource Etag.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion string
    The Azure API version of the resource.
    etag string
    Resource Etag.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version str
    The Azure API version of the resource.
    etag str
    Resource Etag.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    etag String
    Resource Etag.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    RaiTopicProperties, RaiTopicPropertiesArgs

    RAI Custom Topic properties.
    CreatedAt string
    Creation time of the custom topic.
    Description string
    Description of the custom topic.
    FailedReason string
    Failed reason if the status is Failed.
    LastModifiedAt string
    Last modified time of the custom topic.
    SampleBlobUrl string
    Sample blob url for the custom topic.
    Status string
    Status of the custom topic.
    TopicId string
    The unique identifier of the custom topic.
    TopicName string
    The name of the custom topic.
    CreatedAt string
    Creation time of the custom topic.
    Description string
    Description of the custom topic.
    FailedReason string
    Failed reason if the status is Failed.
    LastModifiedAt string
    Last modified time of the custom topic.
    SampleBlobUrl string
    Sample blob url for the custom topic.
    Status string
    Status of the custom topic.
    TopicId string
    The unique identifier of the custom topic.
    TopicName string
    The name of the custom topic.
    createdAt String
    Creation time of the custom topic.
    description String
    Description of the custom topic.
    failedReason String
    Failed reason if the status is Failed.
    lastModifiedAt String
    Last modified time of the custom topic.
    sampleBlobUrl String
    Sample blob url for the custom topic.
    status String
    Status of the custom topic.
    topicId String
    The unique identifier of the custom topic.
    topicName String
    The name of the custom topic.
    createdAt string
    Creation time of the custom topic.
    description string
    Description of the custom topic.
    failedReason string
    Failed reason if the status is Failed.
    lastModifiedAt string
    Last modified time of the custom topic.
    sampleBlobUrl string
    Sample blob url for the custom topic.
    status string
    Status of the custom topic.
    topicId string
    The unique identifier of the custom topic.
    topicName string
    The name of the custom topic.
    created_at str
    Creation time of the custom topic.
    description str
    Description of the custom topic.
    failed_reason str
    Failed reason if the status is Failed.
    last_modified_at str
    Last modified time of the custom topic.
    sample_blob_url str
    Sample blob url for the custom topic.
    status str
    Status of the custom topic.
    topic_id str
    The unique identifier of the custom topic.
    topic_name str
    The name of the custom topic.
    createdAt String
    Creation time of the custom topic.
    description String
    Description of the custom topic.
    failedReason String
    Failed reason if the status is Failed.
    lastModifiedAt String
    Last modified time of the custom topic.
    sampleBlobUrl String
    Sample blob url for the custom topic.
    status String
    Status of the custom topic.
    topicId String
    The unique identifier of the custom topic.
    topicName String
    The name of the custom topic.

    RaiTopicPropertiesResponse, RaiTopicPropertiesResponseArgs

    RAI Custom Topic properties.
    CreatedAt string
    Creation time of the custom topic.
    Description string
    Description of the custom topic.
    FailedReason string
    Failed reason if the status is Failed.
    LastModifiedAt string
    Last modified time of the custom topic.
    SampleBlobUrl string
    Sample blob url for the custom topic.
    Status string
    Status of the custom topic.
    TopicId string
    The unique identifier of the custom topic.
    TopicName string
    The name of the custom topic.
    CreatedAt string
    Creation time of the custom topic.
    Description string
    Description of the custom topic.
    FailedReason string
    Failed reason if the status is Failed.
    LastModifiedAt string
    Last modified time of the custom topic.
    SampleBlobUrl string
    Sample blob url for the custom topic.
    Status string
    Status of the custom topic.
    TopicId string
    The unique identifier of the custom topic.
    TopicName string
    The name of the custom topic.
    createdAt String
    Creation time of the custom topic.
    description String
    Description of the custom topic.
    failedReason String
    Failed reason if the status is Failed.
    lastModifiedAt String
    Last modified time of the custom topic.
    sampleBlobUrl String
    Sample blob url for the custom topic.
    status String
    Status of the custom topic.
    topicId String
    The unique identifier of the custom topic.
    topicName String
    The name of the custom topic.
    createdAt string
    Creation time of the custom topic.
    description string
    Description of the custom topic.
    failedReason string
    Failed reason if the status is Failed.
    lastModifiedAt string
    Last modified time of the custom topic.
    sampleBlobUrl string
    Sample blob url for the custom topic.
    status string
    Status of the custom topic.
    topicId string
    The unique identifier of the custom topic.
    topicName string
    The name of the custom topic.
    created_at str
    Creation time of the custom topic.
    description str
    Description of the custom topic.
    failed_reason str
    Failed reason if the status is Failed.
    last_modified_at str
    Last modified time of the custom topic.
    sample_blob_url str
    Sample blob url for the custom topic.
    status str
    Status of the custom topic.
    topic_id str
    The unique identifier of the custom topic.
    topic_name str
    The name of the custom topic.
    createdAt String
    Creation time of the custom topic.
    description String
    Description of the custom topic.
    failedReason String
    Failed reason if the status is Failed.
    lastModifiedAt String
    Last modified time of the custom topic.
    sampleBlobUrl String
    Sample blob url for the custom topic.
    status String
    Status of the custom topic.
    topicId String
    The unique identifier of the custom topic.
    topicName String
    The name of the custom topic.

    SystemDataResponse, SystemDataResponseArgs

    Metadata pertaining to creation and last modification of the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:cognitiveservices:RaiTopic raiTopicName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raitopics/{raiTopicName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.10.1 published on Friday, Nov 7, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate