We recommend using Azure Native.
azure.mssql.JobTargetGroup
Explore with Pulumi AI
Manages a Job Target Group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "example",
    location: "westeurope",
});
const exampleServer = new azure.mssql.Server("example", {
    name: "example-server",
    location: example.location,
    resourceGroupName: example.name,
    version: "12.0",
    administratorLogin: "4dm1n157r470r",
    administratorLoginPassword: "4-v3ry-53cr37-p455w0rd",
});
const exampleDatabase = new azure.mssql.Database("example", {
    name: "example-db",
    serverId: exampleServer.id,
    collation: "SQL_Latin1_General_CP1_CI_AS",
    skuName: "S1",
});
const exampleJobAgent = new azure.mssql.JobAgent("example", {
    name: "example-job-agent",
    location: example.location,
    databaseId: exampleDatabase.id,
});
const exampleJobCredential = new azure.mssql.JobCredential("example", {
    name: "example-job-credential",
    jobAgentId: exampleJobAgent.id,
    username: "testusername",
    password: "testpassword",
});
const exampleJobTargetGroup = new azure.mssql.JobTargetGroup("example", {
    name: "example-target-group",
    jobAgentId: exampleJobAgent.id,
    jobTargets: [{
        serverName: exampleServer.name,
        jobCredentialId: exampleJobCredential.id,
    }],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="example",
    location="westeurope")
example_server = azure.mssql.Server("example",
    name="example-server",
    location=example.location,
    resource_group_name=example.name,
    version="12.0",
    administrator_login="4dm1n157r470r",
    administrator_login_password="4-v3ry-53cr37-p455w0rd")
example_database = azure.mssql.Database("example",
    name="example-db",
    server_id=example_server.id,
    collation="SQL_Latin1_General_CP1_CI_AS",
    sku_name="S1")
example_job_agent = azure.mssql.JobAgent("example",
    name="example-job-agent",
    location=example.location,
    database_id=example_database.id)
example_job_credential = azure.mssql.JobCredential("example",
    name="example-job-credential",
    job_agent_id=example_job_agent.id,
    username="testusername",
    password="testpassword")
example_job_target_group = azure.mssql.JobTargetGroup("example",
    name="example-target-group",
    job_agent_id=example_job_agent.id,
    job_targets=[{
        "server_name": example_server.name,
        "job_credential_id": example_job_credential.id,
    }])
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/mssql"
	"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"),
			Location: pulumi.String("westeurope"),
		})
		if err != nil {
			return err
		}
		exampleServer, err := mssql.NewServer(ctx, "example", &mssql.ServerArgs{
			Name:                       pulumi.String("example-server"),
			Location:                   example.Location,
			ResourceGroupName:          example.Name,
			Version:                    pulumi.String("12.0"),
			AdministratorLogin:         pulumi.String("4dm1n157r470r"),
			AdministratorLoginPassword: pulumi.String("4-v3ry-53cr37-p455w0rd"),
		})
		if err != nil {
			return err
		}
		exampleDatabase, err := mssql.NewDatabase(ctx, "example", &mssql.DatabaseArgs{
			Name:      pulumi.String("example-db"),
			ServerId:  exampleServer.ID(),
			Collation: pulumi.String("SQL_Latin1_General_CP1_CI_AS"),
			SkuName:   pulumi.String("S1"),
		})
		if err != nil {
			return err
		}
		exampleJobAgent, err := mssql.NewJobAgent(ctx, "example", &mssql.JobAgentArgs{
			Name:       pulumi.String("example-job-agent"),
			Location:   example.Location,
			DatabaseId: exampleDatabase.ID(),
		})
		if err != nil {
			return err
		}
		exampleJobCredential, err := mssql.NewJobCredential(ctx, "example", &mssql.JobCredentialArgs{
			Name:       pulumi.String("example-job-credential"),
			JobAgentId: exampleJobAgent.ID(),
			Username:   pulumi.String("testusername"),
			Password:   pulumi.String("testpassword"),
		})
		if err != nil {
			return err
		}
		_, err = mssql.NewJobTargetGroup(ctx, "example", &mssql.JobTargetGroupArgs{
			Name:       pulumi.String("example-target-group"),
			JobAgentId: exampleJobAgent.ID(),
			JobTargets: mssql.JobTargetGroupJobTargetArray{
				&mssql.JobTargetGroupJobTargetArgs{
					ServerName:      exampleServer.Name,
					JobCredentialId: exampleJobCredential.ID(),
				},
			},
		})
		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",
        Location = "westeurope",
    });
    var exampleServer = new Azure.MSSql.Server("example", new()
    {
        Name = "example-server",
        Location = example.Location,
        ResourceGroupName = example.Name,
        Version = "12.0",
        AdministratorLogin = "4dm1n157r470r",
        AdministratorLoginPassword = "4-v3ry-53cr37-p455w0rd",
    });
    var exampleDatabase = new Azure.MSSql.Database("example", new()
    {
        Name = "example-db",
        ServerId = exampleServer.Id,
        Collation = "SQL_Latin1_General_CP1_CI_AS",
        SkuName = "S1",
    });
    var exampleJobAgent = new Azure.MSSql.JobAgent("example", new()
    {
        Name = "example-job-agent",
        Location = example.Location,
        DatabaseId = exampleDatabase.Id,
    });
    var exampleJobCredential = new Azure.MSSql.JobCredential("example", new()
    {
        Name = "example-job-credential",
        JobAgentId = exampleJobAgent.Id,
        Username = "testusername",
        Password = "testpassword",
    });
    var exampleJobTargetGroup = new Azure.MSSql.JobTargetGroup("example", new()
    {
        Name = "example-target-group",
        JobAgentId = exampleJobAgent.Id,
        JobTargets = new[]
        {
            new Azure.MSSql.Inputs.JobTargetGroupJobTargetArgs
            {
                ServerName = exampleServer.Name,
                JobCredentialId = exampleJobCredential.Id,
            },
        },
    });
});
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.mssql.Server;
import com.pulumi.azure.mssql.ServerArgs;
import com.pulumi.azure.mssql.Database;
import com.pulumi.azure.mssql.DatabaseArgs;
import com.pulumi.azure.mssql.JobAgent;
import com.pulumi.azure.mssql.JobAgentArgs;
import com.pulumi.azure.mssql.JobCredential;
import com.pulumi.azure.mssql.JobCredentialArgs;
import com.pulumi.azure.mssql.JobTargetGroup;
import com.pulumi.azure.mssql.JobTargetGroupArgs;
import com.pulumi.azure.mssql.inputs.JobTargetGroupJobTargetArgs;
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")
            .location("westeurope")
            .build());
        var exampleServer = new Server("exampleServer", ServerArgs.builder()
            .name("example-server")
            .location(example.location())
            .resourceGroupName(example.name())
            .version("12.0")
            .administratorLogin("4dm1n157r470r")
            .administratorLoginPassword("4-v3ry-53cr37-p455w0rd")
            .build());
        var exampleDatabase = new Database("exampleDatabase", DatabaseArgs.builder()
            .name("example-db")
            .serverId(exampleServer.id())
            .collation("SQL_Latin1_General_CP1_CI_AS")
            .skuName("S1")
            .build());
        var exampleJobAgent = new JobAgent("exampleJobAgent", JobAgentArgs.builder()
            .name("example-job-agent")
            .location(example.location())
            .databaseId(exampleDatabase.id())
            .build());
        var exampleJobCredential = new JobCredential("exampleJobCredential", JobCredentialArgs.builder()
            .name("example-job-credential")
            .jobAgentId(exampleJobAgent.id())
            .username("testusername")
            .password("testpassword")
            .build());
        var exampleJobTargetGroup = new JobTargetGroup("exampleJobTargetGroup", JobTargetGroupArgs.builder()
            .name("example-target-group")
            .jobAgentId(exampleJobAgent.id())
            .jobTargets(JobTargetGroupJobTargetArgs.builder()
                .serverName(exampleServer.name())
                .jobCredentialId(exampleJobCredential.id())
                .build())
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example
      location: westeurope
  exampleServer:
    type: azure:mssql:Server
    name: example
    properties:
      name: example-server
      location: ${example.location}
      resourceGroupName: ${example.name}
      version: '12.0'
      administratorLogin: 4dm1n157r470r
      administratorLoginPassword: 4-v3ry-53cr37-p455w0rd
  exampleDatabase:
    type: azure:mssql:Database
    name: example
    properties:
      name: example-db
      serverId: ${exampleServer.id}
      collation: SQL_Latin1_General_CP1_CI_AS
      skuName: S1
  exampleJobAgent:
    type: azure:mssql:JobAgent
    name: example
    properties:
      name: example-job-agent
      location: ${example.location}
      databaseId: ${exampleDatabase.id}
  exampleJobCredential:
    type: azure:mssql:JobCredential
    name: example
    properties:
      name: example-job-credential
      jobAgentId: ${exampleJobAgent.id}
      username: testusername
      password: testpassword
  exampleJobTargetGroup:
    type: azure:mssql:JobTargetGroup
    name: example
    properties:
      name: example-target-group
      jobAgentId: ${exampleJobAgent.id}
      jobTargets:
        - serverName: ${exampleServer.name}
          jobCredentialId: ${exampleJobCredential.id}
Create JobTargetGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new JobTargetGroup(name: string, args: JobTargetGroupArgs, opts?: CustomResourceOptions);@overload
def JobTargetGroup(resource_name: str,
                   args: JobTargetGroupArgs,
                   opts: Optional[ResourceOptions] = None)
@overload
def JobTargetGroup(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   job_agent_id: Optional[str] = None,
                   job_targets: Optional[Sequence[JobTargetGroupJobTargetArgs]] = None,
                   name: Optional[str] = None)func NewJobTargetGroup(ctx *Context, name string, args JobTargetGroupArgs, opts ...ResourceOption) (*JobTargetGroup, error)public JobTargetGroup(string name, JobTargetGroupArgs args, CustomResourceOptions? opts = null)
public JobTargetGroup(String name, JobTargetGroupArgs args)
public JobTargetGroup(String name, JobTargetGroupArgs args, CustomResourceOptions options)
type: azure:mssql:JobTargetGroup
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 JobTargetGroupArgs
- 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 JobTargetGroupArgs
- 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 JobTargetGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args JobTargetGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args JobTargetGroupArgs
- 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 jobTargetGroupResource = new Azure.MSSql.JobTargetGroup("jobTargetGroupResource", new()
{
    JobAgentId = "string",
    JobTargets = new[]
    {
        new Azure.MSSql.Inputs.JobTargetGroupJobTargetArgs
        {
            ServerName = "string",
            DatabaseName = "string",
            ElasticPoolName = "string",
            JobCredentialId = "string",
            MembershipType = "string",
            Type = "string",
        },
    },
    Name = "string",
});
example, err := mssql.NewJobTargetGroup(ctx, "jobTargetGroupResource", &mssql.JobTargetGroupArgs{
	JobAgentId: pulumi.String("string"),
	JobTargets: mssql.JobTargetGroupJobTargetArray{
		&mssql.JobTargetGroupJobTargetArgs{
			ServerName:      pulumi.String("string"),
			DatabaseName:    pulumi.String("string"),
			ElasticPoolName: pulumi.String("string"),
			JobCredentialId: pulumi.String("string"),
			MembershipType:  pulumi.String("string"),
			Type:            pulumi.String("string"),
		},
	},
	Name: pulumi.String("string"),
})
var jobTargetGroupResource = new JobTargetGroup("jobTargetGroupResource", JobTargetGroupArgs.builder()
    .jobAgentId("string")
    .jobTargets(JobTargetGroupJobTargetArgs.builder()
        .serverName("string")
        .databaseName("string")
        .elasticPoolName("string")
        .jobCredentialId("string")
        .membershipType("string")
        .type("string")
        .build())
    .name("string")
    .build());
job_target_group_resource = azure.mssql.JobTargetGroup("jobTargetGroupResource",
    job_agent_id="string",
    job_targets=[{
        "server_name": "string",
        "database_name": "string",
        "elastic_pool_name": "string",
        "job_credential_id": "string",
        "membership_type": "string",
        "type": "string",
    }],
    name="string")
const jobTargetGroupResource = new azure.mssql.JobTargetGroup("jobTargetGroupResource", {
    jobAgentId: "string",
    jobTargets: [{
        serverName: "string",
        databaseName: "string",
        elasticPoolName: "string",
        jobCredentialId: "string",
        membershipType: "string",
        type: "string",
    }],
    name: "string",
});
type: azure:mssql:JobTargetGroup
properties:
    jobAgentId: string
    jobTargets:
        - databaseName: string
          elasticPoolName: string
          jobCredentialId: string
          membershipType: string
          serverName: string
          type: string
    name: string
JobTargetGroup 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 JobTargetGroup resource accepts the following input properties:
- JobAgent stringId 
- The ID of the Elastic Job Agent. Changing this forces a new Job Target Group to be created.
- JobTargets List<JobTarget Group Job Target> 
- One or more job_targetblocks as defined below.
- Name string
- The name which should be used for this Job Target Group. Changing this forces a new Job Target Group to be created.
- JobAgent stringId 
- The ID of the Elastic Job Agent. Changing this forces a new Job Target Group to be created.
- JobTargets []JobTarget Group Job Target Args 
- One or more job_targetblocks as defined below.
- Name string
- The name which should be used for this Job Target Group. Changing this forces a new Job Target Group to be created.
- jobAgent StringId 
- The ID of the Elastic Job Agent. Changing this forces a new Job Target Group to be created.
- jobTargets List<JobTarget Group Job Target> 
- One or more job_targetblocks as defined below.
- name String
- The name which should be used for this Job Target Group. Changing this forces a new Job Target Group to be created.
- jobAgent stringId 
- The ID of the Elastic Job Agent. Changing this forces a new Job Target Group to be created.
- jobTargets JobTarget Group Job Target[] 
- One or more job_targetblocks as defined below.
- name string
- The name which should be used for this Job Target Group. Changing this forces a new Job Target Group to be created.
- job_agent_ strid 
- The ID of the Elastic Job Agent. Changing this forces a new Job Target Group to be created.
- job_targets Sequence[JobTarget Group Job Target Args] 
- One or more job_targetblocks as defined below.
- name str
- The name which should be used for this Job Target Group. Changing this forces a new Job Target Group to be created.
- jobAgent StringId 
- The ID of the Elastic Job Agent. Changing this forces a new Job Target Group to be created.
- jobTargets List<Property Map>
- One or more job_targetblocks as defined below.
- name String
- The name which should be used for this Job Target Group. Changing this forces a new Job Target Group to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the JobTargetGroup 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 JobTargetGroup Resource
Get an existing JobTargetGroup 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?: JobTargetGroupState, opts?: CustomResourceOptions): JobTargetGroup@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        job_agent_id: Optional[str] = None,
        job_targets: Optional[Sequence[JobTargetGroupJobTargetArgs]] = None,
        name: Optional[str] = None) -> JobTargetGroupfunc GetJobTargetGroup(ctx *Context, name string, id IDInput, state *JobTargetGroupState, opts ...ResourceOption) (*JobTargetGroup, error)public static JobTargetGroup Get(string name, Input<string> id, JobTargetGroupState? state, CustomResourceOptions? opts = null)public static JobTargetGroup get(String name, Output<String> id, JobTargetGroupState state, CustomResourceOptions options)resources:  _:    type: azure:mssql:JobTargetGroup    get:      id: ${id}- 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.
- JobAgent stringId 
- The ID of the Elastic Job Agent. Changing this forces a new Job Target Group to be created.
- JobTargets List<JobTarget Group Job Target> 
- One or more job_targetblocks as defined below.
- Name string
- The name which should be used for this Job Target Group. Changing this forces a new Job Target Group to be created.
- JobAgent stringId 
- The ID of the Elastic Job Agent. Changing this forces a new Job Target Group to be created.
- JobTargets []JobTarget Group Job Target Args 
- One or more job_targetblocks as defined below.
- Name string
- The name which should be used for this Job Target Group. Changing this forces a new Job Target Group to be created.
- jobAgent StringId 
- The ID of the Elastic Job Agent. Changing this forces a new Job Target Group to be created.
- jobTargets List<JobTarget Group Job Target> 
- One or more job_targetblocks as defined below.
- name String
- The name which should be used for this Job Target Group. Changing this forces a new Job Target Group to be created.
- jobAgent stringId 
- The ID of the Elastic Job Agent. Changing this forces a new Job Target Group to be created.
- jobTargets JobTarget Group Job Target[] 
- One or more job_targetblocks as defined below.
- name string
- The name which should be used for this Job Target Group. Changing this forces a new Job Target Group to be created.
- job_agent_ strid 
- The ID of the Elastic Job Agent. Changing this forces a new Job Target Group to be created.
- job_targets Sequence[JobTarget Group Job Target Args] 
- One or more job_targetblocks as defined below.
- name str
- The name which should be used for this Job Target Group. Changing this forces a new Job Target Group to be created.
- jobAgent StringId 
- The ID of the Elastic Job Agent. Changing this forces a new Job Target Group to be created.
- jobTargets List<Property Map>
- One or more job_targetblocks as defined below.
- name String
- The name which should be used for this Job Target Group. Changing this forces a new Job Target Group to be created.
Supporting Types
JobTargetGroupJobTarget, JobTargetGroupJobTargetArgs          
- ServerName string
- The name of the MS SQL Server.
- DatabaseName string
- The name of the MS SQL Database. - Note: This cannot be set in combination with - elastic_pool_name.
- ElasticPool stringName 
- The name of the MS SQL Elastic Pool. - Note: This cannot be set in combination with - database_name.
- JobCredential stringId 
- The ID of the job credential to use during execution of jobs. - Note: This is required when - membership_typeis- Include, unless- database_nameis set.
- MembershipType string
- The membership type for this job target. Possible values are IncludeandExclude. Defaults toInclude.
- Type string
- The job target type. This value is computed based on server_name,database_name, andelastic_pool_name.
- ServerName string
- The name of the MS SQL Server.
- DatabaseName string
- The name of the MS SQL Database. - Note: This cannot be set in combination with - elastic_pool_name.
- ElasticPool stringName 
- The name of the MS SQL Elastic Pool. - Note: This cannot be set in combination with - database_name.
- JobCredential stringId 
- The ID of the job credential to use during execution of jobs. - Note: This is required when - membership_typeis- Include, unless- database_nameis set.
- MembershipType string
- The membership type for this job target. Possible values are IncludeandExclude. Defaults toInclude.
- Type string
- The job target type. This value is computed based on server_name,database_name, andelastic_pool_name.
- serverName String
- The name of the MS SQL Server.
- databaseName String
- The name of the MS SQL Database. - Note: This cannot be set in combination with - elastic_pool_name.
- elasticPool StringName 
- The name of the MS SQL Elastic Pool. - Note: This cannot be set in combination with - database_name.
- jobCredential StringId 
- The ID of the job credential to use during execution of jobs. - Note: This is required when - membership_typeis- Include, unless- database_nameis set.
- membershipType String
- The membership type for this job target. Possible values are IncludeandExclude. Defaults toInclude.
- type String
- The job target type. This value is computed based on server_name,database_name, andelastic_pool_name.
- serverName string
- The name of the MS SQL Server.
- databaseName string
- The name of the MS SQL Database. - Note: This cannot be set in combination with - elastic_pool_name.
- elasticPool stringName 
- The name of the MS SQL Elastic Pool. - Note: This cannot be set in combination with - database_name.
- jobCredential stringId 
- The ID of the job credential to use during execution of jobs. - Note: This is required when - membership_typeis- Include, unless- database_nameis set.
- membershipType string
- The membership type for this job target. Possible values are IncludeandExclude. Defaults toInclude.
- type string
- The job target type. This value is computed based on server_name,database_name, andelastic_pool_name.
- server_name str
- The name of the MS SQL Server.
- database_name str
- The name of the MS SQL Database. - Note: This cannot be set in combination with - elastic_pool_name.
- elastic_pool_ strname 
- The name of the MS SQL Elastic Pool. - Note: This cannot be set in combination with - database_name.
- job_credential_ strid 
- The ID of the job credential to use during execution of jobs. - Note: This is required when - membership_typeis- Include, unless- database_nameis set.
- membership_type str
- The membership type for this job target. Possible values are IncludeandExclude. Defaults toInclude.
- type str
- The job target type. This value is computed based on server_name,database_name, andelastic_pool_name.
- serverName String
- The name of the MS SQL Server.
- databaseName String
- The name of the MS SQL Database. - Note: This cannot be set in combination with - elastic_pool_name.
- elasticPool StringName 
- The name of the MS SQL Elastic Pool. - Note: This cannot be set in combination with - database_name.
- jobCredential StringId 
- The ID of the job credential to use during execution of jobs. - Note: This is required when - membership_typeis- Include, unless- database_nameis set.
- membershipType String
- The membership type for this job target. Possible values are IncludeandExclude. Defaults toInclude.
- type String
- The job target type. This value is computed based on server_name,database_name, andelastic_pool_name.
Import
Job Target Groups can be imported using the resource id, e.g.
$ pulumi import azure:mssql/jobTargetGroup:JobTargetGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Sql/servers/myserver1/jobAgents/myjobagent1/targetGroups/mytargetgroup1
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 azurermTerraform Provider.