Use Pulumi's new import command to generate code from existing cloud resources. Learn More

WorkspaceSqlAadAdmin

Workspace active directory administrator

Example Usage

Create or update workspace active directory admin

using Pulumi;
using AzureNextGen = Pulumi.AzureNextGen;

class MyStack : Stack
{
    public MyStack()
    {
        var workspaceSqlAadAdmin = new AzureNextGen.Synapse.V20190601Preview.WorkspaceSqlAadAdmin("workspaceSqlAadAdmin", new AzureNextGen.Synapse.V20190601Preview.WorkspaceSqlAadAdminArgs
        {
            AdministratorType = "ActiveDirectory",
            Login = "bob@contoso.com",
            ResourceGroupName = "resourceGroup1",
            Sid = "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c",
            TenantId = "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c",
            WorkspaceName = "workspace1",
        });
    }

}
package main

import (
    synapse "github.com/pulumi/pulumi-azure-nextgen/sdk/go/azure/synapse/v20190601preview"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := synapse.NewWorkspaceSqlAadAdmin(ctx, "workspaceSqlAadAdmin", &synapse.WorkspaceSqlAadAdminArgs{
            AdministratorType: pulumi.String("ActiveDirectory"),
            Login:             pulumi.String("bob@contoso.com"),
            ResourceGroupName: pulumi.String("resourceGroup1"),
            Sid:               pulumi.String("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"),
            TenantId:          pulumi.String("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"),
            WorkspaceName:     pulumi.String("workspace1"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure_nextgen as azure_nextgen

workspace_sql_aad_admin = azure_nextgen.synapse.v20190601preview.WorkspaceSqlAadAdmin("workspaceSqlAadAdmin",
    administrator_type="ActiveDirectory",
    login="bob@contoso.com",
    resource_group_name="resourceGroup1",
    sid="c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c",
    tenant_id="c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c",
    workspace_name="workspace1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_nextgen from "@pulumi/azure-nextgen";

const workspaceSqlAadAdmin = new azure_nextgen.synapse.v20190601preview.WorkspaceSqlAadAdmin("workspaceSqlAadAdmin", {
    administratorType: "ActiveDirectory",
    login: "bob@contoso.com",
    resourceGroupName: "resourceGroup1",
    sid: "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c",
    tenantId: "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c",
    workspaceName: "workspace1",
});

Create a WorkspaceSqlAadAdmin Resource

new WorkspaceSqlAadAdmin(name: string, args: WorkspaceSqlAadAdminArgs, opts?: CustomResourceOptions);
def WorkspaceSqlAadAdmin(resource_name: str, opts: Optional[ResourceOptions] = None, administrator_type: Optional[str] = None, login: Optional[str] = None, resource_group_name: Optional[str] = None, sid: Optional[str] = None, tenant_id: Optional[str] = None, workspace_name: Optional[str] = None)
func NewWorkspaceSqlAadAdmin(ctx *Context, name string, args WorkspaceSqlAadAdminArgs, opts ...ResourceOption) (*WorkspaceSqlAadAdmin, error)
public WorkspaceSqlAadAdmin(string name, WorkspaceSqlAadAdminArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args WorkspaceSqlAadAdminArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args WorkspaceSqlAadAdminArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args WorkspaceSqlAadAdminArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

WorkspaceSqlAadAdmin Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The WorkspaceSqlAadAdmin resource accepts the following input properties:

ResourceGroupName string
The name of the resource group. The name is case insensitive.
WorkspaceName string
The name of the workspace
AdministratorType string
Workspace active directory administrator type
Login string
Login of the workspace active directory administrator
Sid string
Object ID of the workspace active directory administrator
TenantId string
Tenant ID of the workspace active directory administrator
ResourceGroupName string
The name of the resource group. The name is case insensitive.
WorkspaceName string
The name of the workspace
AdministratorType string
Workspace active directory administrator type
Login string
Login of the workspace active directory administrator
Sid string
Object ID of the workspace active directory administrator
TenantId string
Tenant ID of the workspace active directory administrator
resourceGroupName string
The name of the resource group. The name is case insensitive.
workspaceName string
The name of the workspace
administratorType string
Workspace active directory administrator type
login string
Login of the workspace active directory administrator
sid string
Object ID of the workspace active directory administrator
tenantId string
Tenant ID of the workspace active directory administrator
resource_group_name str
The name of the resource group. The name is case insensitive.
workspace_name str
The name of the workspace
administrator_type str
Workspace active directory administrator type
login str
Login of the workspace active directory administrator
sid str
Object ID of the workspace active directory administrator
tenant_id str
Tenant ID of the workspace active directory administrator

Outputs

All input properties are implicitly available as output properties. Additionally, the WorkspaceSqlAadAdmin resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
type str
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-nextgen:synapse/v20190601preview:WorkspaceSqlAadAdmin activeDirectory /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1/administrators/activeDirectory 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-nextgen
License
Apache-2.0