VendorSkusArgs

data class VendorSkusArgs(val deploymentMode: Output<Either<String, SkuDeploymentMode>>? = null, val managedApplicationParameters: Output<Any>? = null, val managedApplicationTemplate: Output<Any>? = null, val networkFunctionTemplate: Output<NetworkFunctionTemplateArgs>? = null, val networkFunctionType: Output<Either<String, NetworkFunctionType>>? = null, val preview: Output<Boolean>? = null, val skuName: Output<String>? = null, val skuType: Output<Either<String, SkuType>>? = null, val vendorName: Output<String>? = null) : ConvertibleToJava<VendorSkusArgs>

Sku sub resource. Azure REST API version: 2022-01-01-preview. Prior API version in Azure Native 1.x: 2020-01-01-preview.

Example Usage

Create or update the sku of vendor resource

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var vendorSkus = new AzureNative.HybridNetwork.VendorSkus("vendorSkus", new()
{
DeploymentMode = "PrivateEdgeZone",
ManagedApplicationTemplate = null,
NetworkFunctionTemplate = new AzureNative.HybridNetwork.Inputs.NetworkFunctionTemplateArgs
{
NetworkFunctionRoleConfigurations = new[]
{
new AzureNative.HybridNetwork.Inputs.NetworkFunctionRoleConfigurationArgs
{
CustomProfile = new AzureNative.HybridNetwork.Inputs.CustomProfileArgs
{
MetadataConfigurationPath = "/var/logs/network.cfg",
},
NetworkInterfaces = new[]
{
new AzureNative.HybridNetwork.Inputs.NetworkInterfaceArgs
{
IpConfigurations = new[]
{
new AzureNative.HybridNetwork.Inputs.NetworkInterfaceIPConfigurationArgs
{
Gateway = "",
IpAddress = "",
IpAllocationMethod = "Dynamic",
IpVersion = "IPv4",
Subnet = "",
},
},
MacAddress = "",
NetworkInterfaceName = "nic1",
VmSwitchType = "Wan",
},
new AzureNative.HybridNetwork.Inputs.NetworkInterfaceArgs
{
IpConfigurations = new[]
{
new AzureNative.HybridNetwork.Inputs.NetworkInterfaceIPConfigurationArgs
{
Gateway = "",
IpAddress = "",
IpAllocationMethod = "Dynamic",
IpVersion = "IPv4",
Subnet = "",
},
},
MacAddress = "",
NetworkInterfaceName = "nic2",
VmSwitchType = "Management",
},
},
OsProfile = new AzureNative.HybridNetwork.Inputs.OsProfileArgs
{
AdminUsername = "dummyuser",
CustomData = "base-64 encoded string of custom data",
LinuxConfiguration = new AzureNative.HybridNetwork.Inputs.LinuxConfigurationArgs
{
Ssh = new AzureNative.HybridNetwork.Inputs.SshConfigurationArgs
{
PublicKeys = new[]
{
new AzureNative.HybridNetwork.Inputs.SshPublicKeyArgs
{
KeyData = "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEAwrr66r8n6B8Y0zMF3dOpXEapIQD9DiYQ6D6/zwor9o39jSkHNiMMER/GETBbzP83LOcekm02aRjo55ArO7gPPVvCXbrirJu9pkm4AC4BBre5xSLS= user@constoso-DSH",
Path = "home/user/.ssh/authorized_keys",
},
},
},
},
},
RoleName = "test",
RoleType = "VirtualMachine",
StorageProfile = new AzureNative.HybridNetwork.Inputs.StorageProfileArgs
{
DataDisks = new[]
{
new AzureNative.HybridNetwork.Inputs.DataDiskArgs
{
CreateOption = "Empty",
DiskSizeGB = 10,
Name = "DataDisk1",
},
},
ImageReference = new AzureNative.HybridNetwork.Inputs.ImageReferenceArgs
{
Offer = "UbuntuServer",
Publisher = "Canonical",
Sku = "18.04-LTS",
Version = "18.04.201804262",
},
OsDisk = new AzureNative.HybridNetwork.Inputs.OsDiskArgs
{
DiskSizeGB = 30,
Name = "vhdName",
OsType = "Linux",
Vhd = new AzureNative.HybridNetwork.Inputs.VirtualHardDiskArgs
{
Uri = "https://contoso.net/link/vnd.vhd?sp=rl&st=2020-10-08T20:38:19Z&se=2020-12-09T19:38:00Z&sv=2019-12-12&sr=b&sig=7BM2f4yOw%3D",
},
},
},
VirtualMachineSize = "Standard_D3_v2",
},
},
},
NetworkFunctionType = "VirtualNetworkFunction",
Preview = true,
SkuName = "TestSku",
VendorName = "TestVendor",
});
});
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/hybridnetwork/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hybridnetwork.NewVendorSkus(ctx, "vendorSkus", &hybridnetwork.VendorSkusArgs{
DeploymentMode: pulumi.String("PrivateEdgeZone"),
ManagedApplicationTemplate: nil,
NetworkFunctionTemplate: hybridnetwork.NetworkFunctionTemplateResponse{
NetworkFunctionRoleConfigurations: hybridnetwork.NetworkFunctionRoleConfigurationArray{
interface{}{
CustomProfile: &hybridnetwork.CustomProfileArgs{
MetadataConfigurationPath: pulumi.String("/var/logs/network.cfg"),
},
NetworkInterfaces: hybridnetwork.NetworkInterfaceArray{
interface{}{
IpConfigurations: hybridnetwork.NetworkInterfaceIPConfigurationArray{
&hybridnetwork.NetworkInterfaceIPConfigurationArgs{
Gateway: pulumi.String(""),
IpAddress: pulumi.String(""),
IpAllocationMethod: pulumi.String("Dynamic"),
IpVersion: pulumi.String("IPv4"),
Subnet: pulumi.String(""),
},
},
MacAddress: pulumi.String(""),
NetworkInterfaceName: pulumi.String("nic1"),
VmSwitchType: pulumi.String("Wan"),
},
interface{}{
IpConfigurations: hybridnetwork.NetworkInterfaceIPConfigurationArray{
&hybridnetwork.NetworkInterfaceIPConfigurationArgs{
Gateway: pulumi.String(""),
IpAddress: pulumi.String(""),
IpAllocationMethod: pulumi.String("Dynamic"),
IpVersion: pulumi.String("IPv4"),
Subnet: pulumi.String(""),
},
},
MacAddress: pulumi.String(""),
NetworkInterfaceName: pulumi.String("nic2"),
VmSwitchType: pulumi.String("Management"),
},
},
OsProfile: interface{}{
AdminUsername: pulumi.String("dummyuser"),
CustomData: pulumi.String("base-64 encoded string of custom data"),
LinuxConfiguration: interface{}{
Ssh: interface{}{
PublicKeys: hybridnetwork.SshPublicKeyArray{
&hybridnetwork.SshPublicKeyArgs{
KeyData: pulumi.String("ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEAwrr66r8n6B8Y0zMF3dOpXEapIQD9DiYQ6D6/zwor9o39jSkHNiMMER/GETBbzP83LOcekm02aRjo55ArO7gPPVvCXbrirJu9pkm4AC4BBre5xSLS= user@constoso-DSH"),
Path: pulumi.String("home/user/.ssh/authorized_keys"),
},
},
},
},
},
RoleName: pulumi.String("test"),
RoleType: pulumi.String("VirtualMachine"),
StorageProfile: interface{}{
DataDisks: hybridnetwork.DataDiskArray{
&hybridnetwork.DataDiskArgs{
CreateOption: pulumi.String("Empty"),
DiskSizeGB: pulumi.Int(10),
Name: pulumi.String("DataDisk1"),
},
},
ImageReference: &hybridnetwork.ImageReferenceArgs{
Offer: pulumi.String("UbuntuServer"),
Publisher: pulumi.String("Canonical"),
Sku: pulumi.String("18.04-LTS"),
Version: pulumi.String("18.04.201804262"),
},
OsDisk: interface{}{
DiskSizeGB: pulumi.Int(30),
Name: pulumi.String("vhdName"),
OsType: pulumi.String("Linux"),
Vhd: &hybridnetwork.VirtualHardDiskArgs{
Uri: pulumi.String("https://contoso.net/link/vnd.vhd?sp=rl&st=2020-10-08T20:38:19Z&se=2020-12-09T19:38:00Z&sv=2019-12-12&sr=b&sig=7BM2f4yOw%3D"),
},
},
},
VirtualMachineSize: pulumi.String("Standard_D3_v2"),
},
},
},
NetworkFunctionType: pulumi.String("VirtualNetworkFunction"),
Preview: pulumi.Bool(true),
SkuName: pulumi.String("TestSku"),
VendorName: pulumi.String("TestVendor"),
})
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.hybridnetwork.VendorSkus;
import com.pulumi.azurenative.hybridnetwork.VendorSkusArgs;
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 vendorSkus = new VendorSkus("vendorSkus", VendorSkusArgs.builder()
.deploymentMode("PrivateEdgeZone")
.managedApplicationTemplate()
.networkFunctionTemplate(Map.of("networkFunctionRoleConfigurations", Map.ofEntries(
Map.entry("customProfile", Map.of("metadataConfigurationPath", "/var/logs/network.cfg")),
Map.entry("networkInterfaces",
Map.ofEntries(
Map.entry("ipConfigurations", Map.ofEntries(
Map.entry("gateway", ""),
Map.entry("ipAddress", ""),
Map.entry("ipAllocationMethod", "Dynamic"),
Map.entry("ipVersion", "IPv4"),
Map.entry("subnet", "")
)),
Map.entry("macAddress", ""),
Map.entry("networkInterfaceName", "nic1"),
Map.entry("vmSwitchType", "Wan")
),
Map.ofEntries(
Map.entry("ipConfigurations", Map.ofEntries(
Map.entry("gateway", ""),
Map.entry("ipAddress", ""),
Map.entry("ipAllocationMethod", "Dynamic"),
Map.entry("ipVersion", "IPv4"),
Map.entry("subnet", "")
)),
Map.entry("macAddress", ""),
Map.entry("networkInterfaceName", "nic2"),
Map.entry("vmSwitchType", "Management")
)),
Map.entry("osProfile", Map.ofEntries(
Map.entry("adminUsername", "dummyuser"),
Map.entry("customData", "base-64 encoded string of custom data"),
Map.entry("linuxConfiguration", Map.of("ssh", Map.of("publicKeys", Map.ofEntries(
Map.entry("keyData", "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEAwrr66r8n6B8Y0zMF3dOpXEapIQD9DiYQ6D6/zwor9o39jSkHNiMMER/GETBbzP83LOcekm02aRjo55ArO7gPPVvCXbrirJu9pkm4AC4BBre5xSLS= user@constoso-DSH"),
Map.entry("path", "home/user/.ssh/authorized_keys")
))))
)),
Map.entry("roleName", "test"),
Map.entry("roleType", "VirtualMachine"),
Map.entry("storageProfile", Map.ofEntries(
Map.entry("dataDisks", Map.ofEntries(
Map.entry("createOption", "Empty"),
Map.entry("diskSizeGB", 10),
Map.entry("name", "DataDisk1")
)),
Map.entry("imageReference", Map.ofEntries(
Map.entry("offer", "UbuntuServer"),
Map.entry("publisher", "Canonical"),
Map.entry("sku", "18.04-LTS"),
Map.entry("version", "18.04.201804262")
)),
Map.entry("osDisk", Map.ofEntries(
Map.entry("diskSizeGB", 30),
Map.entry("name", "vhdName"),
Map.entry("osType", "Linux"),
Map.entry("vhd", Map.of("uri", "https://contoso.net/link/vnd.vhd?sp=rl&st=2020-10-08T20:38:19Z&se=2020-12-09T19:38:00Z&sv=2019-12-12&sr=b&sig=7BM2f4yOw%3D"))
))
)),
Map.entry("virtualMachineSize", "Standard_D3_v2")
)))
.networkFunctionType("VirtualNetworkFunction")
.preview(true)
.skuName("TestSku")
.vendorName("TestVendor")
.build());
}
}

Import

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

$ pulumi import azure-native:hybridnetwork:VendorSkus TestSku /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/vendors/{vendorName}/vendorSkus/{skuName}

Constructors

Link copied to clipboard
fun VendorSkusArgs(deploymentMode: Output<Either<String, SkuDeploymentMode>>? = null, managedApplicationParameters: Output<Any>? = null, managedApplicationTemplate: Output<Any>? = null, networkFunctionTemplate: Output<NetworkFunctionTemplateArgs>? = null, networkFunctionType: Output<Either<String, NetworkFunctionType>>? = null, preview: Output<Boolean>? = null, skuName: Output<String>? = null, skuType: Output<Either<String, SkuType>>? = null, vendorName: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): VendorSkusArgs

Properties

Link copied to clipboard
val deploymentMode: Output<Either<String, SkuDeploymentMode>>? = null

The sku deployment mode.

Link copied to clipboard
val managedApplicationParameters: Output<Any>? = null

The parameters for the managed application to be supplied by the vendor.

Link copied to clipboard
val managedApplicationTemplate: Output<Any>? = null

The template for the managed application deployment.

Link copied to clipboard

The template definition of the network function.

Link copied to clipboard
val networkFunctionType: Output<Either<String, NetworkFunctionType>>? = null

The network function type.

Link copied to clipboard
val preview: Output<Boolean>? = null

Indicates if the vendor sku is in preview mode.

Link copied to clipboard
val skuName: Output<String>? = null

The name of the sku.

Link copied to clipboard
val skuType: Output<Either<String, SkuType>>? = null

The sku type.

Link copied to clipboard
val vendorName: Output<String>? = null

The name of the vendor.