1. Packages
  2. Packages
  3. Azure Classic
  4. API Docs
  5. streamanalytics
  6. getJob

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Use this data source to access information about an existing Stream Analytics Job.

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var example = Output.Create(Azure.StreamAnalytics.GetJob.InvokeAsync(new Azure.StreamAnalytics.GetJobArgs
            {
                Name = "example-job",
                ResourceGroupName = "example-resources",
            }));
            this.JobId = example.Apply(example => example.JobId);
        }
    
        [Output("jobId")]
        public Output<string> JobId { get; set; }
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/streamanalytics"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := streamanalytics.LookupJob(ctx, &streamanalytics.LookupJobArgs{
    			Name:              "example-job",
    			ResourceGroupName: "example-resources",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("jobId", example.JobId)
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.streamanalytics.getJob({
        name: "example-job",
        resourceGroupName: "example-resources",
    });
    export const jobId = example.then(example => example.jobId);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.streamanalytics.get_job(name="example-job",
        resource_group_name="example-resources")
    pulumi.export("jobId", example.job_id)
    

    Example coming soon!

    Using getJob

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getJob(args: GetJobArgs, opts?: InvokeOptions): Promise<GetJobResult>
    function getJobOutput(args: GetJobOutputArgs, opts?: InvokeOptions): Output<GetJobResult>
    def get_job(name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetJobResult
    def get_job_output(name: Optional[pulumi.Input[str]] = None,
                resource_group_name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetJobResult]
    func LookupJob(ctx *Context, args *LookupJobArgs, opts ...InvokeOption) (*LookupJobResult, error)
    func LookupJobOutput(ctx *Context, args *LookupJobOutputArgs, opts ...InvokeOption) LookupJobResultOutput

    > Note: This function is named LookupJob in the Go SDK.

    public static class GetJob 
    {
        public static Task<GetJobResult> InvokeAsync(GetJobArgs args, InvokeOptions? opts = null)
        public static Output<GetJobResult> Invoke(GetJobInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetJobResult> getJob(GetJobArgs args, InvokeOptions options)
    public static Output<GetJobResult> getJob(GetJobArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure:streamanalytics/getJob:getJob
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Specifies the name of the Stream Analytics Job.
    ResourceGroupName string
    Specifies the name of the resource group the Stream Analytics Job is located in.
    Name string
    Specifies the name of the Stream Analytics Job.
    ResourceGroupName string
    Specifies the name of the resource group the Stream Analytics Job is located in.
    name String
    Specifies the name of the Stream Analytics Job.
    resourceGroupName String
    Specifies the name of the resource group the Stream Analytics Job is located in.
    name string
    Specifies the name of the Stream Analytics Job.
    resourceGroupName string
    Specifies the name of the resource group the Stream Analytics Job is located in.
    name str
    Specifies the name of the Stream Analytics Job.
    resource_group_name str
    Specifies the name of the resource group the Stream Analytics Job is located in.
    name String
    Specifies the name of the Stream Analytics Job.
    resourceGroupName String
    Specifies the name of the resource group the Stream Analytics Job is located in.

    getJob Result

    The following output properties are available:

    CompatibilityLevel string
    The compatibility level for this job.
    DataLocale string
    The Data Locale of the Job.
    EventsLateArrivalMaxDelayInSeconds int
    The maximum tolerable delay in seconds where events arriving late could be included.
    EventsOutOfOrderMaxDelayInSeconds int
    The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in order.
    EventsOutOfOrderPolicy string
    The policy which should be applied to events which arrive out of order in the input event stream.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities List<GetJobIdentity>
    (Optional) An identity block as defined below.
    JobId string
    The Job ID assigned by the Stream Analytics Job.
    Location string
    The Azure location where the Stream Analytics Job exists.
    Name string
    OutputErrorPolicy string
    The policy which should be applied to events which arrive at the output and cannot be written to the external storage due to being malformed (such as missing column values, column values of wrong type or size).
    ResourceGroupName string
    StreamingUnits int
    The number of streaming units that the streaming job uses.
    TransformationQuery string
    The query that will be run in the streaming job, written in Stream Analytics Query Language (SAQL).
    CompatibilityLevel string
    The compatibility level for this job.
    DataLocale string
    The Data Locale of the Job.
    EventsLateArrivalMaxDelayInSeconds int
    The maximum tolerable delay in seconds where events arriving late could be included.
    EventsOutOfOrderMaxDelayInSeconds int
    The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in order.
    EventsOutOfOrderPolicy string
    The policy which should be applied to events which arrive out of order in the input event stream.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities []GetJobIdentity
    (Optional) An identity block as defined below.
    JobId string
    The Job ID assigned by the Stream Analytics Job.
    Location string
    The Azure location where the Stream Analytics Job exists.
    Name string
    OutputErrorPolicy string
    The policy which should be applied to events which arrive at the output and cannot be written to the external storage due to being malformed (such as missing column values, column values of wrong type or size).
    ResourceGroupName string
    StreamingUnits int
    The number of streaming units that the streaming job uses.
    TransformationQuery string
    The query that will be run in the streaming job, written in Stream Analytics Query Language (SAQL).
    compatibilityLevel String
    The compatibility level for this job.
    dataLocale String
    The Data Locale of the Job.
    eventsLateArrivalMaxDelayInSeconds Integer
    The maximum tolerable delay in seconds where events arriving late could be included.
    eventsOutOfOrderMaxDelayInSeconds Integer
    The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in order.
    eventsOutOfOrderPolicy String
    The policy which should be applied to events which arrive out of order in the input event stream.
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<GetJobIdentity>
    (Optional) An identity block as defined below.
    jobId String
    The Job ID assigned by the Stream Analytics Job.
    location String
    The Azure location where the Stream Analytics Job exists.
    name String
    outputErrorPolicy String
    The policy which should be applied to events which arrive at the output and cannot be written to the external storage due to being malformed (such as missing column values, column values of wrong type or size).
    resourceGroupName String
    streamingUnits Integer
    The number of streaming units that the streaming job uses.
    transformationQuery String
    The query that will be run in the streaming job, written in Stream Analytics Query Language (SAQL).
    compatibilityLevel string
    The compatibility level for this job.
    dataLocale string
    The Data Locale of the Job.
    eventsLateArrivalMaxDelayInSeconds number
    The maximum tolerable delay in seconds where events arriving late could be included.
    eventsOutOfOrderMaxDelayInSeconds number
    The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in order.
    eventsOutOfOrderPolicy string
    The policy which should be applied to events which arrive out of order in the input event stream.
    id string
    The provider-assigned unique ID for this managed resource.
    identities GetJobIdentity[]
    (Optional) An identity block as defined below.
    jobId string
    The Job ID assigned by the Stream Analytics Job.
    location string
    The Azure location where the Stream Analytics Job exists.
    name string
    outputErrorPolicy string
    The policy which should be applied to events which arrive at the output and cannot be written to the external storage due to being malformed (such as missing column values, column values of wrong type or size).
    resourceGroupName string
    streamingUnits number
    The number of streaming units that the streaming job uses.
    transformationQuery string
    The query that will be run in the streaming job, written in Stream Analytics Query Language (SAQL).
    compatibility_level str
    The compatibility level for this job.
    data_locale str
    The Data Locale of the Job.
    events_late_arrival_max_delay_in_seconds int
    The maximum tolerable delay in seconds where events arriving late could be included.
    events_out_of_order_max_delay_in_seconds int
    The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in order.
    events_out_of_order_policy str
    The policy which should be applied to events which arrive out of order in the input event stream.
    id str
    The provider-assigned unique ID for this managed resource.
    identities Sequence[GetJobIdentity]
    (Optional) An identity block as defined below.
    job_id str
    The Job ID assigned by the Stream Analytics Job.
    location str
    The Azure location where the Stream Analytics Job exists.
    name str
    output_error_policy str
    The policy which should be applied to events which arrive at the output and cannot be written to the external storage due to being malformed (such as missing column values, column values of wrong type or size).
    resource_group_name str
    streaming_units int
    The number of streaming units that the streaming job uses.
    transformation_query str
    The query that will be run in the streaming job, written in Stream Analytics Query Language (SAQL).
    compatibilityLevel String
    The compatibility level for this job.
    dataLocale String
    The Data Locale of the Job.
    eventsLateArrivalMaxDelayInSeconds Number
    The maximum tolerable delay in seconds where events arriving late could be included.
    eventsOutOfOrderMaxDelayInSeconds Number
    The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in order.
    eventsOutOfOrderPolicy String
    The policy which should be applied to events which arrive out of order in the input event stream.
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<Property Map>
    (Optional) An identity block as defined below.
    jobId String
    The Job ID assigned by the Stream Analytics Job.
    location String
    The Azure location where the Stream Analytics Job exists.
    name String
    outputErrorPolicy String
    The policy which should be applied to events which arrive at the output and cannot be written to the external storage due to being malformed (such as missing column values, column values of wrong type or size).
    resourceGroupName String
    streamingUnits Number
    The number of streaming units that the streaming job uses.
    transformationQuery String
    The query that will be run in the streaming job, written in Stream Analytics Query Language (SAQL).

    Supporting Types

    GetJobIdentity

    PrincipalId string
    The ID of the Principal (Client) in Azure Active Directory.
    TenantId string
    The ID of the Azure Active Directory Tenant.
    Type string
    The type of identity used for the Stream Analytics Job.
    PrincipalId string
    The ID of the Principal (Client) in Azure Active Directory.
    TenantId string
    The ID of the Azure Active Directory Tenant.
    Type string
    The type of identity used for the Stream Analytics Job.
    principalId String
    The ID of the Principal (Client) in Azure Active Directory.
    tenantId String
    The ID of the Azure Active Directory Tenant.
    type String
    The type of identity used for the Stream Analytics Job.
    principalId string
    The ID of the Principal (Client) in Azure Active Directory.
    tenantId string
    The ID of the Azure Active Directory Tenant.
    type string
    The type of identity used for the Stream Analytics Job.
    principal_id str
    The ID of the Principal (Client) in Azure Active Directory.
    tenant_id str
    The ID of the Azure Active Directory Tenant.
    type str
    The type of identity used for the Stream Analytics Job.
    principalId String
    The ID of the Principal (Client) in Azure Active Directory.
    tenantId String
    The ID of the Azure Active Directory Tenant.
    type String
    The type of identity used for the Stream Analytics Job.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial