When creating a new subscription and choosing azure service bus for example, you also need to provider the required fields for other destination types.
For example, region and uri are not relevant for the azure service bus destination
new Pulumi.Commercetools.Subscription("Index update", new Pulumi.Commercetools.SubscriptionArgs
{
Key = "index-update",
Destination = new SubscriptionDestinationArgs
{
Type = "azure_servicebus",
ConnectionString = IndexUpdateConnectionString,
Region = "not_used",
Uri = "http://notused.com",
},
Messages = new List<SubscriptionMessageArgs>
{
new SubscriptionMessageArgs
{
ResourceTypeId = "product",
Types = new List<string>
{
"ProductPublished"
}
}
},
});
When creating a new subscription and choosing azure service bus for example, you also need to provider the required fields for other destination types.
For example, region and uri are not relevant for the azure service bus destination