We recommend using Azure Native.
azure.machinelearning.WorkspaceNetworkOutboundRuleFqdn
Explore with Pulumi AI
Manages an Azure Machine Learning Workspace FQDN Network Outbound Rule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const current = azure.core.getClientConfig({});
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleInsights = new azure.appinsights.Insights("example", {
name: "workspace-example-ai",
location: example.location,
resourceGroupName: example.name,
applicationType: "web",
});
const exampleKeyVault = new azure.keyvault.KeyVault("example", {
name: "workspaceexamplekeyvault",
location: example.location,
resourceGroupName: example.name,
tenantId: current.then(current => current.tenantId),
skuName: "premium",
});
const exampleAccount = new azure.storage.Account("example", {
name: "workspacestorageaccount",
location: example.location,
resourceGroupName: example.name,
accountTier: "Standard",
accountReplicationType: "GRS",
});
const exampleWorkspace = new azure.machinelearning.Workspace("example", {
name: "example-workspace",
location: example.location,
resourceGroupName: example.name,
applicationInsightsId: exampleInsights.id,
keyVaultId: exampleKeyVault.id,
storageAccountId: exampleAccount.id,
managedNetwork: {
isolationMode: "AllowOnlyApprovedOutbound",
},
identity: {
type: "SystemAssigned",
},
});
const exampleWorkspaceNetworkOutboundRuleFqdn = new azure.machinelearning.WorkspaceNetworkOutboundRuleFqdn("example", {
name: "example-outboundrule",
workspaceId: exampleWorkspace.id,
destinationFqdn: "example.com",
});
import pulumi
import pulumi_azure as azure
current = azure.core.get_client_config()
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_insights = azure.appinsights.Insights("example",
name="workspace-example-ai",
location=example.location,
resource_group_name=example.name,
application_type="web")
example_key_vault = azure.keyvault.KeyVault("example",
name="workspaceexamplekeyvault",
location=example.location,
resource_group_name=example.name,
tenant_id=current.tenant_id,
sku_name="premium")
example_account = azure.storage.Account("example",
name="workspacestorageaccount",
location=example.location,
resource_group_name=example.name,
account_tier="Standard",
account_replication_type="GRS")
example_workspace = azure.machinelearning.Workspace("example",
name="example-workspace",
location=example.location,
resource_group_name=example.name,
application_insights_id=example_insights.id,
key_vault_id=example_key_vault.id,
storage_account_id=example_account.id,
managed_network={
"isolation_mode": "AllowOnlyApprovedOutbound",
},
identity={
"type": "SystemAssigned",
})
example_workspace_network_outbound_rule_fqdn = azure.machinelearning.WorkspaceNetworkOutboundRuleFqdn("example",
name="example-outboundrule",
workspace_id=example_workspace.id,
destination_fqdn="example.com")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/keyvault"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/machinelearning"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
Name: pulumi.String("workspace-example-ai"),
Location: example.Location,
ResourceGroupName: example.Name,
ApplicationType: pulumi.String("web"),
})
if err != nil {
return err
}
exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{
Name: pulumi.String("workspaceexamplekeyvault"),
Location: example.Location,
ResourceGroupName: example.Name,
TenantId: pulumi.String(current.TenantId),
SkuName: pulumi.String("premium"),
})
if err != nil {
return err
}
exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
Name: pulumi.String("workspacestorageaccount"),
Location: example.Location,
ResourceGroupName: example.Name,
AccountTier: pulumi.String("Standard"),
AccountReplicationType: pulumi.String("GRS"),
})
if err != nil {
return err
}
exampleWorkspace, err := machinelearning.NewWorkspace(ctx, "example", &machinelearning.WorkspaceArgs{
Name: pulumi.String("example-workspace"),
Location: example.Location,
ResourceGroupName: example.Name,
ApplicationInsightsId: exampleInsights.ID(),
KeyVaultId: exampleKeyVault.ID(),
StorageAccountId: exampleAccount.ID(),
ManagedNetwork: &machinelearning.WorkspaceManagedNetworkArgs{
IsolationMode: pulumi.String("AllowOnlyApprovedOutbound"),
},
Identity: &machinelearning.WorkspaceIdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
})
if err != nil {
return err
}
_, err = machinelearning.NewWorkspaceNetworkOutboundRuleFqdn(ctx, "example", &machinelearning.WorkspaceNetworkOutboundRuleFqdnArgs{
Name: pulumi.String("example-outboundrule"),
WorkspaceId: exampleWorkspace.ID(),
DestinationFqdn: pulumi.String("example.com"),
})
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 current = Azure.Core.GetClientConfig.Invoke();
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleInsights = new Azure.AppInsights.Insights("example", new()
{
Name = "workspace-example-ai",
Location = example.Location,
ResourceGroupName = example.Name,
ApplicationType = "web",
});
var exampleKeyVault = new Azure.KeyVault.KeyVault("example", new()
{
Name = "workspaceexamplekeyvault",
Location = example.Location,
ResourceGroupName = example.Name,
TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
SkuName = "premium",
});
var exampleAccount = new Azure.Storage.Account("example", new()
{
Name = "workspacestorageaccount",
Location = example.Location,
ResourceGroupName = example.Name,
AccountTier = "Standard",
AccountReplicationType = "GRS",
});
var exampleWorkspace = new Azure.MachineLearning.Workspace("example", new()
{
Name = "example-workspace",
Location = example.Location,
ResourceGroupName = example.Name,
ApplicationInsightsId = exampleInsights.Id,
KeyVaultId = exampleKeyVault.Id,
StorageAccountId = exampleAccount.Id,
ManagedNetwork = new Azure.MachineLearning.Inputs.WorkspaceManagedNetworkArgs
{
IsolationMode = "AllowOnlyApprovedOutbound",
},
Identity = new Azure.MachineLearning.Inputs.WorkspaceIdentityArgs
{
Type = "SystemAssigned",
},
});
var exampleWorkspaceNetworkOutboundRuleFqdn = new Azure.MachineLearning.WorkspaceNetworkOutboundRuleFqdn("example", new()
{
Name = "example-outboundrule",
WorkspaceId = exampleWorkspace.Id,
DestinationFqdn = "example.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.appinsights.Insights;
import com.pulumi.azure.appinsights.InsightsArgs;
import com.pulumi.azure.keyvault.KeyVault;
import com.pulumi.azure.keyvault.KeyVaultArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.machinelearning.Workspace;
import com.pulumi.azure.machinelearning.WorkspaceArgs;
import com.pulumi.azure.machinelearning.inputs.WorkspaceManagedNetworkArgs;
import com.pulumi.azure.machinelearning.inputs.WorkspaceIdentityArgs;
import com.pulumi.azure.machinelearning.WorkspaceNetworkOutboundRuleFqdn;
import com.pulumi.azure.machinelearning.WorkspaceNetworkOutboundRuleFqdnArgs;
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) {
final var current = CoreFunctions.getClientConfig();
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
.name("workspace-example-ai")
.location(example.location())
.resourceGroupName(example.name())
.applicationType("web")
.build());
var exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()
.name("workspaceexamplekeyvault")
.location(example.location())
.resourceGroupName(example.name())
.tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
.skuName("premium")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.name("workspacestorageaccount")
.location(example.location())
.resourceGroupName(example.name())
.accountTier("Standard")
.accountReplicationType("GRS")
.build());
var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
.name("example-workspace")
.location(example.location())
.resourceGroupName(example.name())
.applicationInsightsId(exampleInsights.id())
.keyVaultId(exampleKeyVault.id())
.storageAccountId(exampleAccount.id())
.managedNetwork(WorkspaceManagedNetworkArgs.builder()
.isolationMode("AllowOnlyApprovedOutbound")
.build())
.identity(WorkspaceIdentityArgs.builder()
.type("SystemAssigned")
.build())
.build());
var exampleWorkspaceNetworkOutboundRuleFqdn = new WorkspaceNetworkOutboundRuleFqdn("exampleWorkspaceNetworkOutboundRuleFqdn", WorkspaceNetworkOutboundRuleFqdnArgs.builder()
.name("example-outboundrule")
.workspaceId(exampleWorkspace.id())
.destinationFqdn("example.com")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleInsights:
type: azure:appinsights:Insights
name: example
properties:
name: workspace-example-ai
location: ${example.location}
resourceGroupName: ${example.name}
applicationType: web
exampleKeyVault:
type: azure:keyvault:KeyVault
name: example
properties:
name: workspaceexamplekeyvault
location: ${example.location}
resourceGroupName: ${example.name}
tenantId: ${current.tenantId}
skuName: premium
exampleAccount:
type: azure:storage:Account
name: example
properties:
name: workspacestorageaccount
location: ${example.location}
resourceGroupName: ${example.name}
accountTier: Standard
accountReplicationType: GRS
exampleWorkspace:
type: azure:machinelearning:Workspace
name: example
properties:
name: example-workspace
location: ${example.location}
resourceGroupName: ${example.name}
applicationInsightsId: ${exampleInsights.id}
keyVaultId: ${exampleKeyVault.id}
storageAccountId: ${exampleAccount.id}
managedNetwork:
isolationMode: AllowOnlyApprovedOutbound
identity:
type: SystemAssigned
exampleWorkspaceNetworkOutboundRuleFqdn:
type: azure:machinelearning:WorkspaceNetworkOutboundRuleFqdn
name: example
properties:
name: example-outboundrule
workspaceId: ${exampleWorkspace.id}
destinationFqdn: example.com
variables:
current:
fn::invoke:
Function: azure:core:getClientConfig
Arguments: {}
Create WorkspaceNetworkOutboundRuleFqdn Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WorkspaceNetworkOutboundRuleFqdn(name: string, args: WorkspaceNetworkOutboundRuleFqdnArgs, opts?: CustomResourceOptions);
@overload
def WorkspaceNetworkOutboundRuleFqdn(resource_name: str,
args: WorkspaceNetworkOutboundRuleFqdnArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WorkspaceNetworkOutboundRuleFqdn(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination_fqdn: Optional[str] = None,
workspace_id: Optional[str] = None,
name: Optional[str] = None)
func NewWorkspaceNetworkOutboundRuleFqdn(ctx *Context, name string, args WorkspaceNetworkOutboundRuleFqdnArgs, opts ...ResourceOption) (*WorkspaceNetworkOutboundRuleFqdn, error)
public WorkspaceNetworkOutboundRuleFqdn(string name, WorkspaceNetworkOutboundRuleFqdnArgs args, CustomResourceOptions? opts = null)
public WorkspaceNetworkOutboundRuleFqdn(String name, WorkspaceNetworkOutboundRuleFqdnArgs args)
public WorkspaceNetworkOutboundRuleFqdn(String name, WorkspaceNetworkOutboundRuleFqdnArgs args, CustomResourceOptions options)
type: azure:machinelearning:WorkspaceNetworkOutboundRuleFqdn
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 WorkspaceNetworkOutboundRuleFqdnArgs
- 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 WorkspaceNetworkOutboundRuleFqdnArgs
- 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 WorkspaceNetworkOutboundRuleFqdnArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkspaceNetworkOutboundRuleFqdnArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkspaceNetworkOutboundRuleFqdnArgs
- 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 workspaceNetworkOutboundRuleFqdnResource = new Azure.MachineLearning.WorkspaceNetworkOutboundRuleFqdn("workspaceNetworkOutboundRuleFqdnResource", new()
{
DestinationFqdn = "string",
WorkspaceId = "string",
Name = "string",
});
example, err := machinelearning.NewWorkspaceNetworkOutboundRuleFqdn(ctx, "workspaceNetworkOutboundRuleFqdnResource", &machinelearning.WorkspaceNetworkOutboundRuleFqdnArgs{
DestinationFqdn: pulumi.String("string"),
WorkspaceId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var workspaceNetworkOutboundRuleFqdnResource = new WorkspaceNetworkOutboundRuleFqdn("workspaceNetworkOutboundRuleFqdnResource", WorkspaceNetworkOutboundRuleFqdnArgs.builder()
.destinationFqdn("string")
.workspaceId("string")
.name("string")
.build());
workspace_network_outbound_rule_fqdn_resource = azure.machinelearning.WorkspaceNetworkOutboundRuleFqdn("workspaceNetworkOutboundRuleFqdnResource",
destination_fqdn="string",
workspace_id="string",
name="string")
const workspaceNetworkOutboundRuleFqdnResource = new azure.machinelearning.WorkspaceNetworkOutboundRuleFqdn("workspaceNetworkOutboundRuleFqdnResource", {
destinationFqdn: "string",
workspaceId: "string",
name: "string",
});
type: azure:machinelearning:WorkspaceNetworkOutboundRuleFqdn
properties:
destinationFqdn: string
name: string
workspaceId: string
WorkspaceNetworkOutboundRuleFqdn 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 WorkspaceNetworkOutboundRuleFqdn resource accepts the following input properties:
- Destination
Fqdn string - Specifies the fully qualified domain name to allow for outbound traffic.
- Workspace
Id string - Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Machine Learning Workspace FQDN Network Outbound Rule. Changing this forces a new resource to be created.
- Destination
Fqdn string - Specifies the fully qualified domain name to allow for outbound traffic.
- Workspace
Id string - Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Machine Learning Workspace FQDN Network Outbound Rule. Changing this forces a new resource to be created.
- destination
Fqdn String - Specifies the fully qualified domain name to allow for outbound traffic.
- workspace
Id String - Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Machine Learning Workspace FQDN Network Outbound Rule. Changing this forces a new resource to be created.
- destination
Fqdn string - Specifies the fully qualified domain name to allow for outbound traffic.
- workspace
Id string - Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Machine Learning Workspace FQDN Network Outbound Rule. Changing this forces a new resource to be created.
- destination_
fqdn str - Specifies the fully qualified domain name to allow for outbound traffic.
- workspace_
id str - Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Machine Learning Workspace FQDN Network Outbound Rule. Changing this forces a new resource to be created.
- destination
Fqdn String - Specifies the fully qualified domain name to allow for outbound traffic.
- workspace
Id String - Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Machine Learning Workspace FQDN Network Outbound Rule. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkspaceNetworkOutboundRuleFqdn 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 WorkspaceNetworkOutboundRuleFqdn Resource
Get an existing WorkspaceNetworkOutboundRuleFqdn 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?: WorkspaceNetworkOutboundRuleFqdnState, opts?: CustomResourceOptions): WorkspaceNetworkOutboundRuleFqdn
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
destination_fqdn: Optional[str] = None,
name: Optional[str] = None,
workspace_id: Optional[str] = None) -> WorkspaceNetworkOutboundRuleFqdn
func GetWorkspaceNetworkOutboundRuleFqdn(ctx *Context, name string, id IDInput, state *WorkspaceNetworkOutboundRuleFqdnState, opts ...ResourceOption) (*WorkspaceNetworkOutboundRuleFqdn, error)
public static WorkspaceNetworkOutboundRuleFqdn Get(string name, Input<string> id, WorkspaceNetworkOutboundRuleFqdnState? state, CustomResourceOptions? opts = null)
public static WorkspaceNetworkOutboundRuleFqdn get(String name, Output<String> id, WorkspaceNetworkOutboundRuleFqdnState 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.
- Destination
Fqdn string - Specifies the fully qualified domain name to allow for outbound traffic.
- Name string
- Specifies the name of the Machine Learning Workspace FQDN Network Outbound Rule. Changing this forces a new resource to be created.
- Workspace
Id string - Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created.
- Destination
Fqdn string - Specifies the fully qualified domain name to allow for outbound traffic.
- Name string
- Specifies the name of the Machine Learning Workspace FQDN Network Outbound Rule. Changing this forces a new resource to be created.
- Workspace
Id string - Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created.
- destination
Fqdn String - Specifies the fully qualified domain name to allow for outbound traffic.
- name String
- Specifies the name of the Machine Learning Workspace FQDN Network Outbound Rule. Changing this forces a new resource to be created.
- workspace
Id String - Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created.
- destination
Fqdn string - Specifies the fully qualified domain name to allow for outbound traffic.
- name string
- Specifies the name of the Machine Learning Workspace FQDN Network Outbound Rule. Changing this forces a new resource to be created.
- workspace
Id string - Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created.
- destination_
fqdn str - Specifies the fully qualified domain name to allow for outbound traffic.
- name str
- Specifies the name of the Machine Learning Workspace FQDN Network Outbound Rule. Changing this forces a new resource to be created.
- workspace_
id str - Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created.
- destination
Fqdn String - Specifies the fully qualified domain name to allow for outbound traffic.
- name String
- Specifies the name of the Machine Learning Workspace FQDN Network Outbound Rule. Changing this forces a new resource to be created.
- workspace
Id String - Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created.
Import
Machine Learning Workspace FQDN Network Outbound Rule can be imported using the resource id
, e.g.
$ pulumi import azure:machinelearning/workspaceNetworkOutboundRuleFqdn:WorkspaceNetworkOutboundRuleFqdn example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.MachineLearningServices/workspaces/workspace1/outboundRules/rule1
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.