-
Notifications
You must be signed in to change notification settings - Fork 0
/
ServiceBus.cs
33 lines (30 loc) · 1.08 KB
/
ServiceBus.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using Pulumi.AzureNative.Resources;
using Pulumi.AzureNative.ServiceBus;
namespace PulumiAzureServiceBusSample
{
internal class ServiceBus
{
public static void CreateResources(ResourceGroup resourceGroup)
{
// Create an Azure Service Bus Namespace
var serviceBusNamespace = new Namespace("sbns-pulumi-sample",
new NamespaceArgs
{
ResourceGroupName = resourceGroup.Name
});
// Create an Azure Service Bus Topic
var topic = new Topic("sbt-pulumi-sample", new TopicArgs
{
ResourceGroupName = resourceGroup.Name,
NamespaceName = serviceBusNamespace.Name,
});
// Create an Azure Service Bus Topic Subscription
var subscription = new Subscription("sbs-pulumi-sample", new SubscriptionArgs
{
ResourceGroupName = resourceGroup.Name,
NamespaceName = serviceBusNamespace.Name,
TopicName = topic.Name
});
}
}
}