Workspace
A workspace API Version: 2021-03-01.
Example Usage
Create or update a workspace
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workspace = new AzureNative.Synapse.Workspace("workspace", new()
{
DefaultDataLakeStorage = new AzureNative.Synapse.Inputs.DataLakeStorageAccountDetailsArgs
{
AccountUrl = "https://accountname.dfs.core.windows.net",
Filesystem = "default",
},
Encryption = new AzureNative.Synapse.Inputs.EncryptionDetailsArgs
{
Cmk = new AzureNative.Synapse.Inputs.CustomerManagedKeyDetailsArgs
{
Key = new AzureNative.Synapse.Inputs.WorkspaceKeyDetailsArgs
{
KeyVaultUrl = "https://vault.azure.net/keys/key1",
Name = "default",
},
},
},
Identity = new AzureNative.Synapse.Inputs.ManagedIdentityArgs
{
Type = AzureNative.Synapse.ResourceIdentityType.SystemAssigned,
},
Location = "East US",
ManagedResourceGroupName = "workspaceManagedResourceGroupUnique",
ManagedVirtualNetwork = "default",
ManagedVirtualNetworkSettings = new AzureNative.Synapse.Inputs.ManagedVirtualNetworkSettingsArgs
{
AllowedAadTenantIdsForLinking = new[]
{
"740239CE-A25B-485B-86A0-262F29F6EBDB",
},
LinkedAccessCheckOnTargetResource = false,
PreventDataExfiltration = false,
},
PublicNetworkAccess = "Enabled",
PurviewConfiguration = new AzureNative.Synapse.Inputs.PurviewConfigurationArgs
{
PurviewResourceId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1",
},
ResourceGroupName = "resourceGroup1",
SqlAdministratorLogin = "login",
SqlAdministratorLoginPassword = "password",
Tags =
{
{ "key", "value" },
},
WorkspaceName = "workspace1",
WorkspaceRepositoryConfiguration = new AzureNative.Synapse.Inputs.WorkspaceRepositoryConfigurationArgs
{
AccountName = "mygithubaccount",
CollaborationBranch = "master",
HostName = "",
ProjectName = "myproject",
RepositoryName = "myrepository",
RootFolder = "/",
Type = "FactoryGitHubConfiguration",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.synapse.Workspace;
import com.pulumi.azurenative.synapse.WorkspaceArgs;
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 workspace = new Workspace("workspace", WorkspaceArgs.builder()
.defaultDataLakeStorage(Map.ofEntries(
Map.entry("accountUrl", "https://accountname.dfs.core.windows.net"),
Map.entry("filesystem", "default")
))
.encryption(Map.of("cmk", Map.of("key", Map.ofEntries(
Map.entry("keyVaultUrl", "https://vault.azure.net/keys/key1"),
Map.entry("name", "default")
))))
.identity(Map.of("type", "SystemAssigned"))
.location("East US")
.managedResourceGroupName("workspaceManagedResourceGroupUnique")
.managedVirtualNetwork("default")
.managedVirtualNetworkSettings(Map.ofEntries(
Map.entry("allowedAadTenantIdsForLinking", "740239CE-A25B-485B-86A0-262F29F6EBDB"),
Map.entry("linkedAccessCheckOnTargetResource", false),
Map.entry("preventDataExfiltration", false)
))
.publicNetworkAccess("Enabled")
.purviewConfiguration(Map.of("purviewResourceId", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1"))
.resourceGroupName("resourceGroup1")
.sqlAdministratorLogin("login")
.sqlAdministratorLoginPassword("password")
.tags(Map.of("key", "value"))
.workspaceName("workspace1")
.workspaceRepositoryConfiguration(Map.ofEntries(
Map.entry("accountName", "mygithubaccount"),
Map.entry("collaborationBranch", "master"),
Map.entry("hostName", ""),
Map.entry("projectName", "myproject"),
Map.entry("repositoryName", "myrepository"),
Map.entry("rootFolder", "/"),
Map.entry("type", "FactoryGitHubConfiguration")
))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:synapse:Workspace workspace1 /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1
Properties
The ADLA resource ID.
Connectivity endpoints
Workspace default data lake storage account details
The encryption details of the workspace
Workspace level configs and feature flags
Identity of the workspace
Workspace managed resource group. The resource group name uniquely identifies the resource group within the user subscriptionId. The resource group name must be no longer than 90 characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. Note that the name cannot end with '.'
Setting this to 'default' will ensure that all compute for this workspace is in a virtual network managed on behalf of the user.
Managed Virtual Network Settings
Private endpoint connections to the workspace
Resource provisioning state
Enable or Disable public network access to workspace
Purview Configuration
Login for workspace SQL active directory administrator
SQL administrator login password
Virtual Network profile
Git integration settings
The workspace unique identifier