Skip to content

Commit 66deca2

Browse files
azure-pipelines[bot]azure-powershell-botNickcandy
authored
Migrate ConnectedMachine from generation to main (#26288)
* Move ConnectedMachine to main * Update ChangeLog.md --------- Co-authored-by: azure-powershell-bot <[email protected]> Co-authored-by: NanxiangLiu <[email protected]>
1 parent 0b89984 commit 66deca2

File tree

303 files changed

+10397
-54077
lines changed

Some content is hidden

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

303 files changed

+10397
-54077
lines changed

src/ConnectedMachine/ConnectedMachine.Autorest/Az.ConnectedMachine.format.ps1xml

Lines changed: 55 additions & 1003 deletions
Large diffs are not rendered by default.

src/ConnectedMachine/ConnectedMachine.Autorest/Az.ConnectedMachine.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.ConnectedMachine.private.dll'
1313
FormatsToProcess = './Az.ConnectedMachine.format.ps1xml'
14-
FunctionsToExport = 'Connect-AzConnectedMachine', 'Get-AzConnectedExtensionMetadata', 'Get-AzConnectedLicense', 'Get-AzConnectedMachine', 'Get-AzConnectedMachineExtension', 'Get-AzConnectedMachineRunCommand', 'Get-AzConnectedNetworkSecurityPerimeterConfiguration', 'Get-AzConnectedPrivateLinkScope', 'Install-AzConnectedMachinePatch', 'Invoke-AzConnectedAssessMachinePatch', 'New-AzConnectedLicense', 'New-AzConnectedLicenseDetail', 'New-AzConnectedMachineExtension', 'New-AzConnectedMachineRunCommand', 'New-AzConnectedPrivateLinkScope', 'Remove-AzConnectedLicense', 'Remove-AzConnectedMachine', 'Remove-AzConnectedMachineExtension', 'Remove-AzConnectedMachineRunCommand', 'Remove-AzConnectedPrivateLinkScope', 'Set-AzConnectedLicense', 'Set-AzConnectedMachineExtension', 'Set-AzConnectedPrivateLinkScope', 'Update-AzConnectedExtension', 'Update-AzConnectedMachine', 'Update-AzConnectedMachineExtension', 'Update-AzConnectedMachineRunCommand', 'Update-AzConnectedPrivateLinkScopeTag'
14+
FunctionsToExport = 'Connect-AzConnectedMachine', 'Get-AzConnectedExtensionMetadata', 'Get-AzConnectedLicense', 'Get-AzConnectedMachine', 'Get-AzConnectedMachineExtension', 'Get-AzConnectedNetworkSecurityPerimeterConfiguration', 'Get-AzConnectedPrivateLinkScope', 'Install-AzConnectedMachinePatch', 'Invoke-AzConnectedAssessMachinePatch', 'Invoke-AzConnectedReconcileNetworkSecurityPerimeterConfiguration', 'New-AzConnectedLicense', 'New-AzConnectedLicenseDetail', 'New-AzConnectedMachineExtension', 'New-AzConnectedPrivateLinkScope', 'Remove-AzConnectedLicense', 'Remove-AzConnectedMachine', 'Remove-AzConnectedMachineExtension', 'Remove-AzConnectedPrivateLinkScope', 'Set-AzConnectedLicense', 'Set-AzConnectedMachineExtension', 'Set-AzConnectedPrivateLinkScope', 'Update-AzConnectedExtension', 'Update-AzConnectedMachine', 'Update-AzConnectedMachineExtension', 'Update-AzConnectedPrivateLinkScopeTag'
1515
PrivateData = @{
1616
PSData = @{
1717
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ConnectedMachine'

src/ConnectedMachine/ConnectedMachine.Autorest/README.md

Lines changed: 47 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ In this directory, run AutoRest:
3838
> see https://aka.ms/autorest
3939
4040
``` yaml
41-
commit: 2e5be0e72597c6fc8d438f20e38087d900c16427
41+
commit: f41d0c9332078cb2ef07b749081d94915255ada5
4242
require:
4343
- $(this-folder)/../../readme.azure.noprofile.md
4444
input-file:
45-
- $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-05-20-preview/HybridCompute.json
46-
- $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-05-20-preview/privateLinkScopes.json
45+
- $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/HybridCompute.json
46+
- $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/privateLinkScopes.json
4747

4848
module-version: 0.1.0
4949
title: ConnectedMachine
@@ -175,42 +175,42 @@ directive:
175175
}
176176
}
177177
178-
# add 200 response to run-command delete
179-
- from: swagger-document
180-
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}"].delete.responses
181-
transform: >-
182-
return {
183-
"200": {
184-
"description": "OK"
185-
},
186-
"202": {
187-
"description": "Accepted",
188-
"headers": {
189-
"Location": {
190-
"description": "The URL of the resource used to check the status of the asynchronous operation.",
191-
"type": "string"
192-
},
193-
"Retry-After": {
194-
"description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.",
195-
"type": "integer",
196-
"format": "int32"
197-
},
198-
"Azure-AsyncOperation": {
199-
"description": "The URI to poll for completion status.",
200-
"type": "string"
201-
}
202-
}
203-
},
204-
"204": {
205-
"description": "No Content"
206-
},
207-
"default": {
208-
"description": "Error response describing why the operation failed.",
209-
"schema": {
210-
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
211-
}
212-
}
213-
}
178+
# add 200 response to run-command delete - comment out for stable release
179+
# - from: swagger-document
180+
# where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}"].delete.responses
181+
# transform: >-
182+
# return {
183+
# "200": {
184+
# "description": "OK"
185+
# },
186+
# "202": {
187+
# "description": "Accepted",
188+
# "headers": {
189+
# "Location": {
190+
# "description": "The URL of the resource used to check the status of the asynchronous operation.",
191+
# "type": "string"
192+
# },
193+
# "Retry-After": {
194+
# "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.",
195+
# "type": "integer",
196+
# "format": "int32"
197+
# },
198+
# "Azure-AsyncOperation": {
199+
# "description": "The URI to poll for completion status.",
200+
# "type": "string"
201+
# }
202+
# }
203+
# },
204+
# "204": {
205+
# "description": "No Content"
206+
# },
207+
# "default": {
208+
# "description": "Error response describing why the operation failed.",
209+
# "schema": {
210+
# "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
211+
# }
212+
# }
213+
# }
214214

215215
# GetViaIdentity isn't useful until Azure PowerShell supports piping of different subjects
216216
- where:
@@ -333,14 +333,14 @@ directive:
333333
variant: Upgrade
334334
remove: true
335335

336-
# we will release gateway and setting commands in a seperate module
337-
- where:
338-
subject: Gateway
339-
remove: true
340-
# Remove when this API version is added
341-
- where:
342-
subject: Setting
343-
remove: true
336+
# we will release gateway and setting commands in a seperate module - comment out for stable release
337+
# - where:
338+
# subject: Gateway
339+
# remove: true
340+
# Remove when this API version is added - comment out for stable release
341+
# - where:
342+
# subject: Setting
343+
# remove: true
344344

345345
# We don't want user to send PATCH to the ESU license API
346346
- where:
@@ -361,12 +361,6 @@ directive:
361361
subject: NetworkConfiguration
362362
remove: true
363363

364-
# Remove when this API is fixed
365-
- where:
366-
subject: ReconcileNetworkSecurityPerimeterConfiguration$
367-
verb: Invoke
368-
remove: true
369-
370364
# becasue autorest.powershell is unable to transform IdentityType as the best practice design if it uses managed identity
371365
# we hide the original cmdlet and custom it under /custom folder
372366
- where:

src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/licenses.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "licenses",
3-
"apiVersion": "2024-05-20-preview",
3+
"apiVersion": "2024-07-10",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
66
},

src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/locations-publishers-extensionTypes-versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "locations/publishers/extensionTypes/versions",
3-
"apiVersion": "2024-05-20-preview",
3+
"apiVersion": "2024-07-10",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
66
},

src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines-extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "machines/extensions",
3-
"apiVersion": "2024-05-20-preview",
3+
"apiVersion": "2024-07-10",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
66
},

src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines-runCommands.json

Lines changed: 0 additions & 95 deletions
This file was deleted.

src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "machines",
3-
"apiVersion": "2024-05-20-preview",
3+
"apiVersion": "2024-07-10",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
66
},

src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/privateLinkScopes-networkSecurityPerimeterConfigurations.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "privateLinkScopes/networkSecurityPerimeterConfigurations",
3-
"apiVersion": "2024-05-20-preview",
3+
"apiVersion": "2024-07-10",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
66
},
@@ -47,6 +47,49 @@
4747
]
4848
}
4949
]
50+
},
51+
{
52+
"name": "Invoke-AzConnectedReconcileNetworkSecurityPerimeterConfiguration",
53+
"description": "Forces the network security perimeter configuration to refresh for a private link scope.",
54+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/networkSecurityPerimeterConfigurations/{perimeterName}/reconcile",
55+
"help": {
56+
"learnMore": {
57+
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine/invoke-azconnectedreconcilenetworksecurityperimeterconfiguration"
58+
},
59+
"parameterSets": [
60+
{
61+
"parameters": [
62+
"-PerimeterName <String>",
63+
"-ResourceGroupName <String>",
64+
"-ScopeName <String>",
65+
"[-SubscriptionId <String>]"
66+
]
67+
}
68+
]
69+
},
70+
"examples": [
71+
{
72+
"description": "Forces the network security perimeter configuration to refresh for a private link scope.",
73+
"parameters": [
74+
{
75+
"name": "-PerimeterName",
76+
"value": "[Path.perimeterName]"
77+
},
78+
{
79+
"name": "-ResourceGroupName",
80+
"value": "[Path.resourceGroupName]"
81+
},
82+
{
83+
"name": "-ScopeName",
84+
"value": "[Path.scopeName]"
85+
},
86+
{
87+
"name": "-SubscriptionId",
88+
"value": "[Path.subscriptionId]"
89+
}
90+
]
91+
}
92+
]
5093
}
5194
]
5295
}

src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/privateLinkScopes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "privateLinkScopes",
3-
"apiVersion": "2024-05-20-preview",
3+
"apiVersion": "2024-07-10",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
66
},

0 commit comments

Comments
 (0)