@@ -8,26 +8,41 @@ schema: 2.0.0
8
8
# New-AzQuantumWorkspace
9
9
10
10
## SYNOPSIS
11
- Creates or updates a workspace resource.
11
+ create a workspace resource.
12
12
13
13
## SYNTAX
14
14
15
+ ### CreateExpanded (Default)
15
16
```
16
17
New-AzQuantumWorkspace -Name <String> -ResourceGroupName <String> -Location <String>
17
- [-SubscriptionId <String>] [-IdentityType <ResourceIdentityType> ] [-Provider <IProvider[]>]
18
+ [-SubscriptionId <String>] [-EnableSystemAssignedIdentity ] [-Provider <IProvider[]>]
18
19
[-StorageAccount <String>] [-Tag <Hashtable>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm]
19
20
[-WhatIf] [<CommonParameters>]
20
21
```
21
22
23
+ ### CreateViaJsonFilePath
24
+ ```
25
+ New-AzQuantumWorkspace -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
26
+ [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
27
+ [<CommonParameters>]
28
+ ```
29
+
30
+ ### CreateViaJsonString
31
+ ```
32
+ New-AzQuantumWorkspace -Name <String> -ResourceGroupName <String> -JsonString <String>
33
+ [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
34
+ [<CommonParameters>]
35
+ ```
36
+
22
37
## DESCRIPTION
23
- Creates or updates a workspace resource.
38
+ create a workspace resource.
24
39
25
40
## EXAMPLES
26
41
27
42
### Example 1: Creates or updates a workspace resource.
28
43
``` powershell
29
44
$object = New-AzQuantumProviderObject -Id "ionq" -Sku "pay-as-you-go-cred"
30
- New-AzQuantumWorkspace -Name azps-qw -ResourceGroupName azps_test_group_quantum -Location eastus -IdentityType 'SystemAssigned' -Provider $object -StorageAccount "/subscriptions/{subId}/resourceGroups/azps_test_group_quantum/providers/Microsoft.Storage/storageAccounts/azpssa"
45
+ New-AzQuantumWorkspace -Name azps-qw -ResourceGroupName azps_test_group_quantum -Location eastus -EnableSystemAssignedIdentity -Provider $object -StorageAccount "/subscriptions/{subId}/resourceGroups/azps_test_group_quantum/providers/Microsoft.Storage/storageAccounts/azpssa"
31
46
```
32
47
33
48
``` output
@@ -71,12 +86,12 @@ Accept pipeline input: False
71
86
Accept wildcard characters : False
72
87
` ` `
73
88
74
- ### -IdentityType
75
- The identity type .
89
+ ### -EnableSystemAssignedIdentity
90
+ Determines whether to enable a system-assigned identity for the resource .
76
91
77
92
` ` ` yaml
78
- Type : Microsoft.Azure.PowerShell.Cmdlets.Quantum.Support.ResourceIdentityType
79
- Parameter Sets : (All)
93
+ Type : System.Management.Automation.SwitchParameter
94
+ Parameter Sets : CreateExpanded
80
95
Aliases :
81
96
82
97
Required : False
@@ -86,12 +101,42 @@ Accept pipeline input: False
86
101
Accept wildcard characters : False
87
102
` ` `
88
103
104
+ ### -JsonFilePath
105
+ Path of Json file supplied to the Create operation
106
+
107
+ ` ` ` yaml
108
+ Type : System.String
109
+ Parameter Sets : CreateViaJsonFilePath
110
+ Aliases :
111
+
112
+ Required : True
113
+ Position : Named
114
+ Default value : None
115
+ Accept pipeline input : False
116
+ Accept wildcard characters : False
117
+ ` ` `
118
+
119
+ ### -JsonString
120
+ Json string supplied to the Create operation
121
+
122
+ ` ` ` yaml
123
+ Type : System.String
124
+ Parameter Sets : CreateViaJsonString
125
+ Aliases :
126
+
127
+ Required : True
128
+ Position : Named
129
+ Default value : None
130
+ Accept pipeline input : False
131
+ Accept wildcard characters : False
132
+ ` ` `
133
+
89
134
### -Location
90
135
The geo-location where the resource lives
91
136
92
137
` ` ` yaml
93
138
Type : System.String
94
- Parameter Sets : (All)
139
+ Parameter Sets : CreateExpanded
95
140
Aliases :
96
141
97
142
Required : True
@@ -133,11 +178,10 @@ Accept wildcard characters: False
133
178
134
179
### -Provider
135
180
List of Providers selected for this Workspace
136
- To construct, see NOTES section for PROVIDER properties and create a hash table.
137
181
138
182
` ` ` yaml
139
- Type : Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.Api20220110Preview. IProvider[]
140
- Parameter Sets : (All)
183
+ Type : Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IProvider[]
184
+ Parameter Sets : CreateExpanded
141
185
Aliases :
142
186
143
187
Required : False
@@ -167,7 +211,7 @@ ARM Resource Id of the storage account associated with this workspace.
167
211
168
212
` ` ` yaml
169
213
Type : System.String
170
- Parameter Sets : (All)
214
+ Parameter Sets : CreateExpanded
171
215
Aliases :
172
216
173
217
Required : False
@@ -197,7 +241,7 @@ Resource tags.
197
241
198
242
` ` ` yaml
199
243
Type : System.Collections.Hashtable
200
- Parameter Sets : (All)
244
+ Parameter Sets : CreateExpanded
201
245
Aliases :
202
246
203
247
Required : False
@@ -245,7 +289,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
245
289
246
290
## OUTPUTS
247
291
248
- ### Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.Api20220110Preview. IQuantumWorkspace
292
+ ### Microsoft.Azure.PowerShell.Cmdlets.Quantum.Models.IQuantumWorkspace
249
293
250
294
## NOTES
251
295
0 commit comments