Skip to content

Commit bb22dc0

Browse files
Migrate DevCenter from generation to main (#23536)
* Move DevCenter to main * Add change log for DevCenter --------- Co-authored-by: Xiaogang Ding <[email protected]>
1 parent f394b13 commit bb22dc0

File tree

1,771 files changed

+167881
-50350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,771 files changed

+167881
-50350
lines changed

src/DevCenter/DevCenter.AutoRest/Az.DevCenter.format.ps1xml

Lines changed: 991 additions & 293 deletions
Large diffs are not rendered by default.

src/DevCenter/DevCenter.AutoRest/Az.DevCenter.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.DevCenter.private.dll'
1313
FormatsToProcess = './Az.DevCenter.format.ps1xml'
14-
FunctionsToExport = 'Get-AzDevCenterAdminAttachedNetwork', 'Get-AzDevCenterAdminCatalog', 'Get-AzDevCenterAdminDevBoxDefinition', 'Get-AzDevCenterAdminDevCenter', 'Get-AzDevCenterAdminEnvironmentType', 'Get-AzDevCenterAdminGallery', 'Get-AzDevCenterAdminImage', 'Get-AzDevCenterAdminImageVersion', 'Get-AzDevCenterAdminNetworkConnection', 'Get-AzDevCenterAdminNetworkConnectionHealthDetail', 'Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint', 'Get-AzDevCenterAdminOperationStatus', 'Get-AzDevCenterAdminPool', 'Get-AzDevCenterAdminProject', 'Get-AzDevCenterAdminProjectAllowedEnvironmentType', 'Get-AzDevCenterAdminProjectEnvironmentType', 'Get-AzDevCenterAdminSchedule', 'Get-AzDevCenterAdminSku', 'Get-AzDevCenterAdminUsage', 'Invoke-AzDevCenterAdminExecuteCheckNameAvailability', 'New-AzDevCenterAdminAttachedNetwork', 'New-AzDevCenterAdminCatalog', 'New-AzDevCenterAdminDevBoxDefinition', 'New-AzDevCenterAdminDevCenter', 'New-AzDevCenterAdminEnvironmentType', 'New-AzDevCenterAdminGallery', 'New-AzDevCenterAdminNetworkConnection', 'New-AzDevCenterAdminPool', 'New-AzDevCenterAdminProject', 'New-AzDevCenterAdminProjectEnvironmentType', 'New-AzDevCenterAdminSchedule', 'Remove-AzDevCenterAdminAttachedNetwork', 'Remove-AzDevCenterAdminCatalog', 'Remove-AzDevCenterAdminDevBoxDefinition', 'Remove-AzDevCenterAdminDevCenter', 'Remove-AzDevCenterAdminEnvironmentType', 'Remove-AzDevCenterAdminGallery', 'Remove-AzDevCenterAdminNetworkConnection', 'Remove-AzDevCenterAdminPool', 'Remove-AzDevCenterAdminProject', 'Remove-AzDevCenterAdminProjectEnvironmentType', 'Remove-AzDevCenterAdminSchedule', 'Start-AzDevCenterAdminNetworkConnectionHealthCheck', 'Sync-AzDevCenterAdminCatalog', 'Update-AzDevCenterAdminCatalog', 'Update-AzDevCenterAdminDevBoxDefinition', 'Update-AzDevCenterAdminDevCenter', 'Update-AzDevCenterAdminEnvironmentType', 'Update-AzDevCenterAdminNetworkConnection', 'Update-AzDevCenterAdminPool', 'Update-AzDevCenterAdminProject', 'Update-AzDevCenterAdminProjectEnvironmentType', 'Update-AzDevCenterAdminSchedule', '*'
14+
FunctionsToExport = 'Get-AzDevCenterAdminAttachedNetwork', 'Get-AzDevCenterAdminCatalog', 'Get-AzDevCenterAdminCatalogSyncErrorDetail', 'Get-AzDevCenterAdminDevBoxDefinition', 'Get-AzDevCenterAdminDevCenter', 'Get-AzDevCenterAdminEnvironmentDefinition', 'Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail', 'Get-AzDevCenterAdminEnvironmentType', 'Get-AzDevCenterAdminGallery', 'Get-AzDevCenterAdminImage', 'Get-AzDevCenterAdminImageVersion', 'Get-AzDevCenterAdminNetworkConnection', 'Get-AzDevCenterAdminNetworkConnectionHealthDetail', 'Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint', 'Get-AzDevCenterAdminOperationStatus', 'Get-AzDevCenterAdminPool', 'Get-AzDevCenterAdminProject', 'Get-AzDevCenterAdminProjectAllowedEnvironmentType', 'Get-AzDevCenterAdminProjectEnvironmentType', 'Get-AzDevCenterAdminSchedule', 'Get-AzDevCenterAdminSku', 'Get-AzDevCenterAdminUsage', 'Invoke-AzDevCenterAdminExecuteCheckNameAvailability', 'New-AzDevCenterAdminAttachedNetwork', 'New-AzDevCenterAdminCatalog', 'New-AzDevCenterAdminDevBoxDefinition', 'New-AzDevCenterAdminDevCenter', 'New-AzDevCenterAdminEnvironmentType', 'New-AzDevCenterAdminGallery', 'New-AzDevCenterAdminNetworkConnection', 'New-AzDevCenterAdminPool', 'New-AzDevCenterAdminProject', 'New-AzDevCenterAdminProjectEnvironmentType', 'New-AzDevCenterAdminSchedule', 'Remove-AzDevCenterAdminAttachedNetwork', 'Remove-AzDevCenterAdminCatalog', 'Remove-AzDevCenterAdminDevBoxDefinition', 'Remove-AzDevCenterAdminDevCenter', 'Remove-AzDevCenterAdminEnvironmentType', 'Remove-AzDevCenterAdminGallery', 'Remove-AzDevCenterAdminNetworkConnection', 'Remove-AzDevCenterAdminPool', 'Remove-AzDevCenterAdminProject', 'Remove-AzDevCenterAdminProjectEnvironmentType', 'Remove-AzDevCenterAdminSchedule', 'Start-AzDevCenterAdminNetworkConnectionHealthCheck', 'Start-AzDevCenterAdminPoolHealthCheck', 'Sync-AzDevCenterAdminCatalog', 'Update-AzDevCenterAdminCatalog', 'Update-AzDevCenterAdminDevBoxDefinition', 'Update-AzDevCenterAdminDevCenter', 'Update-AzDevCenterAdminEnvironmentType', 'Update-AzDevCenterAdminNetworkConnection', 'Update-AzDevCenterAdminPool', 'Update-AzDevCenterAdminProject', 'Update-AzDevCenterAdminProjectEnvironmentType', 'Update-AzDevCenterAdminSchedule', '*'
1515
AliasesToExport = '*'
1616
PrivateData = @{
1717
PSData = @{

src/DevCenter/DevCenter.AutoRest/README.md

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,18 @@ For information on how to develop for `Az.DevCenter`, see [how-to.md](how-to.md)
3131
3232
```yaml
3333
# pin the swagger version by using the commit id instead of branch name
34-
branch: 4f6418dca8c15697489bbe6f855558bb79ca5bf5
34+
commit: b5e14f2fcc1e0de74c4dcf1d6e518f9faf743417
3535
require:
3636
# readme.azure.noprofile.md is the common configuration file
3737
- $(this-folder)/../../readme.azure.noprofile.md
3838
input-file:
39-
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/commonDefinitions.json
40-
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/devcenter.json
41-
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/vdi.json
39+
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-10-01-preview/commonDefinitions.json
40+
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-10-01-preview/devcenter.json
41+
- $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-10-01-preview/vdi.json
42+
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
43+
use-extension:
44+
"@autorest/powershell": "3.x"
45+
4246
directive:
4347
- from: swagger-document
4448
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/sync"].post.responses
@@ -112,15 +116,26 @@ directive:
112116
set:
113117
default:
114118
script: '"Windows_Client"'
119+
- where:
120+
subject: DevCenter
121+
parameter-name: CustomerManagedKeyEncryptionKeyUrl
122+
hide: true
123+
- where:
124+
subject: DevCenter
125+
parameter-name: KeyEncryptionKeyIdentityDelegatedIdentityClientId
126+
hide: true
127+
- where:
128+
subject: DevCenter
129+
parameter-name: KeyEncryptionKeyIdentityType
130+
hide: true
131+
- where:
132+
subject: DevCenter
133+
parameter-name: KeyEncryptionKeyIdentityUserAssignedIdentityResourceId
134+
hide: true
115135
# Remove Set per design review
116136
- where:
117137
verb: Set
118138
remove: true
119-
# API not available yet
120-
- where:
121-
verb: Start
122-
subject: PoolHealthCheck
123-
hide: true
124139
# Remove extra input object variant
125140
- where:
126141
verb: Get
@@ -174,6 +189,13 @@ directive:
174189
verb: New
175190
subject: ^AttachedNetwork$|^Catalog$|^DevBoxDefinition$|^Gallery$|^NetworkConnection$|^Pool$|^Project$|^ProjectEnvironmentType$
176191
hide: true
192+
- where:
193+
subject: ^CatalogDevBoxDefinition$|^CatalogDevBoxDefinitionErrorDetail$|^CustomizationTask|^CustomizationTaskErrorDetail$
194+
hide: true
195+
- where:
196+
verb: Connect
197+
subject: Catalog
198+
hide: true
177199
- where:
178200
subject: OperationStatuses
179201
set:
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"resourceType": "devcenters/attachednetworks",
3+
"apiVersion": "2023-10-01-preview",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzDevCenterAdminAttachedNetwork",
10+
"description": "Gets an attached NetworkConnection.",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminattachednetwork"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-ConnectionName <String>",
20+
"-DevCenterName <String>",
21+
"-ResourceGroupName <String>",
22+
"[-SubscriptionId <String[]>]"
23+
]
24+
}
25+
]
26+
},
27+
"examples": [
28+
{
29+
"description": "Gets an attached NetworkConnection.",
30+
"parameters": [
31+
{
32+
"name": "-ConnectionName",
33+
"value": "[Path.attachedNetworkConnectionName]"
34+
},
35+
{
36+
"name": "-DevCenterName",
37+
"value": "[Path.devCenterName]"
38+
},
39+
{
40+
"name": "-ResourceGroupName",
41+
"value": "[Path.resourceGroupName]"
42+
},
43+
{
44+
"name": "-SubscriptionId",
45+
"value": "[Path.subscriptionId]"
46+
}
47+
]
48+
}
49+
]
50+
},
51+
{
52+
"name": "Remove-AzDevCenterAdminAttachedNetwork",
53+
"description": "Un-attach a NetworkConnection.",
54+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}",
55+
"help": {
56+
"learnMore": {
57+
"url": "https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminattachednetwork"
58+
},
59+
"parameterSets": [
60+
{
61+
"parameters": [
62+
"-ConnectionName <String>",
63+
"-DevCenterName <String>",
64+
"-ResourceGroupName <String>",
65+
"[-SubscriptionId <String>]"
66+
]
67+
}
68+
]
69+
},
70+
"examples": [
71+
{
72+
"description": "Un-attach a NetworkConnection.",
73+
"parameters": [
74+
{
75+
"name": "-ConnectionName",
76+
"value": "[Path.attachedNetworkConnectionName]"
77+
},
78+
{
79+
"name": "-DevCenterName",
80+
"value": "[Path.devCenterName]"
81+
},
82+
{
83+
"name": "-ResourceGroupName",
84+
"value": "[Path.resourceGroupName]"
85+
},
86+
{
87+
"name": "-SubscriptionId",
88+
"value": "[Path.subscriptionId]"
89+
}
90+
]
91+
}
92+
]
93+
}
94+
]
95+
}
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"resourceType": "devcenters/catalogs/environmentDefinitions",
3+
"apiVersion": "2023-10-01-preview",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.devcenter"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail",
10+
"description": "Gets Environment Definition error details",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinitionerrordetail"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-CatalogName <String>",
20+
"-DevCenterName <String>",
21+
"-EnvironmentDefinitionName <String>",
22+
"-ResourceGroupName <String>",
23+
"[-SubscriptionId <String[]>]"
24+
]
25+
}
26+
]
27+
},
28+
"examples": [
29+
{
30+
"description": "Gets Environment Definition error details",
31+
"parameters": [
32+
{
33+
"name": "-CatalogName",
34+
"value": "[Path.catalogName]"
35+
},
36+
{
37+
"name": "-DevCenterName",
38+
"value": "[Path.devCenterName]"
39+
},
40+
{
41+
"name": "-EnvironmentDefinitionName",
42+
"value": "[Path.environmentDefinitionName]"
43+
},
44+
{
45+
"name": "-ResourceGroupName",
46+
"value": "[Path.resourceGroupName]"
47+
},
48+
{
49+
"name": "-SubscriptionId",
50+
"value": "[Path.subscriptionId]"
51+
}
52+
]
53+
}
54+
]
55+
},
56+
{
57+
"name": "Get-AzDevCenterAdminEnvironmentDefinition",
58+
"description": "Gets an environment definition from the catalog.",
59+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}",
60+
"help": {
61+
"learnMore": {
62+
"url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinition"
63+
},
64+
"parameterSets": [
65+
{
66+
"parameters": [
67+
"-CatalogName <String>",
68+
"-DevCenterName <String>",
69+
"-Name <String>",
70+
"-ResourceGroupName <String>",
71+
"[-SubscriptionId <String[]>]"
72+
]
73+
}
74+
]
75+
},
76+
"examples": [
77+
{
78+
"description": "Gets an environment definition from the catalog.",
79+
"parameters": [
80+
{
81+
"name": "-CatalogName",
82+
"value": "[Path.catalogName]"
83+
},
84+
{
85+
"name": "-DevCenterName",
86+
"value": "[Path.devCenterName]"
87+
},
88+
{
89+
"name": "-Name",
90+
"value": "[Path.environmentDefinitionName]"
91+
},
92+
{
93+
"name": "-ResourceGroupName",
94+
"value": "[Path.resourceGroupName]"
95+
},
96+
{
97+
"name": "-SubscriptionId",
98+
"value": "[Path.subscriptionId]"
99+
}
100+
]
101+
}
102+
]
103+
}
104+
]
105+
}

0 commit comments

Comments
 (0)