We recommend using Azure Native.
azure.streamanalytics.ManagedPrivateEndpoint
Explore with Pulumi AI
Manages a Stream Analytics Managed Private Endpoint.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleAccount = new azure.storage.Account("example", {
name: "examplestorageacc",
resourceGroupName: example.name,
location: example.location,
accountTier: "Standard",
accountReplicationType: "LRS",
accountKind: "StorageV2",
isHnsEnabled: true,
});
const exampleCluster = new azure.streamanalytics.Cluster("example", {
name: "examplestreamanalyticscluster",
resourceGroupName: example.name,
location: example.location,
streamingCapacity: 36,
});
const exampleManagedPrivateEndpoint = new azure.streamanalytics.ManagedPrivateEndpoint("example", {
name: "exampleprivateendpoint",
resourceGroupName: example.name,
streamAnalyticsClusterName: exampleCluster.name,
targetResourceId: exampleAccount.id,
subresourceName: "blob",
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_account = azure.storage.Account("example",
name="examplestorageacc",
resource_group_name=example.name,
location=example.location,
account_tier="Standard",
account_replication_type="LRS",
account_kind="StorageV2",
is_hns_enabled=True)
example_cluster = azure.streamanalytics.Cluster("example",
name="examplestreamanalyticscluster",
resource_group_name=example.name,
location=example.location,
streaming_capacity=36)
example_managed_private_endpoint = azure.streamanalytics.ManagedPrivateEndpoint("example",
name="exampleprivateendpoint",
resource_group_name=example.name,
stream_analytics_cluster_name=example_cluster.name,
target_resource_id=example_account.id,
subresource_name="blob")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/streamanalytics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
Name: pulumi.String("examplestorageacc"),
ResourceGroupName: example.Name,
Location: example.Location,
AccountTier: pulumi.String("Standard"),
AccountReplicationType: pulumi.String("LRS"),
AccountKind: pulumi.String("StorageV2"),
IsHnsEnabled: pulumi.Bool(true),
})
if err != nil {
return err
}
exampleCluster, err := streamanalytics.NewCluster(ctx, "example", &streamanalytics.ClusterArgs{
Name: pulumi.String("examplestreamanalyticscluster"),
ResourceGroupName: example.Name,
Location: example.Location,
StreamingCapacity: pulumi.Int(36),
})
if err != nil {
return err
}
_, err = streamanalytics.NewManagedPrivateEndpoint(ctx, "example", &streamanalytics.ManagedPrivateEndpointArgs{
Name: pulumi.String("exampleprivateendpoint"),
ResourceGroupName: example.Name,
StreamAnalyticsClusterName: exampleCluster.Name,
TargetResourceId: exampleAccount.ID(),
SubresourceName: pulumi.String("blob"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleAccount = new Azure.Storage.Account("example", new()
{
Name = "examplestorageacc",
ResourceGroupName = example.Name,
Location = example.Location,
AccountTier = "Standard",
AccountReplicationType = "LRS",
AccountKind = "StorageV2",
IsHnsEnabled = true,
});
var exampleCluster = new Azure.StreamAnalytics.Cluster("example", new()
{
Name = "examplestreamanalyticscluster",
ResourceGroupName = example.Name,
Location = example.Location,
StreamingCapacity = 36,
});
var exampleManagedPrivateEndpoint = new Azure.StreamAnalytics.ManagedPrivateEndpoint("example", new()
{
Name = "exampleprivateendpoint",
ResourceGroupName = example.Name,
StreamAnalyticsClusterName = exampleCluster.Name,
TargetResourceId = exampleAccount.Id,
SubresourceName = "blob",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.streamanalytics.Cluster;
import com.pulumi.azure.streamanalytics.ClusterArgs;
import com.pulumi.azure.streamanalytics.ManagedPrivateEndpoint;
import com.pulumi.azure.streamanalytics.ManagedPrivateEndpointArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.name("examplestorageacc")
.resourceGroupName(example.name())
.location(example.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.accountKind("StorageV2")
.isHnsEnabled("true")
.build());
var exampleCluster = new Cluster("exampleCluster", ClusterArgs.builder()
.name("examplestreamanalyticscluster")
.resourceGroupName(example.name())
.location(example.location())
.streamingCapacity(36)
.build());
var exampleManagedPrivateEndpoint = new ManagedPrivateEndpoint("exampleManagedPrivateEndpoint", ManagedPrivateEndpointArgs.builder()
.name("exampleprivateendpoint")
.resourceGroupName(example.name())
.streamAnalyticsClusterName(exampleCluster.name())
.targetResourceId(exampleAccount.id())
.subresourceName("blob")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleAccount:
type: azure:storage:Account
name: example
properties:
name: examplestorageacc
resourceGroupName: ${example.name}
location: ${example.location}
accountTier: Standard
accountReplicationType: LRS
accountKind: StorageV2
isHnsEnabled: 'true'
exampleCluster:
type: azure:streamanalytics:Cluster
name: example
properties:
name: examplestreamanalyticscluster
resourceGroupName: ${example.name}
location: ${example.location}
streamingCapacity: 36
exampleManagedPrivateEndpoint:
type: azure:streamanalytics:ManagedPrivateEndpoint
name: example
properties:
name: exampleprivateendpoint
resourceGroupName: ${example.name}
streamAnalyticsClusterName: ${exampleCluster.name}
targetResourceId: ${exampleAccount.id}
subresourceName: blob
Create ManagedPrivateEndpoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagedPrivateEndpoint(name: string, args: ManagedPrivateEndpointArgs, opts?: CustomResourceOptions);
@overload
def ManagedPrivateEndpoint(resource_name: str,
args: ManagedPrivateEndpointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagedPrivateEndpoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
stream_analytics_cluster_name: Optional[str] = None,
subresource_name: Optional[str] = None,
target_resource_id: Optional[str] = None,
name: Optional[str] = None)
func NewManagedPrivateEndpoint(ctx *Context, name string, args ManagedPrivateEndpointArgs, opts ...ResourceOption) (*ManagedPrivateEndpoint, error)
public ManagedPrivateEndpoint(string name, ManagedPrivateEndpointArgs args, CustomResourceOptions? opts = null)
public ManagedPrivateEndpoint(String name, ManagedPrivateEndpointArgs args)
public ManagedPrivateEndpoint(String name, ManagedPrivateEndpointArgs args, CustomResourceOptions options)
type: azure:streamanalytics:ManagedPrivateEndpoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ManagedPrivateEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ManagedPrivateEndpointArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ManagedPrivateEndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagedPrivateEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagedPrivateEndpointArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azureManagedPrivateEndpointResource = new Azure.StreamAnalytics.ManagedPrivateEndpoint("azureManagedPrivateEndpointResource", new()
{
ResourceGroupName = "string",
StreamAnalyticsClusterName = "string",
SubresourceName = "string",
TargetResourceId = "string",
Name = "string",
});
example, err := streamanalytics.NewManagedPrivateEndpoint(ctx, "azureManagedPrivateEndpointResource", &streamanalytics.ManagedPrivateEndpointArgs{
ResourceGroupName: pulumi.String("string"),
StreamAnalyticsClusterName: pulumi.String("string"),
SubresourceName: pulumi.String("string"),
TargetResourceId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var azureManagedPrivateEndpointResource = new ManagedPrivateEndpoint("azureManagedPrivateEndpointResource", ManagedPrivateEndpointArgs.builder()
.resourceGroupName("string")
.streamAnalyticsClusterName("string")
.subresourceName("string")
.targetResourceId("string")
.name("string")
.build());
azure_managed_private_endpoint_resource = azure.streamanalytics.ManagedPrivateEndpoint("azureManagedPrivateEndpointResource",
resource_group_name="string",
stream_analytics_cluster_name="string",
subresource_name="string",
target_resource_id="string",
name="string")
const azureManagedPrivateEndpointResource = new azure.streamanalytics.ManagedPrivateEndpoint("azureManagedPrivateEndpointResource", {
resourceGroupName: "string",
streamAnalyticsClusterName: "string",
subresourceName: "string",
targetResourceId: "string",
name: "string",
});
type: azure:streamanalytics:ManagedPrivateEndpoint
properties:
name: string
resourceGroupName: string
streamAnalyticsClusterName: string
subresourceName: string
targetResourceId: string
ManagedPrivateEndpoint Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ManagedPrivateEndpoint resource accepts the following input properties:
- Resource
Group stringName - The name of the Resource Group where the Stream Analytics Managed Private Endpoint should exist. Changing this forces a new resource to be created.
- Stream
Analytics stringCluster Name - The name of the Stream Analytics Cluster where the Managed Private Endpoint should be created. Changing this forces a new resource to be created.
- Subresource
Name string - Specifies the sub resource name which the Stream Analytics Private Endpoint is able to connect to. Changing this forces a new resource to be created.
- Target
Resource stringId - The ID of the Private Link Enabled Remote Resource which this Stream Analytics Private endpoint should be connected to. Changing this forces a new resource to be created.
- Name string
- The name which should be used for this Stream Analytics Managed Private Endpoint. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group where the Stream Analytics Managed Private Endpoint should exist. Changing this forces a new resource to be created.
- Stream
Analytics stringCluster Name - The name of the Stream Analytics Cluster where the Managed Private Endpoint should be created. Changing this forces a new resource to be created.
- Subresource
Name string - Specifies the sub resource name which the Stream Analytics Private Endpoint is able to connect to. Changing this forces a new resource to be created.
- Target
Resource stringId - The ID of the Private Link Enabled Remote Resource which this Stream Analytics Private endpoint should be connected to. Changing this forces a new resource to be created.
- Name string
- The name which should be used for this Stream Analytics Managed Private Endpoint. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group where the Stream Analytics Managed Private Endpoint should exist. Changing this forces a new resource to be created.
- stream
Analytics StringCluster Name - The name of the Stream Analytics Cluster where the Managed Private Endpoint should be created. Changing this forces a new resource to be created.
- subresource
Name String - Specifies the sub resource name which the Stream Analytics Private Endpoint is able to connect to. Changing this forces a new resource to be created.
- target
Resource StringId - The ID of the Private Link Enabled Remote Resource which this Stream Analytics Private endpoint should be connected to. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Stream Analytics Managed Private Endpoint. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the Resource Group where the Stream Analytics Managed Private Endpoint should exist. Changing this forces a new resource to be created.
- stream
Analytics stringCluster Name - The name of the Stream Analytics Cluster where the Managed Private Endpoint should be created. Changing this forces a new resource to be created.
- subresource
Name string - Specifies the sub resource name which the Stream Analytics Private Endpoint is able to connect to. Changing this forces a new resource to be created.
- target
Resource stringId - The ID of the Private Link Enabled Remote Resource which this Stream Analytics Private endpoint should be connected to. Changing this forces a new resource to be created.
- name string
- The name which should be used for this Stream Analytics Managed Private Endpoint. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the Resource Group where the Stream Analytics Managed Private Endpoint should exist. Changing this forces a new resource to be created.
- stream_
analytics_ strcluster_ name - The name of the Stream Analytics Cluster where the Managed Private Endpoint should be created. Changing this forces a new resource to be created.
- subresource_
name str - Specifies the sub resource name which the Stream Analytics Private Endpoint is able to connect to. Changing this forces a new resource to be created.
- target_
resource_ strid - The ID of the Private Link Enabled Remote Resource which this Stream Analytics Private endpoint should be connected to. Changing this forces a new resource to be created.
- name str
- The name which should be used for this Stream Analytics Managed Private Endpoint. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group where the Stream Analytics Managed Private Endpoint should exist. Changing this forces a new resource to be created.
- stream
Analytics StringCluster Name - The name of the Stream Analytics Cluster where the Managed Private Endpoint should be created. Changing this forces a new resource to be created.
- subresource
Name String - Specifies the sub resource name which the Stream Analytics Private Endpoint is able to connect to. Changing this forces a new resource to be created.
- target
Resource StringId - The ID of the Private Link Enabled Remote Resource which this Stream Analytics Private endpoint should be connected to. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Stream Analytics Managed Private Endpoint. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagedPrivateEndpoint resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ManagedPrivateEndpoint Resource
Get an existing ManagedPrivateEndpoint resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ManagedPrivateEndpointState, opts?: CustomResourceOptions): ManagedPrivateEndpoint
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
stream_analytics_cluster_name: Optional[str] = None,
subresource_name: Optional[str] = None,
target_resource_id: Optional[str] = None) -> ManagedPrivateEndpoint
func GetManagedPrivateEndpoint(ctx *Context, name string, id IDInput, state *ManagedPrivateEndpointState, opts ...ResourceOption) (*ManagedPrivateEndpoint, error)
public static ManagedPrivateEndpoint Get(string name, Input<string> id, ManagedPrivateEndpointState? state, CustomResourceOptions? opts = null)
public static ManagedPrivateEndpoint get(String name, Output<String> id, ManagedPrivateEndpointState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Name string
- The name which should be used for this Stream Analytics Managed Private Endpoint. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group where the Stream Analytics Managed Private Endpoint should exist. Changing this forces a new resource to be created.
- Stream
Analytics stringCluster Name - The name of the Stream Analytics Cluster where the Managed Private Endpoint should be created. Changing this forces a new resource to be created.
- Subresource
Name string - Specifies the sub resource name which the Stream Analytics Private Endpoint is able to connect to. Changing this forces a new resource to be created.
- Target
Resource stringId - The ID of the Private Link Enabled Remote Resource which this Stream Analytics Private endpoint should be connected to. Changing this forces a new resource to be created.
- Name string
- The name which should be used for this Stream Analytics Managed Private Endpoint. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group where the Stream Analytics Managed Private Endpoint should exist. Changing this forces a new resource to be created.
- Stream
Analytics stringCluster Name - The name of the Stream Analytics Cluster where the Managed Private Endpoint should be created. Changing this forces a new resource to be created.
- Subresource
Name string - Specifies the sub resource name which the Stream Analytics Private Endpoint is able to connect to. Changing this forces a new resource to be created.
- Target
Resource stringId - The ID of the Private Link Enabled Remote Resource which this Stream Analytics Private endpoint should be connected to. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Stream Analytics Managed Private Endpoint. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group where the Stream Analytics Managed Private Endpoint should exist. Changing this forces a new resource to be created.
- stream
Analytics StringCluster Name - The name of the Stream Analytics Cluster where the Managed Private Endpoint should be created. Changing this forces a new resource to be created.
- subresource
Name String - Specifies the sub resource name which the Stream Analytics Private Endpoint is able to connect to. Changing this forces a new resource to be created.
- target
Resource StringId - The ID of the Private Link Enabled Remote Resource which this Stream Analytics Private endpoint should be connected to. Changing this forces a new resource to be created.
- name string
- The name which should be used for this Stream Analytics Managed Private Endpoint. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the Resource Group where the Stream Analytics Managed Private Endpoint should exist. Changing this forces a new resource to be created.
- stream
Analytics stringCluster Name - The name of the Stream Analytics Cluster where the Managed Private Endpoint should be created. Changing this forces a new resource to be created.
- subresource
Name string - Specifies the sub resource name which the Stream Analytics Private Endpoint is able to connect to. Changing this forces a new resource to be created.
- target
Resource stringId - The ID of the Private Link Enabled Remote Resource which this Stream Analytics Private endpoint should be connected to. Changing this forces a new resource to be created.
- name str
- The name which should be used for this Stream Analytics Managed Private Endpoint. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the Resource Group where the Stream Analytics Managed Private Endpoint should exist. Changing this forces a new resource to be created.
- stream_
analytics_ strcluster_ name - The name of the Stream Analytics Cluster where the Managed Private Endpoint should be created. Changing this forces a new resource to be created.
- subresource_
name str - Specifies the sub resource name which the Stream Analytics Private Endpoint is able to connect to. Changing this forces a new resource to be created.
- target_
resource_ strid - The ID of the Private Link Enabled Remote Resource which this Stream Analytics Private endpoint should be connected to. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Stream Analytics Managed Private Endpoint. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group where the Stream Analytics Managed Private Endpoint should exist. Changing this forces a new resource to be created.
- stream
Analytics StringCluster Name - The name of the Stream Analytics Cluster where the Managed Private Endpoint should be created. Changing this forces a new resource to be created.
- subresource
Name String - Specifies the sub resource name which the Stream Analytics Private Endpoint is able to connect to. Changing this forces a new resource to be created.
- target
Resource StringId - The ID of the Private Link Enabled Remote Resource which this Stream Analytics Private endpoint should be connected to. Changing this forces a new resource to be created.
Import
Stream Analytics Private Endpoints can be imported using the resource id
, e.g.
$ pulumi import azure:streamanalytics/managedPrivateEndpoint:ManagedPrivateEndpoint example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.StreamAnalytics/clusters/cluster1/privateEndpoints/endpoint1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.