Dscp Configuration
Differentiated Services Code Point configuration for any given network interface Uses Azure REST API version 2023-02-01. In version 1.x of the Azure Native provider, it used API version 2020-11-01. Other available API versions: 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01, 2024-05-01.
Example Usage
Create DSCP Configuration
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dscpConfiguration = new AzureNative.Network.DscpConfiguration("dscpConfiguration", new()
{
DscpConfigurationName = "mydscpconfig",
Location = "eastus",
QosDefinitionCollection = new[]
{
new AzureNative.Network.Inputs.QosDefinitionArgs
{
DestinationIpRanges = new[]
{
new AzureNative.Network.Inputs.QosIpRangeArgs
{
EndIP = "127.0.10.2",
StartIP = "127.0.10.1",
},
},
DestinationPortRanges = new[]
{
new AzureNative.Network.Inputs.QosPortRangeArgs
{
End = 15,
Start = 15,
},
},
Markings = new[]
{
1,
},
Protocol = AzureNative.Network.ProtocolType.Tcp,
SourceIpRanges = new[]
{
new AzureNative.Network.Inputs.QosIpRangeArgs
{
EndIP = "127.0.0.2",
StartIP = "127.0.0.1",
},
},
SourcePortRanges = new[]
{
new AzureNative.Network.Inputs.QosPortRangeArgs
{
End = 11,
Start = 10,
},
new AzureNative.Network.Inputs.QosPortRangeArgs
{
End = 21,
Start = 20,
},
},
},
new AzureNative.Network.Inputs.QosDefinitionArgs
{
DestinationIpRanges = new[]
{
new AzureNative.Network.Inputs.QosIpRangeArgs
{
EndIP = "12.0.10.2",
StartIP = "12.0.10.1",
},
},
DestinationPortRanges = new[]
{
new AzureNative.Network.Inputs.QosPortRangeArgs
{
End = 52,
Start = 51,
},
},
Markings = new[]
{
2,
},
Protocol = AzureNative.Network.ProtocolType.Udp,
SourceIpRanges = new[]
{
new AzureNative.Network.Inputs.QosIpRangeArgs
{
EndIP = "12.0.0.2",
StartIP = "12.0.0.1",
},
},
SourcePortRanges = new[]
{
new AzureNative.Network.Inputs.QosPortRangeArgs
{
End = 12,
Start = 11,
},
},
},
},
ResourceGroupName = "rg1",
});
});
Content copied to clipboard
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewDscpConfiguration(ctx, "dscpConfiguration", &network.DscpConfigurationArgs{
DscpConfigurationName: pulumi.String("mydscpconfig"),
Location: pulumi.String("eastus"),
QosDefinitionCollection: network.QosDefinitionArray{
&network.QosDefinitionArgs{
DestinationIpRanges: network.QosIpRangeArray{
&network.QosIpRangeArgs{
EndIP: pulumi.String("127.0.10.2"),
StartIP: pulumi.String("127.0.10.1"),
},
},
DestinationPortRanges: network.QosPortRangeArray{
&network.QosPortRangeArgs{
End: pulumi.Int(15),
Start: pulumi.Int(15),
},
},
Markings: pulumi.IntArray{
pulumi.Int(1),
},
Protocol: pulumi.String(network.ProtocolTypeTcp),
SourceIpRanges: network.QosIpRangeArray{
&network.QosIpRangeArgs{
EndIP: pulumi.String("127.0.0.2"),
StartIP: pulumi.String("127.0.0.1"),
},
},
SourcePortRanges: network.QosPortRangeArray{
&network.QosPortRangeArgs{
End: pulumi.Int(11),
Start: pulumi.Int(10),
},
&network.QosPortRangeArgs{
End: pulumi.Int(21),
Start: pulumi.Int(20),
},
},
},
&network.QosDefinitionArgs{
DestinationIpRanges: network.QosIpRangeArray{
&network.QosIpRangeArgs{
EndIP: pulumi.String("12.0.10.2"),
StartIP: pulumi.String("12.0.10.1"),
},
},
DestinationPortRanges: network.QosPortRangeArray{
&network.QosPortRangeArgs{
End: pulumi.Int(52),
Start: pulumi.Int(51),
},
},
Markings: pulumi.IntArray{
pulumi.Int(2),
},
Protocol: pulumi.String(network.ProtocolTypeUdp),
SourceIpRanges: network.QosIpRangeArray{
&network.QosIpRangeArgs{
EndIP: pulumi.String("12.0.0.2"),
StartIP: pulumi.String("12.0.0.1"),
},
},
SourcePortRanges: network.QosPortRangeArray{
&network.QosPortRangeArgs{
End: pulumi.Int(12),
Start: pulumi.Int(11),
},
},
},
},
ResourceGroupName: pulumi.String("rg1"),
})
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.network.DscpConfiguration;
import com.pulumi.azurenative.network.DscpConfigurationArgs;
import com.pulumi.azurenative.network.inputs.QosDefinitionArgs;
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 dscpConfiguration = new DscpConfiguration("dscpConfiguration", DscpConfigurationArgs.builder()
.dscpConfigurationName("mydscpconfig")
.location("eastus")
.qosDefinitionCollection(
QosDefinitionArgs.builder()
.destinationIpRanges(QosIpRangeArgs.builder()
.endIP("127.0.10.2")
.startIP("127.0.10.1")
.build())
.destinationPortRanges(QosPortRangeArgs.builder()
.end(15)
.start(15)
.build())
.markings(1)
.protocol("Tcp")
.sourceIpRanges(QosIpRangeArgs.builder()
.endIP("127.0.0.2")
.startIP("127.0.0.1")
.build())
.sourcePortRanges(
QosPortRangeArgs.builder()
.end(11)
.start(10)
.build(),
QosPortRangeArgs.builder()
.end(21)
.start(20)
.build())
.build(),
QosDefinitionArgs.builder()
.destinationIpRanges(QosIpRangeArgs.builder()
.endIP("12.0.10.2")
.startIP("12.0.10.1")
.build())
.destinationPortRanges(QosPortRangeArgs.builder()
.end(52)
.start(51)
.build())
.markings(2)
.protocol("Udp")
.sourceIpRanges(QosIpRangeArgs.builder()
.endIP("12.0.0.2")
.startIP("12.0.0.1")
.build())
.sourcePortRanges(QosPortRangeArgs.builder()
.end(12)
.start(11)
.build())
.build())
.resourceGroupName("rg1")
.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:network:DscpConfiguration mydscpConfig /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations/{dscpConfigurationName}
Content copied to clipboard
Properties
Link copied to clipboard
Associated Network Interfaces to the DSCP Configuration.
Link copied to clipboard
Destination IP ranges.
Link copied to clipboard
Destination port ranges.
Link copied to clipboard
The provisioning state of the DSCP Configuration resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Qos Collection ID generated by RNM.
Link copied to clipboard
QoS object definitions
Link copied to clipboard
The resource GUID property of the DSCP Configuration resource.
Link copied to clipboard
Source IP ranges.
Link copied to clipboard
Sources port ranges.