Managed Network Settings Rule
Outbound Rule Basic Resource for the managed network of a machine learning workspace. Azure REST API version: 2023-04-01-preview. Other available API versions: 2023-06-01-preview, 2023-08-01-preview, 2023-10-01.
Example Usage
CreateOrUpdate ManagedNetworkSettingsRule
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managedNetworkSettingsRule = new AzureNative.MachineLearningServices.ManagedNetworkSettingsRule("managedNetworkSettingsRule", new()
{
Properties = new AzureNative.MachineLearningServices.Inputs.FqdnOutboundRuleArgs
{
Category = "UserDefined",
Destination = "some_string",
Status = "Active",
Type = "FQDN",
},
ResourceGroupName = "test-rg",
RuleName = "some_string",
WorkspaceName = "aml-workspace-name",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/machinelearningservices/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := machinelearningservices.NewManagedNetworkSettingsRule(ctx, "managedNetworkSettingsRule", &machinelearningservices.ManagedNetworkSettingsRuleArgs{
Properties: machinelearningservices.FqdnOutboundRule{
Category: "UserDefined",
Destination: "some_string",
Status: "Active",
Type: "FQDN",
},
ResourceGroupName: pulumi.String("test-rg"),
RuleName: pulumi.String("some_string"),
WorkspaceName: pulumi.String("aml-workspace-name"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.machinelearningservices.ManagedNetworkSettingsRule;
import com.pulumi.azurenative.machinelearningservices.ManagedNetworkSettingsRuleArgs;
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 managedNetworkSettingsRule = new ManagedNetworkSettingsRule("managedNetworkSettingsRule", ManagedNetworkSettingsRuleArgs.builder()
.properties(Map.ofEntries(
Map.entry("category", "UserDefined"),
Map.entry("destination", "some_string"),
Map.entry("status", "Active"),
Map.entry("type", "FQDN")
))
.resourceGroupName("test-rg")
.ruleName("some_string")
.workspaceName("aml-workspace-name")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:machinelearningservices:ManagedNetworkSettingsRule some_string /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}
Content copied to clipboard