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:
- Account
Name string - The name of Cognitive Services account.
- Managed
Network stringName - Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported.
- Properties
Pulumi.
Azure Native. Cognitive Services. Inputs. Fqdn Outbound Rule - Outbound Rule for the managed network of a cognitive services account.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Rule
Name string - Name of the cognitive services account managed network outbound rule
- Account
Name string - The name of Cognitive Services account.
- Managed
Network stringName - Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported.
- Properties
Fqdn
Outbound Rule Args - Outbound Rule for the managed network of a cognitive services account.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Rule
Name string - Name of the cognitive services account managed network outbound rule
- account
Name String - The name of Cognitive Services account.
- managed
Network StringName - Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported.
- properties
Fqdn
Outbound Rule - Outbound Rule for the managed network of a cognitive services account.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- rule
Name String - Name of the cognitive services account managed network outbound rule
- account
Name string - The name of Cognitive Services account.
- managed
Network stringName - Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported.
- properties
Fqdn
Outbound Rule - Outbound Rule for the managed network of a cognitive services account.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- rule
Name string - Name of the cognitive services account managed network outbound rule
- account_
name str - The name of Cognitive Services account.
- managed_
network_ strname - Name of the managedNetwork associated with the cognitive services account. Only 'default' is supported.
- properties
Fqdn
Outbound Rule Args - Outbound Rule for the managed network of a cognitive services account.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- rule_
name str - Name of the cognitive services account managed network outbound rule
- account
Name String - The name of Cognitive Services account.
- managed
Network StringName - 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.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- rule
Name 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:
- Azure
Api stringVersion - 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
- System
Data Pulumi.Azure Native. Cognitive Services. Outputs. System Data Response - 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 stringVersion - 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
- System
Data SystemData Response - 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 StringVersion - 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
- system
Data SystemData Response - 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 stringVersion - 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
- system
Data SystemData Response - 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_ strversion - 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 SystemData Response - 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"
- azure
Api StringVersion - 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
- system
Data 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.
Azure Native. Cognitive Services. Rule Category - Category of a managed network Outbound Rule of a cognitive services account.
- Destination string
- Status
string | Pulumi.
Azure Native. Cognitive Services. Rule Status - Type of a managed network Outbound Rule of a cognitive services account.
- Category
string | Rule
Category - Category of a managed network Outbound Rule of a cognitive services account.
- Destination string
- Status
string | Rule
Status - Type of a managed network Outbound Rule of a cognitive services account.
- category
String | Rule
Category - Category of a managed network Outbound Rule of a cognitive services account.
- destination String
- status
String | Rule
Status - Type of a managed network Outbound Rule of a cognitive services account.
- category
string | Rule
Category - Category of a managed network Outbound Rule of a cognitive services account.
- destination string
- status
string | Rule
Status - Type of a managed network Outbound Rule of a cognitive services account.
- category
str | Rule
Category - Category of a managed network Outbound Rule of a cognitive services account.
- destination str
- status
str | Rule
Status - Type of a managed network Outbound Rule of a cognitive services account.
- category
String | "Required" | "Recommended" | "User
Defined" | "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.- Error
Information string - Error information about an outbound rule of a cognitive services account if RuleStatus is failed.
- Parent
Rule List<string>Names - 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 string - Error information about an outbound rule of a cognitive services account if RuleStatus is failed.
- Parent
Rule []stringNames - 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 String - Error information about an outbound rule of a cognitive services account if RuleStatus is failed.
- parent
Rule List<String>Names - 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 string - Error information about an outbound rule of a cognitive services account if RuleStatus is failed.
- parent
Rule string[]Names - 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_ Sequence[str]names - 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.
- error
Information String - Error information about an outbound rule of a cognitive services account if RuleStatus is failed.
- parent
Rule List<String>Names - 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- User
Defined UserDefined- Dependency
Dependency
- Rule
Category Required Required- Rule
Category Recommended Recommended- Rule
Category User Defined UserDefined- Rule
Category Dependency Dependency
- Required
Required- Recommended
Recommended- User
Defined UserDefined- Dependency
Dependency
- Required
Required- Recommended
Recommended- User
Defined UserDefined- Dependency
Dependency
- REQUIRED
Required- RECOMMENDED
Recommended- USER_DEFINED
UserDefined- DEPENDENCY
Dependency
- "Required"
Required- "Recommended"
Recommended- "User
Defined" UserDefined- "Dependency"
Dependency
RuleStatus, RuleStatusArgs
- Inactive
Inactive- Active
Active- Provisioning
Provisioning- Deleting
Deleting- Failed
Failed
- Rule
Status Inactive Inactive- Rule
Status Active Active- Rule
Status Provisioning Provisioning- Rule
Status Deleting Deleting- Rule
Status 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
- "Inactive"
Inactive- "Active"
Active- "Provisioning"
Provisioning- "Deleting"
Deleting- "Failed"
Failed
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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
