1. Packages
  2. Azure Native
  3. API Docs
  4. cognitiveservices
  5. OutboundRule
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.13.0 published on Wednesday, Jan 28, 2026 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.13.0 published on Wednesday, Jan 28, 2026 by Pulumi

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

    Example Usage

    CreateOrUpdate OutboundRule

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var outboundRule = new AzureNative.CognitiveServices.OutboundRule("outboundRule", new()
        {
            AccountName = "cognitive-account-name",
            ManagedNetworkName = "default",
            Properties = new AzureNative.CognitiveServices.Inputs.FqdnOutboundRuleArgs
            {
                Category = AzureNative.CognitiveServices.RuleCategory.UserDefined,
                Destination = "destination_endpoint",
                Status = AzureNative.CognitiveServices.RuleStatus.Active,
                Type = "FQDN",
            },
            ResourceGroupName = "test-rg",
            RuleName = "rule_name_1",
        });
    
    });
    
    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.NewOutboundRule(ctx, "outboundRule", &cognitiveservices.OutboundRuleArgs{
    			AccountName:        pulumi.String("cognitive-account-name"),
    			ManagedNetworkName: pulumi.String("default"),
    			Properties: &cognitiveservices.FqdnOutboundRuleArgs{
    				Category:    pulumi.String(cognitiveservices.RuleCategoryUserDefined),
    				Destination: pulumi.String("destination_endpoint"),
    				Status:      pulumi.String(cognitiveservices.RuleStatusActive),
    				Type:        pulumi.String("FQDN"),
    			},
    			ResourceGroupName: pulumi.String("test-rg"),
    			RuleName:          pulumi.String("rule_name_1"),
    		})
    		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.OutboundRule;
    import com.pulumi.azurenative.cognitiveservices.OutboundRuleArgs;
    import com.pulumi.azurenative.cognitiveservices.inputs.FqdnOutboundRuleArgs;
    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 outboundRule = new OutboundRule("outboundRule", OutboundRuleArgs.builder()
                .accountName("cognitive-account-name")
                .managedNetworkName("default")
                .properties(FqdnOutboundRuleArgs.builder()
                    .category("UserDefined")
                    .destination("destination_endpoint")
                    .status("Active")
                    .type("FQDN")
                    .build())
                .resourceGroupName("test-rg")
                .ruleName("rule_name_1")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const outboundRule = new azure_native.cognitiveservices.OutboundRule("outboundRule", {
        accountName: "cognitive-account-name",
        managedNetworkName: "default",
        properties: {
            category: azure_native.cognitiveservices.RuleCategory.UserDefined,
            destination: "destination_endpoint",
            status: azure_native.cognitiveservices.RuleStatus.Active,
            type: "FQDN",
        },
        resourceGroupName: "test-rg",
        ruleName: "rule_name_1",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    outbound_rule = azure_native.cognitiveservices.OutboundRule("outboundRule",
        account_name="cognitive-account-name",
        managed_network_name="default",
        properties={
            "category": azure_native.cognitiveservices.RuleCategory.USER_DEFINED,
            "destination": "destination_endpoint",
            "status": azure_native.cognitiveservices.RuleStatus.ACTIVE,
            "type": "FQDN",
        },
        resource_group_name="test-rg",
        rule_name="rule_name_1")
    
    resources:
      outboundRule:
        type: azure-native:cognitiveservices:OutboundRule
        properties:
          accountName: cognitive-account-name
          managedNetworkName: default
          properties:
            category: UserDefined
            destination: destination_endpoint
            status: Active
            type: FQDN
          resourceGroupName: test-rg
          ruleName: rule_name_1
    

    Create OutboundRule Resource

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

    Constructor syntax

    new OutboundRule(name: string, args: OutboundRuleArgs, opts?: CustomResourceOptions);
    @overload
    def OutboundRule(resource_name: str,
                     args: OutboundRuleArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def OutboundRule(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     account_name: Optional[str] = None,
                     managed_network_name: Optional[str] = None,
                     properties: Optional[FqdnOutboundRuleArgs] = None,
                     resource_group_name: Optional[str] = None,
                     rule_name: Optional[str] = None)
    func NewOutboundRule(ctx *Context, name string, args OutboundRuleArgs, opts ...ResourceOption) (*OutboundRule, error)
    public OutboundRule(string name, OutboundRuleArgs args, CustomResourceOptions? opts = null)
    public OutboundRule(String name, OutboundRuleArgs args)
    public OutboundRule(String name, OutboundRuleArgs args, CustomResourceOptions options)
    
    type: azure-native:cognitiveservices:OutboundRule
    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 OutboundRuleArgs
    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 OutboundRuleArgs
    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 OutboundRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OutboundRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OutboundRuleArgs
    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 outboundRuleResource = new AzureNative.CognitiveServices.OutboundRule("outboundRuleResource", new()
    {
        AccountName = "string",
        ManagedNetworkName = "string",
        Properties = new AzureNative.CognitiveServices.Inputs.FqdnOutboundRuleArgs
        {
            Type = "FQDN",
            Category = "string",
            Destination = "string",
            Status = "string",
        },
        ResourceGroupName = "string",
        RuleName = "string",
    });
    
    example, err := cognitiveservices.NewOutboundRule(ctx, "outboundRuleResource", &cognitiveservices.OutboundRuleArgs{
    	AccountName:        pulumi.String("string"),
    	ManagedNetworkName: pulumi.String("string"),
    	Properties: &cognitiveservices.FqdnOutboundRuleArgs{
    		Type:        pulumi.String("FQDN"),
    		Category:    pulumi.String("string"),
    		Destination: pulumi.String("string"),
    		Status:      pulumi.String("string"),
    	},
    	ResourceGroupName: pulumi.String("string"),
    	RuleName:          pulumi.String("string"),
    })
    
    var outboundRuleResource = new com.pulumi.azurenative.cognitiveservices.OutboundRule("outboundRuleResource", com.pulumi.azurenative.cognitiveservices.OutboundRuleArgs.builder()
        .accountName("string")
        .managedNetworkName("string")
        .properties(FqdnOutboundRuleArgs.builder()
            .type("FQDN")
            .category("string")
            .destination("string")
            .status("string")
            .build())
        .resourceGroupName("string")
        .ruleName("string")
        .build());
    
    outbound_rule_resource = azure_native.cognitiveservices.OutboundRule("outboundRuleResource",
        account_name="string",
        managed_network_name="string",
        properties={
            "type": "FQDN",
            "category": "string",
            "destination": "string",
            "status": "string",
        },
        resource_group_name="string",
        rule_name="string")
    
    const outboundRuleResource = new azure_native.cognitiveservices.OutboundRule("outboundRuleResource", {
        accountName: "string",
        managedNetworkName: "string",
        properties: {
            type: "FQDN",
            category: "string",
            destination: "string",
            status: "string",
        },
        resourceGroupName: "string",
        ruleName: "string",
    });
    
    type: azure-native:cognitiveservices:OutboundRule
    properties:
        accountName: string
        managedNetworkName: string
        properties:
            category: string
            destination: string
            status: string
            type: FQDN
        resourceGroupName: string
        ruleName: string
    

    OutboundRule 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 OutboundRule resource accepts the following input properties:

    AccountName string
    The name of Cognitive Services account.
    ManagedNetworkName string
    Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported.
    Properties Pulumi.AzureNative.CognitiveServices.Inputs.FqdnOutboundRule
    Outbound Rule for the managed network of a cognitive services account.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    RuleName string
    Name of the cognitive services account managed network outbound rule
    AccountName string
    The name of Cognitive Services account.
    ManagedNetworkName string
    Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported.
    Properties FqdnOutboundRuleArgs
    Outbound Rule for the managed network of a cognitive services account.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    RuleName string
    Name of the cognitive services account managed network outbound rule
    accountName String
    The name of Cognitive Services account.
    managedNetworkName String
    Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported.
    properties FqdnOutboundRule
    Outbound Rule for the managed network of a cognitive services account.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    ruleName String
    Name of the cognitive services account managed network outbound rule
    accountName string
    The name of Cognitive Services account.
    managedNetworkName string
    Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported.
    properties FqdnOutboundRule
    Outbound Rule for the managed network of a cognitive services account.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    ruleName string
    Name of the cognitive services account managed network outbound rule
    account_name str
    The name of Cognitive Services account.
    managed_network_name str
    Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported.
    properties FqdnOutboundRuleArgs
    Outbound Rule for the managed network of a cognitive services account.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    rule_name str
    Name of the cognitive services account managed network outbound rule
    accountName String
    The name of Cognitive Services account.
    managedNetworkName String
    Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported.
    properties Property Map
    Outbound Rule for the managed network of a cognitive services account.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    ruleName String
    Name of the cognitive services account managed network outbound rule

    Outputs

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

    AzureApiVersion string
    The Azure API version of the resource.
    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.
    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.
    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.
    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.
    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.
    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

    FqdnOutboundRule, FqdnOutboundRuleArgs

    FQDN Outbound Rule for the managed network of a cognitive services account.
    Category string | Pulumi.AzureNative.CognitiveServices.RuleCategory
    Category of a managed network Outbound Rule of a cognitive services account.
    Destination string
    Status string | Pulumi.AzureNative.CognitiveServices.RuleStatus
    Type of a managed network Outbound Rule of a cognitive services account.
    Category string | RuleCategory
    Category of a managed network Outbound Rule of a cognitive services account.
    Destination string
    Status string | RuleStatus
    Type of a managed network Outbound Rule of a cognitive services account.
    category String | RuleCategory
    Category of a managed network Outbound Rule of a cognitive services account.
    destination String
    status String | RuleStatus
    Type of a managed network Outbound Rule of a cognitive services account.
    category string | RuleCategory
    Category of a managed network Outbound Rule of a cognitive services account.
    destination string
    status string | RuleStatus
    Type of a managed network Outbound Rule of a cognitive services account.
    category str | RuleCategory
    Category of a managed network Outbound Rule of a cognitive services account.
    destination str
    status str | RuleStatus
    Type of a managed network Outbound Rule of a cognitive services account.
    category String | "Required" | "Recommended" | "UserDefined" | "Dependency"
    Category of a managed network Outbound Rule of a cognitive services account.
    destination String
    status String | "Inactive" | "Active" | "Provisioning" | "Deleting" | "Failed"
    Type of a managed network Outbound Rule of a cognitive services account.

    FqdnOutboundRuleResponse, FqdnOutboundRuleResponseArgs

    FQDN Outbound Rule for the managed network of a cognitive services account.
    ErrorInformation string
    Error information about an outbound rule of a cognitive services account if RuleStatus is failed.
    ParentRuleNames List<string>
    Category string
    Category of a managed network Outbound Rule of a cognitive services account.
    Destination string
    Status string
    Type of a managed network Outbound Rule of a cognitive services account.
    ErrorInformation string
    Error information about an outbound rule of a cognitive services account if RuleStatus is failed.
    ParentRuleNames []string
    Category string
    Category of a managed network Outbound Rule of a cognitive services account.
    Destination string
    Status string
    Type of a managed network Outbound Rule of a cognitive services account.
    errorInformation String
    Error information about an outbound rule of a cognitive services account if RuleStatus is failed.
    parentRuleNames List<String>
    category String
    Category of a managed network Outbound Rule of a cognitive services account.
    destination String
    status String
    Type of a managed network Outbound Rule of a cognitive services account.
    errorInformation string
    Error information about an outbound rule of a cognitive services account if RuleStatus is failed.
    parentRuleNames string[]
    category string
    Category of a managed network Outbound Rule of a cognitive services account.
    destination string
    status string
    Type of a managed network Outbound Rule of a cognitive services account.
    error_information str
    Error information about an outbound rule of a cognitive services account if RuleStatus is failed.
    parent_rule_names Sequence[str]
    category str
    Category of a managed network Outbound Rule of a cognitive services account.
    destination str
    status str
    Type of a managed network Outbound Rule of a cognitive services account.
    errorInformation String
    Error information about an outbound rule of a cognitive services account if RuleStatus is failed.
    parentRuleNames List<String>
    category String
    Category of a managed network Outbound Rule of a cognitive services account.
    destination String
    status String
    Type of a managed network Outbound Rule of a cognitive services account.

    RuleCategory, RuleCategoryArgs

    Required
    Required
    Recommended
    Recommended
    UserDefined
    UserDefined
    Dependency
    Dependency
    RuleCategoryRequired
    Required
    RuleCategoryRecommended
    Recommended
    RuleCategoryUserDefined
    UserDefined
    RuleCategoryDependency
    Dependency
    Required
    Required
    Recommended
    Recommended
    UserDefined
    UserDefined
    Dependency
    Dependency
    Required
    Required
    Recommended
    Recommended
    UserDefined
    UserDefined
    Dependency
    Dependency
    REQUIRED
    Required
    RECOMMENDED
    Recommended
    USER_DEFINED
    UserDefined
    DEPENDENCY
    Dependency
    "Required"
    Required
    "Recommended"
    Recommended
    "UserDefined"
    UserDefined
    "Dependency"
    Dependency

    RuleStatus, RuleStatusArgs

    Inactive
    Inactive
    Active
    Active
    Provisioning
    Provisioning
    Deleting
    Deleting
    Failed
    Failed
    RuleStatusInactive
    Inactive
    RuleStatusActive
    Active
    RuleStatusProvisioning
    Provisioning
    RuleStatusDeleting
    Deleting
    RuleStatusFailed
    Failed
    Inactive
    Inactive
    Active
    Active
    Provisioning
    Provisioning
    Deleting
    Deleting
    Failed
    Failed
    Inactive
    Inactive
    Active
    Active
    Provisioning
    Provisioning
    Deleting
    Deleting
    Failed
    Failed
    INACTIVE
    Inactive
    ACTIVE
    Active
    PROVISIONING
    Provisioning
    DELETING
    Deleting
    FAILED
    Failed
    "Inactive"
    Inactive
    "Active"
    Active
    "Provisioning"
    Provisioning
    "Deleting"
    Deleting
    "Failed"
    Failed

    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:OutboundRule rule_name_1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/managedNetworks/{managedNetworkName}/outboundRules/{ruleName} 
    

    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.13.0 published on Wednesday, Jan 28, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate