Deployment Setting
Edge device resource Azure REST API version: 2023-08-01-preview. Other available API versions: 2023-11-01-preview.
Example Usage
Create Deployment Settings
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var deploymentSetting = new AzureNative.AzureStackHCI.DeploymentSetting("deploymentSetting", new()
{
ArcNodeResourceIds = new[]
{
"/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
"/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2",
},
ClusterName = "myCluster",
DeploymentConfiguration = new AzureNative.AzureStackHCI.Inputs.DeploymentConfigurationArgs
{
ScaleUnits = new[]
{
new AzureNative.AzureStackHCI.Inputs.ScaleUnitsArgs
{
DeploymentData = new AzureNative.AzureStackHCI.Inputs.DeploymentDataArgs
{
AdouPath = "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com",
Cluster = new AzureNative.AzureStackHCI.Inputs.ClusterArgs
{
AzureServiceEndpoint = "core.windows.net",
CloudAccountName = "myasestoragacct",
Name = "testHCICluster",
WitnessPath = "Cloud",
WitnessType = "Cloud",
},
DomainFqdn = "ASZ1PLab8.nttest.microsoft.com",
HostNetwork = new AzureNative.AzureStackHCI.Inputs.HostNetworkArgs
{
Intents = new[]
{
new AzureNative.AzureStackHCI.Inputs.IntentsArgs
{
Adapter = new[]
{
"Port2",
},
AdapterPropertyOverrides = new AzureNative.AzureStackHCI.Inputs.AdapterPropertyOverridesArgs
{
JumboPacket = "1514",
NetworkDirect = "Enabled",
NetworkDirectTechnology = "iWARP",
},
Name = "Compute_Management",
OverrideAdapterProperty = false,
OverrideQosPolicy = false,
OverrideVirtualSwitchConfiguration = false,
QosPolicyOverrides = new AzureNative.AzureStackHCI.Inputs.QosPolicyOverridesArgs
{
BandwidthPercentageSMB = "50",
PriorityValue8021ActionCluster = "7",
PriorityValue8021ActionSMB = "3",
},
TrafficType = new[]
{
"Compute",
"Management",
},
VirtualSwitchConfigurationOverrides = new AzureNative.AzureStackHCI.Inputs.VirtualSwitchConfigurationOverridesArgs
{
EnableIov = "True",
LoadBalancingAlgorithm = "HyperVPort",
},
},
},
StorageConnectivitySwitchless = true,
StorageNetworks = new[]
{
new AzureNative.AzureStackHCI.Inputs.StorageNetworksArgs
{
Name = "Storage1Network",
NetworkAdapterName = "Port3",
VlanId = "5",
},
},
},
InfrastructureNetwork = new[]
{
new AzureNative.AzureStackHCI.Inputs.InfrastructureNetworkArgs
{
DnsServers = new[]
{
"10.57.50.90",
},
Gateway = "255.255.248.0",
IpPools = new[]
{
new AzureNative.AzureStackHCI.Inputs.IpPoolsArgs
{
EndingAddress = "10.57.48.66",
StartingAddress = "10.57.48.60",
},
},
SubnetMask = "255.255.248.0",
},
},
NamingPrefix = "ms169",
Observability = new AzureNative.AzureStackHCI.Inputs.ObservabilityArgs
{
EpisodicDataUpload = true,
EuLocation = false,
StreamingDataClient = true,
},
OptionalServices = new AzureNative.AzureStackHCI.Inputs.OptionalServicesArgs
{
CustomLocation = "customLocationName",
},
PhysicalNodes = new[]
{
new AzureNative.AzureStackHCI.Inputs.PhysicalNodesArgs
{
Ipv4Address = "10.57.51.224",
Name = "ms169host",
},
new AzureNative.AzureStackHCI.Inputs.PhysicalNodesArgs
{
Ipv4Address = "10.57.53.236",
Name = "ms154host",
},
},
SecretsLocation = "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123",
SecuritySettings = new AzureNative.AzureStackHCI.Inputs.SecuritySettingsArgs
{
BitlockerBootVolume = true,
BitlockerDataVolumes = true,
CredentialGuardEnforced = false,
DriftControlEnforced = true,
DrtmProtection = true,
HvciProtection = true,
SideChannelMitigationEnforced = true,
SmbClusterEncryption = false,
SmbSigningEnforced = true,
WdacEnforced = true,
},
Storage = new AzureNative.AzureStackHCI.Inputs.StorageArgs
{
ConfigurationMode = "Express",
},
},
},
},
Version = "string",
},
DeploymentMode = "Deploy",
DeploymentSettingsName = "default",
ResourceGroupName = "test-rg",
});
});Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/azurestackhci/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azurestackhci.NewDeploymentSetting(ctx, "deploymentSetting", &azurestackhci.DeploymentSettingArgs{
ArcNodeResourceIds: pulumi.StringArray{
pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1"),
pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2"),
},
ClusterName: pulumi.String("myCluster"),
DeploymentConfiguration: azurestackhci.DeploymentConfigurationResponse{
ScaleUnits: azurestackhci.ScaleUnitsArray{
interface{}{
DeploymentData: interface{}{
AdouPath: pulumi.String("OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com"),
Cluster: &azurestackhci.ClusterTypeArgs{
AzureServiceEndpoint: pulumi.String("core.windows.net"),
CloudAccountName: pulumi.String("myasestoragacct"),
Name: pulumi.String("testHCICluster"),
WitnessPath: pulumi.String("Cloud"),
WitnessType: pulumi.String("Cloud"),
},
DomainFqdn: pulumi.String("ASZ1PLab8.nttest.microsoft.com"),
HostNetwork: interface{}{
Intents: azurestackhci.IntentsArray{
interface{}{
Adapter: pulumi.StringArray{
pulumi.String("Port2"),
},
AdapterPropertyOverrides: &azurestackhci.AdapterPropertyOverridesArgs{
JumboPacket: pulumi.String("1514"),
NetworkDirect: pulumi.String("Enabled"),
NetworkDirectTechnology: pulumi.String("iWARP"),
},
Name: pulumi.String("Compute_Management"),
OverrideAdapterProperty: pulumi.Bool(false),
OverrideQosPolicy: pulumi.Bool(false),
OverrideVirtualSwitchConfiguration: pulumi.Bool(false),
QosPolicyOverrides: &azurestackhci.QosPolicyOverridesArgs{
BandwidthPercentageSMB: pulumi.String("50"),
PriorityValue8021ActionCluster: pulumi.String("7"),
PriorityValue8021ActionSMB: pulumi.String("3"),
},
TrafficType: pulumi.StringArray{
pulumi.String("Compute"),
pulumi.String("Management"),
},
VirtualSwitchConfigurationOverrides: &azurestackhci.VirtualSwitchConfigurationOverridesArgs{
EnableIov: pulumi.String("True"),
LoadBalancingAlgorithm: pulumi.String("HyperVPort"),
},
},
},
StorageConnectivitySwitchless: pulumi.Bool(true),
StorageNetworks: azurestackhci.StorageNetworksArray{
&azurestackhci.StorageNetworksArgs{
Name: pulumi.String("Storage1Network"),
NetworkAdapterName: pulumi.String("Port3"),
VlanId: pulumi.String("5"),
},
},
},
InfrastructureNetwork: azurestackhci.InfrastructureNetworkArray{
interface{}{
DnsServers: pulumi.StringArray{
pulumi.String("10.57.50.90"),
},
Gateway: pulumi.String("255.255.248.0"),
IpPools: azurestackhci.IpPoolsArray{
&azurestackhci.IpPoolsArgs{
EndingAddress: pulumi.String("10.57.48.66"),
StartingAddress: pulumi.String("10.57.48.60"),
},
},
SubnetMask: pulumi.String("255.255.248.0"),
},
},
NamingPrefix: pulumi.String("ms169"),
Observability: &azurestackhci.ObservabilityArgs{
EpisodicDataUpload: pulumi.Bool(true),
EuLocation: pulumi.Bool(false),
StreamingDataClient: pulumi.Bool(true),
},
OptionalServices: &azurestackhci.OptionalServicesArgs{
CustomLocation: pulumi.String("customLocationName"),
},
PhysicalNodes: azurestackhci.PhysicalNodesArray{
&azurestackhci.PhysicalNodesArgs{
Ipv4Address: pulumi.String("10.57.51.224"),
Name: pulumi.String("ms169host"),
},
&azurestackhci.PhysicalNodesArgs{
Ipv4Address: pulumi.String("10.57.53.236"),
Name: pulumi.String("ms154host"),
},
},
SecretsLocation: pulumi.String("/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123"),
SecuritySettings: &azurestackhci.SecuritySettingsArgs{
BitlockerBootVolume: pulumi.Bool(true),
BitlockerDataVolumes: pulumi.Bool(true),
CredentialGuardEnforced: pulumi.Bool(false),
DriftControlEnforced: pulumi.Bool(true),
DrtmProtection: pulumi.Bool(true),
HvciProtection: pulumi.Bool(true),
SideChannelMitigationEnforced: pulumi.Bool(true),
SmbClusterEncryption: pulumi.Bool(false),
SmbSigningEnforced: pulumi.Bool(true),
WdacEnforced: pulumi.Bool(true),
},
Storage: &azurestackhci.StorageArgs{
ConfigurationMode: pulumi.String("Express"),
},
},
},
},
Version: pulumi.String("string"),
},
DeploymentMode: pulumi.String("Deploy"),
DeploymentSettingsName: pulumi.String("default"),
ResourceGroupName: pulumi.String("test-rg"),
})
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.azurestackhci.DeploymentSetting;
import com.pulumi.azurenative.azurestackhci.DeploymentSettingArgs;
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 deploymentSetting = new DeploymentSetting("deploymentSetting", DeploymentSettingArgs.builder()
.arcNodeResourceIds(
"/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
"/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2")
.clusterName("myCluster")
.deploymentConfiguration(Map.ofEntries(
Map.entry("scaleUnits", Map.of("deploymentData", Map.ofEntries(
Map.entry("adouPath", "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com"),
Map.entry("cluster", Map.ofEntries(
Map.entry("azureServiceEndpoint", "core.windows.net"),
Map.entry("cloudAccountName", "myasestoragacct"),
Map.entry("name", "testHCICluster"),
Map.entry("witnessPath", "Cloud"),
Map.entry("witnessType", "Cloud")
)),
Map.entry("domainFqdn", "ASZ1PLab8.nttest.microsoft.com"),
Map.entry("hostNetwork", Map.ofEntries(
Map.entry("intents", Map.ofEntries(
Map.entry("adapter", "Port2"),
Map.entry("adapterPropertyOverrides", Map.ofEntries(
Map.entry("jumboPacket", "1514"),
Map.entry("networkDirect", "Enabled"),
Map.entry("networkDirectTechnology", "iWARP")
)),
Map.entry("name", "Compute_Management"),
Map.entry("overrideAdapterProperty", false),
Map.entry("overrideQosPolicy", false),
Map.entry("overrideVirtualSwitchConfiguration", false),
Map.entry("qosPolicyOverrides", Map.ofEntries(
Map.entry("bandwidthPercentageSMB", "50"),
Map.entry("priorityValue8021ActionCluster", "7"),
Map.entry("priorityValue8021ActionSMB", "3")
)),
Map.entry("trafficType",
"Compute",
"Management"),
Map.entry("virtualSwitchConfigurationOverrides", Map.ofEntries(
Map.entry("enableIov", "True"),
Map.entry("loadBalancingAlgorithm", "HyperVPort")
))
)),
Map.entry("storageConnectivitySwitchless", true),
Map.entry("storageNetworks", Map.ofEntries(
Map.entry("name", "Storage1Network"),
Map.entry("networkAdapterName", "Port3"),
Map.entry("vlanId", "5")
))
)),
Map.entry("infrastructureNetwork", Map.ofEntries(
Map.entry("dnsServers", "10.57.50.90"),
Map.entry("gateway", "255.255.248.0"),
Map.entry("ipPools", Map.ofEntries(
Map.entry("endingAddress", "10.57.48.66"),
Map.entry("startingAddress", "10.57.48.60")
)),
Map.entry("subnetMask", "255.255.248.0")
)),
Map.entry("namingPrefix", "ms169"),
Map.entry("observability", Map.ofEntries(
Map.entry("episodicDataUpload", true),
Map.entry("euLocation", false),
Map.entry("streamingDataClient", true)
)),
Map.entry("optionalServices", Map.of("customLocation", "customLocationName")),
Map.entry("physicalNodes",
Map.ofEntries(
Map.entry("ipv4Address", "10.57.51.224"),
Map.entry("name", "ms169host")
),
Map.ofEntries(
Map.entry("ipv4Address", "10.57.53.236"),
Map.entry("name", "ms154host")
)),
Map.entry("secretsLocation", "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123"),
Map.entry("securitySettings", Map.ofEntries(
Map.entry("bitlockerBootVolume", true),
Map.entry("bitlockerDataVolumes", true),
Map.entry("credentialGuardEnforced", false),
Map.entry("driftControlEnforced", true),
Map.entry("drtmProtection", true),
Map.entry("hvciProtection", true),
Map.entry("sideChannelMitigationEnforced", true),
Map.entry("smbClusterEncryption", false),
Map.entry("smbSigningEnforced", true),
Map.entry("wdacEnforced", true)
)),
Map.entry("storage", Map.of("configurationMode", "Express"))
))),
Map.entry("version", "string")
))
.deploymentMode("Deploy")
.deploymentSettingsName("default")
.resourceGroupName("test-rg")
.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:azurestackhci:DeploymentSetting default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/deploymentSettings/{deploymentSettingsName}Content copied to clipboard