We will be sunsetting Advisor during Jan, 2026 and will instead be providing information in Snyk Security DB.

You can begin to take advantage of Snyk Security DB today for a unified, package-centric experience.

How to use the @pulumi/azure.eventhub function in @pulumi/azure

To help you get started, we’ve selected a few @pulumi/azure examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pulumi / examples / azure-ts-stream-analytics / index.ts View on Github external
// Copyright 2016-2019, Pulumi Corporation.  All rights reserved.

import * as azure from "@pulumi/azure";
import * as pulumi from "@pulumi/pulumi";
import { createSharedAccessToken } from "./token";

// Create an Azure Resource Group
const resourceGroup = new azure.core.ResourceGroup("streams-rg");

// Define an Event Hub Namespace with two Hubs for an input and an output data streams
const namespace = new azure.eventhub.EventHubNamespace("streams-ns", {
    resourceGroupName: resourceGroup.name,
    sku: "standard",
});

const inputHub = new azure.eventhub.EventHub("inputs", {
    resourceGroupName: resourceGroup.name,
    namespaceName: namespace.name,
    partitionCount: 2,
    messageRetention: 7,
});

const consumerGroup = new azure.eventhub.EventHubConsumerGroup("analytics", {
    resourceGroupName: resourceGroup.name,
    namespaceName: namespace.name,
    eventhubName: inputHub.name,
});
github pulumi / examples / azure-ts-stream-analytics / index.ts View on Github external
// Copyright 2016-2019, Pulumi Corporation.  All rights reserved.

import * as azure from "@pulumi/azure";
import * as pulumi from "@pulumi/pulumi";
import { createSharedAccessToken } from "./token";

// Create an Azure Resource Group
const resourceGroup = new azure.core.ResourceGroup("streams-rg");

// Define an Event Hub Namespace with two Hubs for an input and an output data streams
const namespace = new azure.eventhub.EventHubNamespace("streams-ns", {
    resourceGroupName: resourceGroup.name,
    sku: "standard",
});

const inputHub = new azure.eventhub.EventHub("inputs", {
    resourceGroupName: resourceGroup.name,
    namespaceName: namespace.name,
    partitionCount: 2,
    messageRetention: 7,
});

const consumerGroup = new azure.eventhub.EventHubConsumerGroup("analytics", {
    resourceGroupName: resourceGroup.name,
    namespaceName: namespace.name,
    eventhubName: inputHub.name,
});

const outputHub = new azure.eventhub.EventHub("outputs", {
    resourceGroupName: resourceGroup.name,
    namespaceName: namespace.name,
    partitionCount: 2,
github pulumi / pulumi-cloud / azure / topic.ts View on Github external
constructor(name: string, opts?: pulumi.ResourceOptions) {
        super("cloud:topic:Topic", name, {}, opts);

        const namespace = new azure.eventhub.Namespace(name, {
            location: shared.location,
            resourceGroupName: shared.globalResourceGroupName,
            // topics are only supported in standard and premium.
            sku: "standard",
        }, { parent: this });

        const topic = new azure.eventhub.Topic(name, {
            resourceGroupName: shared.globalResourceGroupName,
            namespaceName: namespace.name,
        }, { parent: this });

        this.namespace = namespace;
        this.topic = topic;

        this.subscribe = (name, handler) => {
            const subscription = serverless.eventhub.onTopicEvent(
                name, namespace, topic, {
                    ...shared.defaultSubscriptionArgs,
                    func: (context, val) => {
                        handler(val).then(() => context.done());
                    },
                }, { parent: this });
github pulumi / pulumi-cloud / azure / topic.ts View on Github external
constructor(name: string, opts?: pulumi.ResourceOptions) {
        super("cloud:topic:Topic", name, {}, opts);

        const namespace = new azure.eventhub.Namespace(name, {
            location: shared.location,
            resourceGroupName: shared.globalResourceGroupName,
            // topics are only supported in standard and premium.
            sku: "standard",
        }, { parent: this });

        const topic = new azure.eventhub.Topic(name, {
            resourceGroupName: shared.globalResourceGroupName,
            namespaceName: namespace.name,
        }, { parent: this });

        this.namespace = namespace;
        this.topic = topic;

        this.subscribe = (name, handler) => {
            const subscription = serverless.eventhub.onTopicEvent(

@pulumi/azure

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Nat

Apache-2.0
Latest version published 1 month ago

Package Health Score

87 / 100
Full package analysis