Workspace Args
data class WorkspaceArgs(val identity: Output<QuantumWorkspaceIdentityArgs>? = null, val location: Output<String>? = null, val providers: Output<List<ProviderArgs>>? = null, val resourceGroupName: Output<String>? = null, val storageAccount: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<WorkspaceArgs>
The resource proxy definition object for quantum workspace. API Version: 2019-11-04-preview.
Example Usage
QuantumWorkspacesPut
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workspace = new AzureNative.Quantum.Workspace("workspace", new()
{
Location = "West US",
Providers = new[]
{
new AzureNative.Quantum.Inputs.ProviderArgs
{
ProviderId = "Honeywell",
ProviderSku = "Basic",
},
new AzureNative.Quantum.Inputs.ProviderArgs
{
ProviderId = "IonQ",
ProviderSku = "Basic",
},
new AzureNative.Quantum.Inputs.ProviderArgs
{
ProviderId = "OneQBit",
ProviderSku = "Basic",
},
},
ResourceGroupName = "quantumResourcegroup",
StorageAccount = "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount",
WorkspaceName = "quantumworkspace1",
});
});
Content copied to clipboard
package main
import (
quantum "github.com/pulumi/pulumi-azure-native-sdk/quantum"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := quantum.NewWorkspace(ctx, "workspace", &quantum.WorkspaceArgs{
Location: pulumi.String("West US"),
Providers: []quantum.ProviderArgs{
{
ProviderId: pulumi.String("Honeywell"),
ProviderSku: pulumi.String("Basic"),
},
{
ProviderId: pulumi.String("IonQ"),
ProviderSku: pulumi.String("Basic"),
},
{
ProviderId: pulumi.String("OneQBit"),
ProviderSku: pulumi.String("Basic"),
},
},
ResourceGroupName: pulumi.String("quantumResourcegroup"),
StorageAccount: pulumi.String("/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount"),
WorkspaceName: pulumi.String("quantumworkspace1"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.quantum.Workspace;
import com.pulumi.azurenative.quantum.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()
.location("West US")
.providers(
Map.ofEntries(
Map.entry("providerId", "Honeywell"),
Map.entry("providerSku", "Basic")
),
Map.ofEntries(
Map.entry("providerId", "IonQ"),
Map.entry("providerSku", "Basic")
),
Map.ofEntries(
Map.entry("providerId", "OneQBit"),
Map.entry("providerSku", "Basic")
))
.resourceGroupName("quantumResourcegroup")
.storageAccount("/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount")
.workspaceName("quantumworkspace1")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:quantum:Workspace quantumworkspace1 /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/quantumResourcegroup/providers/Microsoft.Quantum/Workspaces/quantumworkspace1
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(identity: Output<QuantumWorkspaceIdentityArgs>? = null, location: Output<String>? = null, providers: Output<List<ProviderArgs>>? = null, resourceGroupName: Output<String>? = null, storageAccount: Output<String>? = null, tags: Output<Map<String, String>>? = null, workspaceName: Output<String>? = null)
Properties
Link copied to clipboard
Managed Identity information.
Link copied to clipboard
List of Providers selected for this Workspace
Link copied to clipboard
The name of the resource group.
Link copied to clipboard
ARM Resource Id of the storage account associated with this workspace.
Link copied to clipboard
The name of the quantum workspace resource.