Azure Native v1.102.0, May 2 23
Azure Native v1.102.0, May 2 23
azure-native.sql.JobAgent
Explore with Pulumi AI
An Azure SQL job agent. API Version: 2020-11-01-preview.
Example Usage
Create or update a job agent
using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var jobAgent = new AzureNative.Sql.JobAgent("jobAgent", new()
{
DatabaseId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/databases/db1",
JobAgentName = "agent1",
Location = "southeastasia",
ResourceGroupName = "group1",
ServerName = "server1",
});
});
package main
import (
sql "github.com/pulumi/pulumi-azure-native/sdk/go/azure/sql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sql.NewJobAgent(ctx, "jobAgent", &sql.JobAgentArgs{
DatabaseId: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/databases/db1"),
JobAgentName: pulumi.String("agent1"),
Location: pulumi.String("southeastasia"),
ResourceGroupName: pulumi.String("group1"),
ServerName: pulumi.String("server1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.sql.JobAgent;
import com.pulumi.azurenative.sql.JobAgentArgs;
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 jobAgent = new JobAgent("jobAgent", JobAgentArgs.builder()
.databaseId("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/databases/db1")
.jobAgentName("agent1")
.location("southeastasia")
.resourceGroupName("group1")
.serverName("server1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
job_agent = azure_native.sql.JobAgent("jobAgent",
database_id="/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/databases/db1",
job_agent_name="agent1",
location="southeastasia",
resource_group_name="group1",
server_name="server1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const jobAgent = new azure_native.sql.JobAgent("jobAgent", {
databaseId: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/databases/db1",
jobAgentName: "agent1",
location: "southeastasia",
resourceGroupName: "group1",
serverName: "server1",
});
resources:
jobAgent:
type: azure-native:sql:JobAgent
properties:
databaseId: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/databases/db1
jobAgentName: agent1
location: southeastasia
resourceGroupName: group1
serverName: server1
Create JobAgent Resource
new JobAgent(name: string, args: JobAgentArgs, opts?: CustomResourceOptions);
@overload
def JobAgent(resource_name: str,
opts: Optional[ResourceOptions] = None,
database_id: Optional[str] = None,
job_agent_name: Optional[str] = None,
location: Optional[str] = None,
resource_group_name: Optional[str] = None,
server_name: Optional[str] = None,
sku: Optional[SkuArgs] = None,
tags: Optional[Mapping[str, str]] = None)
@overload
def JobAgent(resource_name: str,
args: JobAgentArgs,
opts: Optional[ResourceOptions] = None)
func NewJobAgent(ctx *Context, name string, args JobAgentArgs, opts ...ResourceOption) (*JobAgent, error)
public JobAgent(string name, JobAgentArgs args, CustomResourceOptions? opts = null)
public JobAgent(String name, JobAgentArgs args)
public JobAgent(String name, JobAgentArgs args, CustomResourceOptions options)
type: azure-native:sql:JobAgent
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args JobAgentArgs
- 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 JobAgentArgs
- 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 JobAgentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args JobAgentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args JobAgentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
JobAgent Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The JobAgent resource accepts the following input properties:
- Database
Id string Resource ID of the database to store job metadata in.
- Resource
Group stringName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Server
Name string The name of the server.
- Job
Agent stringName The name of the job agent to be created or updated.
- Location string
Resource location.
- Sku
Pulumi.
Azure Native. Sql. Inputs. Sku Args The name and tier of the SKU.
- Dictionary<string, string>
Resource tags.
- Database
Id string Resource ID of the database to store job metadata in.
- Resource
Group stringName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Server
Name string The name of the server.
- Job
Agent stringName The name of the job agent to be created or updated.
- Location string
Resource location.
- Sku
Sku
Args The name and tier of the SKU.
- map[string]string
Resource tags.
- database
Id String Resource ID of the database to store job metadata in.
- resource
Group StringName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name String The name of the server.
- job
Agent StringName The name of the job agent to be created or updated.
- location String
Resource location.
- sku
Sku
Args The name and tier of the SKU.
- Map<String,String>
Resource tags.
- database
Id string Resource ID of the database to store job metadata in.
- resource
Group stringName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name string The name of the server.
- job
Agent stringName The name of the job agent to be created or updated.
- location string
Resource location.
- sku
Sku
Args The name and tier of the SKU.
- {[key: string]: string}
Resource tags.
- database_
id str Resource ID of the database to store job metadata in.
- resource_
group_ strname The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server_
name str The name of the server.
- job_
agent_ strname The name of the job agent to be created or updated.
- location str
Resource location.
- sku
Sku
Args The name and tier of the SKU.
- Mapping[str, str]
Resource tags.
- database
Id String Resource ID of the database to store job metadata in.
- resource
Group StringName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name String The name of the server.
- job
Agent StringName The name of the job agent to be created or updated.
- location String
Resource location.
- sku Property Map
The name and tier of the SKU.
- Map<String>
Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the JobAgent resource produces the following output properties:
Supporting Types
Sku
- Name string
The name of the SKU, typically, a letter + Number code, e.g. P3.
- Capacity int
Capacity of the particular SKU.
- Family string
If the service has different generations of hardware, for the same SKU, then that can be captured here.
- Size string
Size of the particular SKU
- Tier string
The tier or edition of the particular SKU, e.g. Basic, Premium.
- Name string
The name of the SKU, typically, a letter + Number code, e.g. P3.
- Capacity int
Capacity of the particular SKU.
- Family string
If the service has different generations of hardware, for the same SKU, then that can be captured here.
- Size string
Size of the particular SKU
- Tier string
The tier or edition of the particular SKU, e.g. Basic, Premium.
- name String
The name of the SKU, typically, a letter + Number code, e.g. P3.
- capacity Integer
Capacity of the particular SKU.
- family String
If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size String
Size of the particular SKU
- tier String
The tier or edition of the particular SKU, e.g. Basic, Premium.
- name string
The name of the SKU, typically, a letter + Number code, e.g. P3.
- capacity number
Capacity of the particular SKU.
- family string
If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size string
Size of the particular SKU
- tier string
The tier or edition of the particular SKU, e.g. Basic, Premium.
- name str
The name of the SKU, typically, a letter + Number code, e.g. P3.
- capacity int
Capacity of the particular SKU.
- family str
If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size str
Size of the particular SKU
- tier str
The tier or edition of the particular SKU, e.g. Basic, Premium.
- name String
The name of the SKU, typically, a letter + Number code, e.g. P3.
- capacity Number
Capacity of the particular SKU.
- family String
If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size String
Size of the particular SKU
- tier String
The tier or edition of the particular SKU, e.g. Basic, Premium.
SkuResponse
- Name string
The name of the SKU, typically, a letter + Number code, e.g. P3.
- Capacity int
Capacity of the particular SKU.
- Family string
If the service has different generations of hardware, for the same SKU, then that can be captured here.
- Size string
Size of the particular SKU
- Tier string
The tier or edition of the particular SKU, e.g. Basic, Premium.
- Name string
The name of the SKU, typically, a letter + Number code, e.g. P3.
- Capacity int
Capacity of the particular SKU.
- Family string
If the service has different generations of hardware, for the same SKU, then that can be captured here.
- Size string
Size of the particular SKU
- Tier string
The tier or edition of the particular SKU, e.g. Basic, Premium.
- name String
The name of the SKU, typically, a letter + Number code, e.g. P3.
- capacity Integer
Capacity of the particular SKU.
- family String
If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size String
Size of the particular SKU
- tier String
The tier or edition of the particular SKU, e.g. Basic, Premium.
- name string
The name of the SKU, typically, a letter + Number code, e.g. P3.
- capacity number
Capacity of the particular SKU.
- family string
If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size string
Size of the particular SKU
- tier string
The tier or edition of the particular SKU, e.g. Basic, Premium.
- name str
The name of the SKU, typically, a letter + Number code, e.g. P3.
- capacity int
Capacity of the particular SKU.
- family str
If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size str
Size of the particular SKU
- tier str
The tier or edition of the particular SKU, e.g. Basic, Premium.
- name String
The name of the SKU, typically, a letter + Number code, e.g. P3.
- capacity Number
Capacity of the particular SKU.
- family String
If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size String
Size of the particular SKU
- tier String
The tier or edition of the particular SKU, e.g. Basic, Premium.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:sql:JobAgent agent1 /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0