From 2dfe4ad2fb5b21fe8c4ab96199e2b9cf64c0a671 Mon Sep 17 00:00:00 2001
From: "azure-pipelines[bot]"
<36771401+azure-pipelines[bot]@users.noreply.github.com>
Date: Tue, 12 Nov 2024 13:12:31 +0800
Subject: [PATCH] Migrate ConnectedMachine from generation to main (#26657)
* Move ConnectedMachine to main
* Update ChangeLog.md
* Fix signature issues.
---------
Co-authored-by: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com>
Co-authored-by: Vincent Dai <23257217+vidai-msft@users.noreply.github.com>
---
.../Az.ConnectedMachine.format.ps1xml | 1206 +-
.../Az.ConnectedMachine.psd1 | 2 +-
.../ConnectedMachine.Autorest/README.md | 115 +-
.../UX/Microsoft.HybridCompute/licenses.json | 2 +-
...ns-publishers-extensionTypes-versions.json | 2 +-
.../machines-extensions.json | 2 +-
.../machines-licenseProfiles.json | 85 +
.../machines-runCommands.json | 95 +
.../UX/Microsoft.HybridCompute/machines.json | 2 +-
...etworkSecurityPerimeterConfigurations.json | 2 +-
.../privateLinkScopes.json | 2 +-
.../build-module.ps1 | 2 +-
.../custom/Update-AzConnectedMachine.ps1 | 1 -
.../New-AzConnectedLicenseProfileFeature.ps1 | 54 +
...pdate-AzConnectedLicenseProfileFeature.ps1 | 54 +
.../examples/Get-AzConnectedLicenseProfile.md | 54 +
.../Get-AzConnectedMachineRunCommand.md | 50 +
.../examples/New-AzConnectedLicenseProfile.md | 57 +
.../New-AzConnectedLicenseProfileFeature.md | 7 +
.../New-AzConnectedMachineRunCommand.md | 50 +
.../Remove-AzConnectedLicenseProfile.md | 6 +
.../Remove-AzConnectedMachineRunCommand.md | 6 +
.../Update-AzConnectedLicenseProfile.md | 51 +
...Update-AzConnectedLicenseProfileFeature.md | 8 +
.../Update-AzConnectedMachineRunCommand.md | 54 +
.../exports/Get-AzConnectedLicenseProfile.ps1 | 190 +
.../Get-AzConnectedMachineRunCommand.ps1 | 203 +
.../Install-AzConnectedMachinePatch.ps1 | 8 +
.../Invoke-AzConnectedAssessMachinePatch.ps1 | 8 +
...eNetworkSecurityPerimeterConfiguration.ps1 | 16 +
.../exports/New-AzConnectedLicense.ps1 | 8 +
.../exports/New-AzConnectedLicenseProfile.ps1 | 348 +
.../New-AzConnectedLicenseProfileFeature.ps1 | 125 +
.../New-AzConnectedMachineExtension.ps1 | 16 +
.../New-AzConnectedMachineRunCommand.ps1 | 525 +
.../New-AzConnectedPrivateLinkScope.ps1 | 8 +
.../exports/ProxyCmdletDefinitions.ps1 | 5924 +++--
.../exports/Remove-AzConnectedLicense.ps1 | 8 +
.../Remove-AzConnectedLicenseProfile.ps1 | 247 +
.../exports/Remove-AzConnectedMachine.ps1 | 8 +
.../Remove-AzConnectedMachineExtension.ps1 | 16 +
.../Remove-AzConnectedMachineRunCommand.ps1 | 289 +
.../Remove-AzConnectedPrivateLinkScope.ps1 | 8 +
.../exports/Update-AzConnectedExtension.ps1 | 8 +
.../Update-AzConnectedLicenseProfile.ps1 | 339 +
...pdate-AzConnectedLicenseProfileFeature.ps1 | 125 +
.../exports/Update-AzConnectedMachine.ps1 | 12 +-
.../Update-AzConnectedMachineExtension.ps1 | 16 +
.../Update-AzConnectedMachineRunCommand.ps1 | 495 +
.../Update-AzConnectedPrivateLinkScopeTag.ps1 | 8 +
.../generate-portal-ux.ps1 | 9 +
.../generated/api/ConnectedMachine.cs | 21737 +++++++++++-----
.../generated/api/Models/AgentUpgrade.cs | 16 +-
.../api/Models/AgentVersion.PowerShell.cs | 180 +
.../api/Models/AgentVersion.TypeConverter.cs | 147 +
.../generated/api/Models/AgentVersion.cs | 94 +
.../generated/api/Models/AgentVersion.json.cs | 112 +
.../Models/AgentVersionsList.PowerShell.cs | 172 +
.../Models/AgentVersionsList.TypeConverter.cs | 147 +
.../generated/api/Models/AgentVersionsList.cs | 74 +
.../api/Models/AgentVersionsList.json.cs | 118 +
.../ConnectedMachineIdentity.PowerShell.cs | 64 +
.../api/Models/ConnectedMachineIdentity.cs | 160 +
.../Models/ConnectedMachineIdentity.json.cs | 16 +
.../generated/api/Models/Disk.PowerShell.cs | 212 +
.../api/Models/Disk.TypeConverter.cs | 146 +
.../generated/api/Models/Disk.cs | 174 +
.../generated/api/Models/Disk.json.cs | 120 +
.../ErrorDetailAutoGenerated.PowerShell.cs | 196 +
.../ErrorDetailAutoGenerated.TypeConverter.cs | 147 +
.../api/Models/ErrorDetailAutoGenerated.cs | 149 +
.../Models/ErrorDetailAutoGenerated.json.cs | 147 +
.../ErrorResponseAutoGenerated.PowerShell.cs | 208 +
...rrorResponseAutoGenerated.TypeConverter.cs | 147 +
.../api/Models/ErrorResponseAutoGenerated.cs | 151 +
.../Models/ErrorResponseAutoGenerated.json.cs | 111 +
.../api/Models/FirmwareProfile.PowerShell.cs | 172 +
.../Models/FirmwareProfile.TypeConverter.cs | 147 +
.../generated/api/Models/FirmwareProfile.cs | 80 +
.../api/Models/FirmwareProfile.json.cs | 116 +
.../api/Models/Gateway.PowerShell.cs | 300 +
.../api/Models/Gateway.TypeConverter.cs | 146 +
.../generated/api/Models/Gateway.cs | 233 +
.../generated/api/Models/Gateway.json.cs | 110 +
.../Models/GatewayProperties.PowerShell.cs | 196 +
.../Models/GatewayProperties.TypeConverter.cs | 147 +
.../generated/api/Models/GatewayProperties.cs | 147 +
.../api/Models/GatewayProperties.json.cs | 133 +
.../api/Models/GatewayUpdate.PowerShell.cs | 180 +
.../api/Models/GatewayUpdate.TypeConverter.cs | 147 +
.../generated/api/Models/GatewayUpdate.cs | 86 +
.../api/Models/GatewayUpdate.json.cs | 110 +
.../GatewayUpdateProperties.PowerShell.cs | 164 +
.../GatewayUpdateProperties.TypeConverter.cs | 147 +
.../api/Models/GatewayUpdateProperties.cs | 54 +
.../Models/GatewayUpdateProperties.json.cs | 116 +
.../Models/GatewaysListResult.PowerShell.cs | 172 +
.../GatewaysListResult.TypeConverter.cs | 147 +
.../api/Models/GatewaysListResult.cs | 80 +
.../api/Models/GatewaysListResult.json.cs | 118 +
.../api/Models/HardwareProfile.PowerShell.cs | 180 +
.../Models/HardwareProfile.TypeConverter.cs | 147 +
.../generated/api/Models/HardwareProfile.cs | 103 +
.../api/Models/HardwareProfile.json.cs | 129 +
.../HybridIdentityMetadata.PowerShell.cs | 292 +
.../HybridIdentityMetadata.TypeConverter.cs | 147 +
.../api/Models/HybridIdentityMetadata.cs | 225 +
.../api/Models/HybridIdentityMetadata.json.cs | 110 +
.../HybridIdentityMetadataList.PowerShell.cs | 172 +
...ybridIdentityMetadataList.TypeConverter.cs | 147 +
.../api/Models/HybridIdentityMetadataList.cs | 74 +
.../Models/HybridIdentityMetadataList.json.cs | 118 +
...idIdentityMetadataProperties.PowerShell.cs | 206 +
...dentityMetadataProperties.TypeConverter.cs | 148 +
.../HybridIdentityMetadataProperties.cs | 145 +
.../HybridIdentityMetadataProperties.json.cs | 115 +
.../api/Models/Machine.PowerShell.cs | 72 +
.../generated/api/Models/Machine.cs | 154 +-
.../Models/MachineProperties.PowerShell.cs | 72 +
.../generated/api/Models/MachineProperties.cs | 169 +-
.../api/Models/MachineProperties.json.cs | 15 +
.../Models/MachineRunCommand.PowerShell.cs | 508 +
.../Models/MachineRunCommand.TypeConverter.cs | 147 +
.../generated/api/Models/MachineRunCommand.cs | 694 +
.../api/Models/MachineRunCommand.json.cs | 110 +
...achineRunCommandInstanceView.PowerShell.cs | 220 +
...ineRunCommandInstanceView.TypeConverter.cs | 147 +
.../Models/MachineRunCommandInstanceView.cs | 196 +
.../MachineRunCommandInstanceView.json.cs | 130 +
.../MachineRunCommandProperties.PowerShell.cs | 404 +
...chineRunCommandProperties.TypeConverter.cs | 147 +
.../api/Models/MachineRunCommandProperties.cs | 658 +
.../MachineRunCommandProperties.json.cs | 154 +
...achineRunCommandScriptSource.PowerShell.cs | 206 +
...ineRunCommandScriptSource.TypeConverter.cs | 147 +
.../Models/MachineRunCommandScriptSource.cs | 170 +
.../MachineRunCommandScriptSource.json.cs | 116 +
.../MachineRunCommandUpdate.PowerShell.cs | 164 +
.../MachineRunCommandUpdate.TypeConverter.cs | 147 +
.../api/Models/MachineRunCommandUpdate.cs | 57 +
.../Models/MachineRunCommandUpdate.json.cs | 108 +
...MachineRunCommandsListResult.PowerShell.cs | 172 +
...hineRunCommandsListResult.TypeConverter.cs | 147 +
.../Models/MachineRunCommandsListResult.cs | 80 +
.../MachineRunCommandsListResult.json.cs | 118 +
.../generated/api/Models/MachineUpdate.cs | 16 +-
.../api/Models/MachineUpdateProperties.cs | 16 +-
.../Models/NetworkConfiguration.PowerShell.cs | 346 +
.../NetworkConfiguration.TypeConverter.cs | 147 +
.../api/Models/NetworkConfiguration.cs | 330 +
.../api/Models/NetworkConfiguration.json.cs | 109 +
...tworkConfigurationProperties.PowerShell.cs | 262 +
...rkConfigurationProperties.TypeConverter.cs | 148 +
.../Models/NetworkConfigurationProperties.cs | 259 +
.../NetworkConfigurationProperties.json.cs | 125 +
.../api/Models/NetworkInterface.PowerShell.cs | 24 +
.../generated/api/Models/NetworkInterface.cs | 60 +
.../api/Models/NetworkInterface.json.cs | 6 +
...tyPerimeterConfigurationReconcileResult.cs | 8 +-
...imeterConfigurationReconcileResult.json.cs | 5 +-
.../api/Models/Processor.PowerShell.cs | 172 +
.../api/Models/Processor.TypeConverter.cs | 146 +
.../generated/api/Models/Processor.cs | 80 +
.../generated/api/Models/Processor.json.cs | 116 +
.../RunCommandInputParameter.PowerShell.cs | 172 +
.../RunCommandInputParameter.TypeConverter.cs | 147 +
.../api/Models/RunCommandInputParameter.cs | 74 +
.../Models/RunCommandInputParameter.json.cs | 110 +
.../RunCommandManagedIdentity.PowerShell.cs | 184 +
...RunCommandManagedIdentity.TypeConverter.cs | 147 +
.../api/Models/RunCommandManagedIdentity.cs | 103 +
.../Models/RunCommandManagedIdentity.json.cs | 117 +
.../api/Models/Settings.PowerShell.cs | 266 +
.../api/Models/Settings.TypeConverter.cs | 146 +
.../generated/api/Models/Settings.cs | 166 +
.../generated/api/Models/Settings.json.cs | 109 +
.../SettingsGatewayProperties.PowerShell.cs | 164 +
...SettingsGatewayProperties.TypeConverter.cs | 147 +
.../api/Models/SettingsGatewayProperties.cs | 54 +
.../Models/SettingsGatewayProperties.json.cs | 108 +
.../Models/SettingsProperties.PowerShell.cs | 180 +
.../SettingsProperties.TypeConverter.cs | 147 +
.../api/Models/SettingsProperties.cs | 86 +
.../api/Models/SettingsProperties.json.cs | 113 +
.../api/Models/StorageProfile.PowerShell.cs | 164 +
.../Models/StorageProfile.TypeConverter.cs | 147 +
.../generated/api/Models/StorageProfile.cs | 54 +
.../api/Models/StorageProfile.json.cs | 116 +
...TrackedResourceAutoGenerated.PowerShell.cs | 254 +
...ckedResourceAutoGenerated.TypeConverter.cs | 147 +
.../Models/TrackedResourceAutoGenerated.cs | 153 +
.../TrackedResourceAutoGenerated.json.cs | 117 +
.../GetAzConnectedExtensionMetadata_Get.cs | 2 +-
.../GetAzConnectedExtensionMetadata_List.cs | 2 +-
.../GetAzConnectedLicenseProfile_Get.cs | 511 +
.../GetAzConnectedLicenseProfile_List.cs | 538 +
.../cmdlets/GetAzConnectedLicense_Get.cs | 2 +-
.../cmdlets/GetAzConnectedLicense_List.cs | 2 +-
.../cmdlets/GetAzConnectedLicense_List1.cs | 2 +-
.../GetAzConnectedMachineExtension_Get.cs | 2 +-
.../GetAzConnectedMachineExtension_List.cs | 2 +-
.../GetAzConnectedMachineRunCommand_Get.cs | 526 +
.../GetAzConnectedMachineRunCommand_List.cs | 553 +
.../cmdlets/GetAzConnectedMachine_Get.cs | 2 +-
.../cmdlets/GetAzConnectedMachine_List.cs | 2 +-
.../cmdlets/GetAzConnectedMachine_List1.cs | 2 +-
...tworkSecurityPerimeterConfiguration_Get.cs | 2 +-
...workSecurityPerimeterConfiguration_List.cs | 2 +-
.../cmdlets/GetAzConnectedOperation_List.cs | 2 +-
.../GetAzConnectedPrivateLinkScope_Get.cs | 2 +-
.../GetAzConnectedPrivateLinkScope_List.cs | 2 +-
.../GetAzConnectedPrivateLinkScope_List1.cs | 2 +-
.../InstallAzConnectedMachinePatch_Install.cs | 2 +-
...AzConnectedMachinePatch_InstallExpanded.cs | 2 +-
...onnectedMachinePatch_InstallViaIdentity.cs | 2 +-
...MachinePatch_InstallViaIdentityExpanded.cs | 2 +-
...ctedMachinePatch_InstallViaJsonFilePath.cs | 2 +-
...nectedMachinePatch_InstallViaJsonString.cs | 2 +-
...okeAzConnectedAssessMachinePatch_Assess.cs | 2 +-
...tedAssessMachinePatch_AssessViaIdentity.cs | 2 +-
...ecurityPerimeterConfiguration_Reconcile.cs | 2 +-
...meterConfiguration_ReconcileViaIdentity.cs | 2 +-
...on_ReconcileViaIdentityPrivateLinkScope.cs | 2 +-
.../NewAzConnectedLicenseProfile_Create.cs | 608 +
...zConnectedLicenseProfile_CreateExpanded.cs | 684 +
...nnectedLicenseProfile_CreateViaIdentity.cs | 582 +
...icenseProfile_CreateViaIdentityExpanded.cs | 658 +
...tedLicenseProfile_CreateViaJsonFilePath.cs | 610 +
...ectedLicenseProfile_CreateViaJsonString.cs | 608 +
.../cmdlets/NewAzConnectedLicense_Create.cs | 2 +-
.../NewAzConnectedLicense_CreateExpanded.cs | 2 +-
...NewAzConnectedLicense_CreateViaIdentity.cs | 2 +-
...nectedLicense_CreateViaIdentityExpanded.cs | 2 +-
...zConnectedLicense_CreateViaJsonFilePath.cs | 2 +-
...wAzConnectedLicense_CreateViaJsonString.cs | 2 +-
.../NewAzConnectedMachineExtension_Create.cs | 2 +-
...onnectedMachineExtension_CreateExpanded.cs | 2 +-
...ectedMachineExtension_CreateViaIdentity.cs | 2 +-
...hineExtension_CreateViaIdentityExpanded.cs | 2 +-
...chineExtension_CreateViaIdentityMachine.cs | 2 +-
...ension_CreateViaIdentityMachineExpanded.cs | 2 +-
...dMachineExtension_CreateViaJsonFilePath.cs | 2 +-
...tedMachineExtension_CreateViaJsonString.cs | 2 +-
.../NewAzConnectedMachineRunCommand_Create.cs | 624 +
...nnectedMachineRunCommand_CreateExpanded.cs | 853 +
...ctedMachineRunCommand_CreateViaIdentity.cs | 586 +
...ineRunCommand_CreateViaIdentityExpanded.cs | 817 +
...hineRunCommand_CreateViaIdentityMachine.cs | 600 +
...ommand_CreateViaIdentityMachineExpanded.cs | 830 +
...MachineRunCommand_CreateViaJsonFilePath.cs | 626 +
...edMachineRunCommand_CreateViaJsonString.cs | 624 +
.../NewAzConnectedPrivateLinkScope_Create.cs | 2 +-
...onnectedPrivateLinkScope_CreateExpanded.cs | 2 +-
...ectedPrivateLinkScope_CreateViaIdentity.cs | 2 +-
...vateLinkScope_CreateViaIdentityExpanded.cs | 2 +-
...dPrivateLinkScope_CreateViaJsonFilePath.cs | 2 +-
...tedPrivateLinkScope_CreateViaJsonString.cs | 2 +-
.../RemoveAzConnectedLicenseProfile_Delete.cs | 614 +
...nnectedLicenseProfile_DeleteViaIdentity.cs | 588 +
.../RemoveAzConnectedLicense_Delete.cs | 2 +-
...oveAzConnectedLicense_DeleteViaIdentity.cs | 2 +-
...emoveAzConnectedMachineExtension_Delete.cs | 2 +-
...ectedMachineExtension_DeleteViaIdentity.cs | 2 +-
...chineExtension_DeleteViaIdentityMachine.cs | 2 +-
...moveAzConnectedMachineRunCommand_Delete.cs | 630 +
...ctedMachineRunCommand_DeleteViaIdentity.cs | 592 +
...hineRunCommand_DeleteViaIdentityMachine.cs | 606 +
.../RemoveAzConnectedMachine_Delete.cs | 2 +-
...oveAzConnectedMachine_DeleteViaIdentity.cs | 2 +-
...emoveAzConnectedPrivateLinkScope_Delete.cs | 2 +-
...ectedPrivateLinkScope_DeleteViaIdentity.cs | 2 +-
.../cmdlets/SetAzConnectedLicense_Update.cs | 2 +-
.../SetAzConnectedLicense_UpdateExpanded.cs | 2 +-
...zConnectedLicense_UpdateViaJsonFilePath.cs | 2 +-
...tAzConnectedLicense_UpdateViaJsonString.cs | 2 +-
.../SetAzConnectedMachineExtension_Update.cs | 2 +-
...onnectedMachineExtension_UpdateExpanded.cs | 2 +-
...dMachineExtension_UpdateViaJsonFilePath.cs | 2 +-
...tedMachineExtension_UpdateViaJsonString.cs | 2 +-
.../SetAzConnectedPrivateLinkScope_Update.cs | 2 +-
...onnectedPrivateLinkScope_UpdateExpanded.cs | 2 +-
...dPrivateLinkScope_UpdateViaJsonFilePath.cs | 2 +-
...tedPrivateLinkScope_UpdateViaJsonString.cs | 2 +-
...ateAzConnectedExtension_UpgradeExpanded.cs | 2 +-
...AzConnectedExtension_UpgradeViaIdentity.cs | 2 +-
...tedExtension_UpgradeViaIdentityExpanded.cs | 2 +-
...nnectedExtension_UpgradeViaJsonFilePath.cs | 2 +-
...ConnectedExtension_UpgradeViaJsonString.cs | 2 +-
.../UpdateAzConnectedLicenseProfile_Update.cs | 608 +
...zConnectedLicenseProfile_UpdateExpanded.cs | 669 +
...nnectedLicenseProfile_UpdateViaIdentity.cs | 582 +
...icenseProfile_UpdateViaIdentityExpanded.cs | 645 +
...tedLicenseProfile_UpdateViaJsonFilePath.cs | 610 +
...ectedLicenseProfile_UpdateViaJsonString.cs | 608 +
...pdateAzConnectedMachineExtension_Update.cs | 2 +-
...onnectedMachineExtension_UpdateExpanded.cs | 2 +-
...ectedMachineExtension_UpdateViaIdentity.cs | 2 +-
...hineExtension_UpdateViaIdentityExpanded.cs | 2 +-
...chineExtension_UpdateViaIdentityMachine.cs | 2 +-
...ension_UpdateViaIdentityMachineExpanded.cs | 2 +-
...dMachineExtension_UpdateViaJsonFilePath.cs | 2 +-
...tedMachineExtension_UpdateViaJsonString.cs | 2 +-
...dateAzConnectedMachineRunCommand_Update.cs | 634 +
...nnectedMachineRunCommand_UpdateExpanded.cs | 916 +
...ctedMachineRunCommand_UpdateViaIdentity.cs | 598 +
...ineRunCommand_UpdateViaIdentityExpanded.cs | 882 +
...hineRunCommand_UpdateViaIdentityMachine.cs | 612 +
...ommand_UpdateViaIdentityMachineExpanded.cs | 895 +
.../UpdateAzConnectedMachine_Update.cs | 2 +-
...UpdateAzConnectedMachine_UpdateExpanded.cs | 14 +-
...ateAzConnectedMachine_UpdateViaIdentity.cs | 2 +-
...nectedMachine_UpdateViaIdentityExpanded.cs | 14 +-
...zConnectedMachine_UpdateViaJsonFilePath.cs | 2 +-
...eAzConnectedMachine_UpdateViaJsonString.cs | 2 +-
...teAzConnectedPrivateLinkScopeTag_Update.cs | 2 +-
...ectedPrivateLinkScopeTag_UpdateExpanded.cs | 2 +-
...edPrivateLinkScopeTag_UpdateViaIdentity.cs | 2 +-
...eLinkScopeTag_UpdateViaIdentityExpanded.cs | 2 +-
...ivateLinkScopeTag_UpdateViaJsonFilePath.cs | 2 +-
...PrivateLinkScopeTag_UpdateViaJsonString.cs | 2 +-
.../help/Az.ConnectedMachine.md | 30 +
.../help/Get-AzConnectedLicenseProfile.md | 163 +
.../help/Get-AzConnectedMachineRunCommand.md | 189 +
.../help/New-AzConnectedLicenseProfile.md | 428 +
.../New-AzConnectedLicenseProfileFeature.md | 76 +
.../help/New-AzConnectedMachineRunCommand.md | 675 +
.../help/Remove-AzConnectedLicenseProfile.md | 208 +
.../Remove-AzConnectedMachineRunCommand.md | 245 +
.../help/Update-AzConnectedLicenseProfile.md | 408 +
...Update-AzConnectedLicenseProfileFeature.md | 76 +
.../Update-AzConnectedMachineRunCommand.md | 618 +
.../internal/ProxyCmdletDefinitions.ps1 | 16 +-
.../internal/Update-AzConnectedMachine.ps1 | 16 +-
...zConnectedExtensionMetadata.Recording.json | 50 +-
.../Get-AzConnectedLicense.Recording.json | 71 +-
...t-AzConnectedLicenseProfile.Recording.json | 45 +
.../Get-AzConnectedLicenseProfile.Tests.ps1 | 22 +
.../Get-AzConnectedMachine.Recording.json | 52 +-
...AzConnectedMachineExtension.Recording.json | 42 +-
...zConnectedMachineRunCommand.Recording.json | 88 +
...Get-AzConnectedMachineRunCommand.Tests.ps1 | 27 +
...urityPerimeterConfiguration.Recording.json | 50 +-
...rkSecurityPerimeterConfiguration.Tests.ps1 | 4 +-
...AzConnectedPrivateLinkScope.Recording.json | 52 +-
...all-AzConnectedMachinePatch.Recording.json | 201 +-
...ConnectedAssessMachinePatch.Recording.json | 188 +-
...urityPerimeterConfiguration.Recording.json | 75 +-
...rkSecurityPerimeterConfiguration.Tests.ps1 | 2 +-
.../New-AzConnectedLicense.Recording.json | 42 +-
...w-AzConnectedLicenseProfile.Recording.json | 1922 ++
.../New-AzConnectedLicenseProfile.Tests.ps1 | 29 +
...AzConnectedLicenseProfileFeature.Tests.ps1 | 22 +
...AzConnectedMachineExtension.Recording.json | 278 +-
...zConnectedMachineRunCommand.Recording.json | 174 +
...New-AzConnectedMachineRunCommand.Tests.ps1 | 22 +
...AzConnectedPrivateLinkScope.Recording.json | 16 +-
.../Remove-AzConnectedLicense.Recording.json | 23 +-
...e-AzConnectedLicenseProfile.Recording.json | 133 +
...Remove-AzConnectedLicenseProfile.Tests.ps1 | 21 +
.../Remove-AzConnectedMachine.Recording.json | 21 +-
...AzConnectedMachineExtension.Recording.json | 285 +-
...zConnectedMachineRunCommand.Recording.json | 180 +
...ove-AzConnectedMachineRunCommand.Tests.ps1 | 21 +
...AzConnectedPrivateLinkScope.Recording.json | 20 +-
.../Set-AzConnectedLicense.Recording.json | 42 +-
...AzConnectedMachineExtension.Recording.json | 316 +-
...AzConnectedPrivateLinkScope.Recording.json | 25 +-
.../Set-AzConnectedPrivateLinkScope.Tests.ps1 | 2 +-
...Update-AzConnectedExtension.Recording.json | 69 +-
...e-AzConnectedLicenseProfile.Recording.json | 128 +
...Update-AzConnectedLicenseProfile.Tests.ps1 | 24 +
...AzConnectedLicenseProfileFeature.Tests.ps1 | 22 +
.../Update-AzConnectedMachine.Recording.json | 20 +-
...AzConnectedMachineExtension.Recording.json | 316 +-
...zConnectedMachineRunCommand.Recording.json | 217 +
...ate-AzConnectedMachineRunCommand.Tests.ps1 | 23 +
...onnectedPrivateLinkScopeTag.Recording.json | 21 +-
.../ConnectedMachine.Autorest/test/env.json | 26 +-
.../ConnectedMachine.Autorest/test/utils.ps1 | 12 +-
.../ConnectedMachine/Az.ConnectedMachine.psd1 | 25 +-
.../ConnectedMachine/ChangeLog.md | 1 +
.../help/Az.ConnectedMachine.md | 30 +
.../help/Connect-AzConnectedMachine.md | 17 +-
.../help/Get-AzConnectedExtensionMetadata.md | 19 +-
.../help/Get-AzConnectedLicense.md | 21 +-
.../help/Get-AzConnectedLicenseProfile.md | 170 +
.../help/Get-AzConnectedMachine.md | 21 +-
.../help/Get-AzConnectedMachineExtension.md | 19 +-
.../help/Get-AzConnectedMachineRunCommand.md | 204 +
...edNetworkSecurityPerimeterConfiguration.md | 19 +-
.../help/Get-AzConnectedPrivateLinkScope.md | 21 +-
.../help/Install-AzConnectedMachinePatch.md | 27 +-
.../Invoke-AzConnectedAssessMachinePatch.md | 19 +-
...leNetworkSecurityPerimeterConfiguration.md | 21 +-
.../help/New-AzConnectedLicense.md | 27 +-
.../help/New-AzConnectedLicenseDetail.md | 17 +-
.../help/New-AzConnectedLicenseProfile.md | 443 +
.../New-AzConnectedLicenseProfileFeature.md | 91 +
.../help/New-AzConnectedMachineExtension.md | 31 +-
.../help/New-AzConnectedMachineRunCommand.md | 689 +
.../help/New-AzConnectedPrivateLinkScope.md | 27 +-
.../help/Remove-AzConnectedLicense.md | 19 +-
.../help/Remove-AzConnectedLicenseProfile.md | 223 +
.../help/Remove-AzConnectedMachine.md | 19 +-
.../Remove-AzConnectedMachineExtension.md | 21 +-
.../Remove-AzConnectedMachineRunCommand.md | 260 +
.../Remove-AzConnectedPrivateLinkScope.md | 19 +-
.../help/Set-AzConnectedLicense.md | 23 +-
.../help/Set-AzConnectedMachineExtension.md | 23 +-
.../help/Set-AzConnectedPrivateLinkScope.md | 23 +-
.../help/Update-AzConnectedExtension.md | 25 +-
.../help/Update-AzConnectedLicenseProfile.md | 423 +
...Update-AzConnectedLicenseProfileFeature.md | 91 +
.../help/Update-AzConnectedMachine.md | 27 +-
.../Update-AzConnectedMachineExtension.md | 31 +-
.../Update-AzConnectedMachineRunCommand.md | 632 +
.../Update-AzConnectedPrivateLinkScopeTag.md | 27 +-
.../Az.ConnectedMachine/SignatureIssues.csv | 3 +
418 files changed, 79112 insertions(+), 9945 deletions(-)
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines-licenseProfiles.json
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines-runCommands.json
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/custom/autogen-model-cmdlets/New-AzConnectedLicenseProfileFeature.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/custom/autogen-model-cmdlets/Update-AzConnectedLicenseProfileFeature.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/examples/Get-AzConnectedLicenseProfile.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/examples/Get-AzConnectedMachineRunCommand.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/examples/New-AzConnectedLicenseProfile.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/examples/New-AzConnectedLicenseProfileFeature.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/examples/New-AzConnectedMachineRunCommand.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/examples/Remove-AzConnectedLicenseProfile.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/examples/Remove-AzConnectedMachineRunCommand.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/examples/Update-AzConnectedLicenseProfile.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/examples/Update-AzConnectedLicenseProfileFeature.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/examples/Update-AzConnectedMachineRunCommand.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/exports/Get-AzConnectedLicenseProfile.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/exports/Get-AzConnectedMachineRunCommand.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedLicenseProfile.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedLicenseProfileFeature.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedMachineRunCommand.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/exports/Remove-AzConnectedLicenseProfile.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/exports/Remove-AzConnectedMachineRunCommand.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/exports/Update-AzConnectedLicenseProfile.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/exports/Update-AzConnectedLicenseProfileFeature.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/exports/Update-AzConnectedMachineRunCommand.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/AgentVersion.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/AgentVersion.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/AgentVersion.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/AgentVersion.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/AgentVersionsList.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/AgentVersionsList.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/AgentVersionsList.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/AgentVersionsList.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Disk.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Disk.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Disk.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Disk.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/ErrorDetailAutoGenerated.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/ErrorDetailAutoGenerated.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/ErrorDetailAutoGenerated.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/ErrorDetailAutoGenerated.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/ErrorResponseAutoGenerated.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/ErrorResponseAutoGenerated.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/ErrorResponseAutoGenerated.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/ErrorResponseAutoGenerated.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/FirmwareProfile.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/FirmwareProfile.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/FirmwareProfile.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/FirmwareProfile.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Gateway.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Gateway.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Gateway.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Gateway.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewayProperties.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewayProperties.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewayProperties.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewayProperties.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewayUpdate.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewayUpdate.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewayUpdate.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewayUpdate.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewayUpdateProperties.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewayUpdateProperties.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewayUpdateProperties.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewayUpdateProperties.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewaysListResult.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewaysListResult.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewaysListResult.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/GatewaysListResult.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HardwareProfile.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HardwareProfile.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HardwareProfile.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HardwareProfile.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HybridIdentityMetadata.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HybridIdentityMetadata.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HybridIdentityMetadata.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HybridIdentityMetadata.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HybridIdentityMetadataList.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HybridIdentityMetadataList.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HybridIdentityMetadataList.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HybridIdentityMetadataList.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HybridIdentityMetadataProperties.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HybridIdentityMetadataProperties.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HybridIdentityMetadataProperties.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/HybridIdentityMetadataProperties.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommand.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommand.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommand.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommand.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandInstanceView.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandInstanceView.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandInstanceView.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandInstanceView.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandProperties.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandProperties.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandProperties.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandProperties.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandScriptSource.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandScriptSource.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandScriptSource.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandScriptSource.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandUpdate.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandUpdate.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandUpdate.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandUpdate.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandsListResult.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandsListResult.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandsListResult.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/MachineRunCommandsListResult.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/NetworkConfiguration.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/NetworkConfiguration.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/NetworkConfiguration.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/NetworkConfiguration.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/NetworkConfigurationProperties.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/NetworkConfigurationProperties.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/NetworkConfigurationProperties.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/NetworkConfigurationProperties.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Processor.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Processor.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Processor.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Processor.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/RunCommandInputParameter.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/RunCommandInputParameter.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/RunCommandInputParameter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/RunCommandInputParameter.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/RunCommandManagedIdentity.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/RunCommandManagedIdentity.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/RunCommandManagedIdentity.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/RunCommandManagedIdentity.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Settings.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Settings.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Settings.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/Settings.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/SettingsGatewayProperties.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/SettingsGatewayProperties.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/SettingsGatewayProperties.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/SettingsGatewayProperties.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/SettingsProperties.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/SettingsProperties.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/SettingsProperties.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/SettingsProperties.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/StorageProfile.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/StorageProfile.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/StorageProfile.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/StorageProfile.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/TrackedResourceAutoGenerated.PowerShell.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/TrackedResourceAutoGenerated.TypeConverter.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/TrackedResourceAutoGenerated.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/api/Models/TrackedResourceAutoGenerated.json.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/GetAzConnectedLicenseProfile_Get.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/GetAzConnectedLicenseProfile_List.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/GetAzConnectedMachineRunCommand_Get.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/GetAzConnectedMachineRunCommand_List.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/NewAzConnectedLicenseProfile_Create.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/NewAzConnectedLicenseProfile_CreateExpanded.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/NewAzConnectedLicenseProfile_CreateViaIdentity.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/NewAzConnectedLicenseProfile_CreateViaIdentityExpanded.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/NewAzConnectedLicenseProfile_CreateViaJsonFilePath.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/NewAzConnectedLicenseProfile_CreateViaJsonString.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/NewAzConnectedMachineRunCommand_Create.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/NewAzConnectedMachineRunCommand_CreateExpanded.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/NewAzConnectedMachineRunCommand_CreateViaIdentity.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/NewAzConnectedMachineRunCommand_CreateViaIdentityExpanded.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/NewAzConnectedMachineRunCommand_CreateViaIdentityMachine.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/NewAzConnectedMachineRunCommand_CreateViaIdentityMachineExpanded.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/NewAzConnectedMachineRunCommand_CreateViaJsonFilePath.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/NewAzConnectedMachineRunCommand_CreateViaJsonString.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/RemoveAzConnectedLicenseProfile_Delete.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/RemoveAzConnectedLicenseProfile_DeleteViaIdentity.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/RemoveAzConnectedMachineRunCommand_Delete.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/RemoveAzConnectedMachineRunCommand_DeleteViaIdentity.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/RemoveAzConnectedMachineRunCommand_DeleteViaIdentityMachine.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/UpdateAzConnectedLicenseProfile_Update.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/UpdateAzConnectedLicenseProfile_UpdateExpanded.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/UpdateAzConnectedLicenseProfile_UpdateViaIdentity.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/UpdateAzConnectedLicenseProfile_UpdateViaIdentityExpanded.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/UpdateAzConnectedLicenseProfile_UpdateViaJsonFilePath.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/UpdateAzConnectedLicenseProfile_UpdateViaJsonString.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/UpdateAzConnectedMachineRunCommand_Update.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/UpdateAzConnectedMachineRunCommand_UpdateExpanded.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/UpdateAzConnectedMachineRunCommand_UpdateViaIdentity.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/UpdateAzConnectedMachineRunCommand_UpdateViaIdentityExpanded.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/UpdateAzConnectedMachineRunCommand_UpdateViaIdentityMachine.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/generated/cmdlets/UpdateAzConnectedMachineRunCommand_UpdateViaIdentityMachineExpanded.cs
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/help/Get-AzConnectedLicenseProfile.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/help/Get-AzConnectedMachineRunCommand.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/help/New-AzConnectedLicenseProfile.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/help/New-AzConnectedLicenseProfileFeature.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/help/New-AzConnectedMachineRunCommand.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/help/Remove-AzConnectedLicenseProfile.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/help/Remove-AzConnectedMachineRunCommand.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/help/Update-AzConnectedLicenseProfile.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/help/Update-AzConnectedLicenseProfileFeature.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/help/Update-AzConnectedMachineRunCommand.md
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/Get-AzConnectedLicenseProfile.Recording.json
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/Get-AzConnectedLicenseProfile.Tests.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/Get-AzConnectedMachineRunCommand.Recording.json
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/Get-AzConnectedMachineRunCommand.Tests.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/New-AzConnectedLicenseProfile.Recording.json
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/New-AzConnectedLicenseProfile.Tests.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/New-AzConnectedLicenseProfileFeature.Tests.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/New-AzConnectedMachineRunCommand.Recording.json
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/New-AzConnectedMachineRunCommand.Tests.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/Remove-AzConnectedLicenseProfile.Recording.json
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/Remove-AzConnectedLicenseProfile.Tests.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/Remove-AzConnectedMachineRunCommand.Recording.json
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/Remove-AzConnectedMachineRunCommand.Tests.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/Update-AzConnectedLicenseProfile.Recording.json
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/Update-AzConnectedLicenseProfile.Tests.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/Update-AzConnectedLicenseProfileFeature.Tests.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/Update-AzConnectedMachineRunCommand.Recording.json
create mode 100644 src/ConnectedMachine/ConnectedMachine.Autorest/test/Update-AzConnectedMachineRunCommand.Tests.ps1
create mode 100644 src/ConnectedMachine/ConnectedMachine/help/Get-AzConnectedLicenseProfile.md
create mode 100644 src/ConnectedMachine/ConnectedMachine/help/Get-AzConnectedMachineRunCommand.md
create mode 100644 src/ConnectedMachine/ConnectedMachine/help/New-AzConnectedLicenseProfile.md
create mode 100644 src/ConnectedMachine/ConnectedMachine/help/New-AzConnectedLicenseProfileFeature.md
create mode 100644 src/ConnectedMachine/ConnectedMachine/help/New-AzConnectedMachineRunCommand.md
create mode 100644 src/ConnectedMachine/ConnectedMachine/help/Remove-AzConnectedLicenseProfile.md
create mode 100644 src/ConnectedMachine/ConnectedMachine/help/Remove-AzConnectedMachineRunCommand.md
create mode 100644 src/ConnectedMachine/ConnectedMachine/help/Update-AzConnectedLicenseProfile.md
create mode 100644 src/ConnectedMachine/ConnectedMachine/help/Update-AzConnectedLicenseProfileFeature.md
create mode 100644 src/ConnectedMachine/ConnectedMachine/help/Update-AzConnectedMachineRunCommand.md
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/Az.ConnectedMachine.format.ps1xml b/src/ConnectedMachine/ConnectedMachine.Autorest/Az.ConnectedMachine.format.ps1xml
index 1f6ff5536104..e282006b3bc0 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/Az.ConnectedMachine.format.ps1xml
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/Az.ConnectedMachine.format.ps1xml
@@ -379,6 +379,62 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.AgentVersion
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.AgentVersion#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AgentVersion1
+
+
+ DownloadLink
+
+
+ OSType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.AgentVersionsList
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.AgentVersionsList#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.AvailablePatchCountByClassification
@@ -500,12 +556,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -521,9 +589,15 @@
+
+
+
+
+
+
@@ -539,9 +613,15 @@
+
+
+
+
+
+
@@ -552,12 +632,24 @@
+
+ BaseProvider
+
+
+ BaseResourceName
+
+
+ BaseResourceType
+
ExtensionName
ExtensionType
+
+ GatewayName
+
GroupName
@@ -573,9 +665,15 @@
MachineName
+
+ MetadataName
+
Name
+
+ OSType
+
PerimeterName
@@ -591,9 +689,15 @@
ResourceGroupName
+
+ RunCommandName
+
ScopeName
+
+ SettingsResourceName
+
SubscriptionId
@@ -667,6 +771,52 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Disk
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Disk#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ GeneratedId
+
+
+ MaxSizeInByte
+
+
+ Name
+
+
+ Path
+
+
+ UsedSpaceInByte
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ErrorDetail
@@ -701,6 +851,40 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ErrorDetailAutoGenerated
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ErrorDetailAutoGenerated#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ Message
+
+
+ Target
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.EsuKey
@@ -918,45 +1102,91 @@
- Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridComputePrivateLinkScope
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.FirmwareProfile
- Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridComputePrivateLinkScope#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.FirmwareProfile#Multiple
-
+
+
+
+
+
+
+
+ SerialNumber
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Gateway
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Gateway#Multiple
+
+
+
+
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
- ResourceGroupName
+ Location
Name
- Location
+ SystemDataCreatedAt
- PublicNetworkAccess
+ SystemDataCreatedBy
- ProvisioningState
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ ResourceGroupName
@@ -964,21 +1194,39 @@
- Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridComputePrivateLinkScopeListResult
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.GatewayProperties
- Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridComputePrivateLinkScopeListResult#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.GatewayProperties#Multiple
-
+
+
+
+
+
+
+
+
+
+
- NextLink
+ GatewayEndpoint
+
+
+ GatewayId
+
+
+ GatewayType
+
+
+ ProvisioningState
@@ -986,33 +1234,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridComputePrivateLinkScopeProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.GatewaysListResult
- Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridComputePrivateLinkScopeProperties#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.GatewaysListResult#Multiple
-
-
-
-
-
-
-
+
- PrivateLinkScopeId
-
-
- ProvisioningState
-
-
- PublicNetworkAccess
+ NextLink
@@ -1020,27 +1256,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Identity
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HardwareProfile
- Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Identity#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HardwareProfile#Multiple
-
+
-
+
- PrincipalId
+ NumberOfCpuSocket
- TenantId
+ TotalPhysicalMemoryInByte
@@ -1048,9 +1284,253 @@
- Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IPAddress
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridComputePrivateLinkScope
- Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IPAddress#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridComputePrivateLinkScope#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ResourceGroupName
+
+
+ Name
+
+
+ Location
+
+
+ PublicNetworkAccess
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridComputePrivateLinkScopeListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridComputePrivateLinkScopeListResult#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridComputePrivateLinkScopeProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridComputePrivateLinkScopeProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PrivateLinkScopeId
+
+
+ ProvisioningState
+
+
+ PublicNetworkAccess
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridIdentityMetadata
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridIdentityMetadata#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridIdentityMetadataList
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridIdentityMetadataList#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridIdentityMetadataProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.HybridIdentityMetadataProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PublicKey
+
+
+ VMId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Identity
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Identity#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PrincipalId
+
+
+ TenantId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IPAddress
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IPAddress#Multiple
@@ -2302,21 +2782,395 @@
- Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineUpdate
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineRunCommand
- Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineUpdate#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineRunCommand#Multiple
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineRunCommandInstanceView
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineRunCommandInstanceView#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ EndTime
+
+
+ Error
+
+
+ ExecutionMessage
+
+
+ ExecutionState
+
+
+ ExitCode
+
+
+ Output
+
+
+ StartTime
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineRunCommandProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineRunCommandProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AsyncExecution
+
+
+ ErrorBlobUri
+
+
+ OutputBlobUri
+
+
+ ProvisioningState
+
+
+ RunAsPassword
+
+
+ RunAsUser
+
+
+ TimeoutInSecond
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineRunCommandScriptSource
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineRunCommandScriptSource#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CommandId
+
+
+ Script
+
+
+ ScriptUri
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineRunCommandsListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineRunCommandsListResult#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineUpdate
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineUpdate#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Kind
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineUpdateProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineUpdateProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ParentClusterResourceId
+
+
+ PrivateLinkScopeResourceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.NetworkConfiguration
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.NetworkConfiguration#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.NetworkConfigurationProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.NetworkConfigurationProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Kind
+ Location
+
+
+ NetworkConfigurationScopeId
+
+
+ NetworkConfigurationScopeResourceId
+
+
+ TenantId
@@ -2324,27 +3178,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineUpdateProperties
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.NetworkInterface
- Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineUpdateProperties#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.NetworkInterface#Multiple
-
+
-
+
- ParentClusterResourceId
+ MacAddress
- PrivateLinkScopeResourceId
+ Name
@@ -3009,6 +3863,34 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Processor
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Processor#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ NumberOfCore
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ProductFeature
@@ -3383,6 +4265,62 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.RunCommandInputParameter
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.RunCommandInputParameter#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Value
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.RunCommandManagedIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.RunCommandManagedIdentity#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ClientId
+
+
+ ObjectId
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ServiceStatus
@@ -3411,6 +4349,114 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Settings
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Settings#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.SettingsGatewayProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.SettingsGatewayProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ GatewayResourceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.SettingsProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.SettingsProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ TenantId
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Subnet
@@ -3571,6 +4617,70 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.TrackedResourceAutoGenerated
+
+ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.TrackedResourceAutoGenerated#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ Location
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.TrackedResourceTags
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/Az.ConnectedMachine.psd1 b/src/ConnectedMachine/ConnectedMachine.Autorest/Az.ConnectedMachine.psd1
index be971ab2197f..67c9419491ea 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/Az.ConnectedMachine.psd1
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/Az.ConnectedMachine.psd1
@@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.ConnectedMachine.private.dll'
FormatsToProcess = './Az.ConnectedMachine.format.ps1xml'
- 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'
+ FunctionsToExport = 'Connect-AzConnectedMachine', 'Get-AzConnectedExtensionMetadata', 'Get-AzConnectedLicense', 'Get-AzConnectedLicenseProfile', 'Get-AzConnectedMachine', 'Get-AzConnectedMachineExtension', 'Get-AzConnectedMachineRunCommand', 'Get-AzConnectedNetworkSecurityPerimeterConfiguration', 'Get-AzConnectedPrivateLinkScope', 'Install-AzConnectedMachinePatch', 'Invoke-AzConnectedAssessMachinePatch', 'Invoke-AzConnectedReconcileNetworkSecurityPerimeterConfiguration', 'New-AzConnectedLicense', 'New-AzConnectedLicenseDetail', 'New-AzConnectedLicenseProfile', 'New-AzConnectedLicenseProfileFeature', 'New-AzConnectedMachineExtension', 'New-AzConnectedMachineRunCommand', 'New-AzConnectedPrivateLinkScope', 'Remove-AzConnectedLicense', 'Remove-AzConnectedLicenseProfile', 'Remove-AzConnectedMachine', 'Remove-AzConnectedMachineExtension', 'Remove-AzConnectedMachineRunCommand', 'Remove-AzConnectedPrivateLinkScope', 'Set-AzConnectedLicense', 'Set-AzConnectedMachineExtension', 'Set-AzConnectedPrivateLinkScope', 'Update-AzConnectedExtension', 'Update-AzConnectedLicenseProfile', 'Update-AzConnectedLicenseProfileFeature', 'Update-AzConnectedMachine', 'Update-AzConnectedMachineExtension', 'Update-AzConnectedMachineRunCommand', 'Update-AzConnectedPrivateLinkScopeTag'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ConnectedMachine'
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/README.md b/src/ConnectedMachine/ConnectedMachine.Autorest/README.md
index c9c0da4c645f..cb0bc33818e1 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/README.md
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/README.md
@@ -38,12 +38,12 @@ In this directory, run AutoRest:
> see https://aka.ms/autorest
``` yaml
-commit: f41d0c9332078cb2ef07b749081d94915255ada5
+commit: a9980ec5181a161dd26c5277f7651722b60503ea
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- - $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/HybridCompute.json
- - $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/privateLinkScopes.json
+ - $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/HybridCompute.json
+ - $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/privateLinkScopes.json
module-version: 0.1.0
title: ConnectedMachine
@@ -176,41 +176,41 @@ directive:
}
# add 200 response to run-command delete - comment out for stable release
- # - from: swagger-document
- # where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}"].delete.responses
- # transform: >-
- # return {
- # "200": {
- # "description": "OK"
- # },
- # "202": {
- # "description": "Accepted",
- # "headers": {
- # "Location": {
- # "description": "The URL of the resource used to check the status of the asynchronous operation.",
- # "type": "string"
- # },
- # "Retry-After": {
- # "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.",
- # "type": "integer",
- # "format": "int32"
- # },
- # "Azure-AsyncOperation": {
- # "description": "The URI to poll for completion status.",
- # "type": "string"
- # }
- # }
- # },
- # "204": {
- # "description": "No Content"
- # },
- # "default": {
- # "description": "Error response describing why the operation failed.",
- # "schema": {
- # "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
- # }
- # }
- # }
+ - from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}"].delete.responses
+ transform: >-
+ return {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted",
+ "headers": {
+ "Location": {
+ "description": "The URL of the resource used to check the status of the asynchronous operation.",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.",
+ "type": "integer",
+ "format": "int32"
+ },
+ "Azure-AsyncOperation": {
+ "description": "The URI to poll for completion status.",
+ "type": "string"
+ }
+ }
+ },
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
+ }
+ }
+ }
# GetViaIdentity isn't useful until Azure PowerShell supports piping of different subjects
- where:
@@ -259,6 +259,11 @@ directive:
parameter-name: AgentUpgradeEnableAutomaticUpgrade
set:
parameter-name: AgentUpgradeEnableAutomatic
+ - where:
+ subject: MachineRunCommand
+ parameter-name: SubscriptionId
+ set:
+ alias: Subscription
# Rename Tag to Tags
- where:
@@ -324,23 +329,18 @@ directive:
subject: MachineRunCommand
verb: Set
remove: true
- # internal API
- - where:
- subject: LicenseProfile
- remove: true
- where:
subject: Extension
variant: Upgrade
remove: true
- # we will release gateway and setting commands in a seperate module - comment out for stable release
- # - where:
- # subject: Gateway
- # remove: true
- # Remove when this API version is added - comment out for stable release
- # - where:
- # subject: Setting
- # remove: true
+ # we will release gateway and setting commands in a seperate module
+ - where:
+ subject: Gateway
+ remove: true
+ - where:
+ subject: Setting
+ remove: true
# We don't want user to send PATCH to the ESU license API
- where:
@@ -356,6 +356,12 @@ directive:
verb: Test
remove: true
+ # hide Set-AzConnectedLicenseProfile (PUT) from user and keep Update-AzConnectedLicenseProfile (PATCH)
+ - where:
+ subject: LicenseProfile
+ verb: Set
+ remove: true
+
# We don't want user to talk directly to the network configuration API
- where:
subject: NetworkConfiguration
@@ -392,5 +398,14 @@ directive:
- model-cmdlet:
- model-name: LicenseDetails
cmdlet-name: New-AzConnectedLicenseDetail
+
+ # Generate complex object for Update-AzConnectedLicenseProfile
+ - model-cmdlet:
+ - model-name: ProductFeatureUpdate
+ cmdlet-name: Update-AzConnectedLicenseProfileFeature
+ # Generate complex object for New-AzConnectedLicenseProfile, change prefix to New- will cause CI styling issue
+ - model-cmdlet:
+ - model-name: ProductFeature
+ cmdlet-name: New-AzConnectedLicenseProfileFeature
```
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/licenses.json b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/licenses.json
index 8fb78011717e..43ef2d397759 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/licenses.json
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/licenses.json
@@ -1,6 +1,6 @@
{
"resourceType": "licenses",
- "apiVersion": "2024-07-10",
+ "apiVersion": "2024-07-31-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/locations-publishers-extensionTypes-versions.json b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/locations-publishers-extensionTypes-versions.json
index c94a28b71bf2..7f2e3157e217 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/locations-publishers-extensionTypes-versions.json
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/locations-publishers-extensionTypes-versions.json
@@ -1,6 +1,6 @@
{
"resourceType": "locations/publishers/extensionTypes/versions",
- "apiVersion": "2024-07-10",
+ "apiVersion": "2024-07-31-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines-extensions.json b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines-extensions.json
index ae44509e593a..146352852fc9 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines-extensions.json
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines-extensions.json
@@ -1,6 +1,6 @@
{
"resourceType": "machines/extensions",
- "apiVersion": "2024-07-10",
+ "apiVersion": "2024-07-31-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines-licenseProfiles.json b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines-licenseProfiles.json
new file mode 100644
index 000000000000..43aff920458e
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines-licenseProfiles.json
@@ -0,0 +1,85 @@
+{
+ "resourceType": "machines/licenseProfiles",
+ "apiVersion": "2024-07-31-preview",
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
+ },
+ "commands": [
+ {
+ "name": "Get-AzConnectedLicenseProfile",
+ "description": "Retrieves information about the view of a license profile.",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.connectedmachine/get-azconnectedlicenseprofile"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-MachineName ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "Retrieves information about the view of a license profile.",
+ "parameters": [
+ {
+ "name": "-MachineName",
+ "value": "[Path.machineName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "Remove-AzConnectedLicenseProfile",
+ "description": "The operation to delete a license profile.",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.connectedmachine/remove-azconnectedlicenseprofile"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-MachineName ",
+ "-ResourceGroupName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "The operation to delete a license profile.",
+ "parameters": [
+ {
+ "name": "-MachineName",
+ "value": "[Path.machineName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines-runCommands.json b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines-runCommands.json
new file mode 100644
index 000000000000..6741a3977ff8
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines-runCommands.json
@@ -0,0 +1,95 @@
+{
+ "resourceType": "machines/runCommands",
+ "apiVersion": "2024-07-31-preview",
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
+ },
+ "commands": [
+ {
+ "name": "Get-AzConnectedMachineRunCommand",
+ "description": "The operation to get a run command.",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.connectedmachine/get-azconnectedmachineruncommand"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-MachineName ",
+ "-ResourceGroupName ",
+ "-RunCommandName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "The operation to get a run command.",
+ "parameters": [
+ {
+ "name": "-MachineName",
+ "value": "[Path.machineName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-RunCommandName",
+ "value": "[Path.runCommandName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "Remove-AzConnectedMachineRunCommand",
+ "description": "The operation to delete a run command.",
+ "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}",
+ "help": {
+ "learnMore": {
+ "url": "https://learn.microsoft.com/powershell/module/az.connectedmachine/remove-azconnectedmachineruncommand"
+ },
+ "parameterSets": [
+ {
+ "parameters": [
+ "-MachineName ",
+ "-ResourceGroupName ",
+ "-RunCommandName ",
+ "[-SubscriptionId ]"
+ ]
+ }
+ ]
+ },
+ "examples": [
+ {
+ "description": "The operation to delete a run command.",
+ "parameters": [
+ {
+ "name": "-MachineName",
+ "value": "[Path.machineName]"
+ },
+ {
+ "name": "-ResourceGroupName",
+ "value": "[Path.resourceGroupName]"
+ },
+ {
+ "name": "-RunCommandName",
+ "value": "[Path.runCommandName]"
+ },
+ {
+ "name": "-SubscriptionId",
+ "value": "[Path.subscriptionId]"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines.json b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines.json
index 16d3d724addb..9eed71978192 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines.json
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/machines.json
@@ -1,6 +1,6 @@
{
"resourceType": "machines",
- "apiVersion": "2024-07-10",
+ "apiVersion": "2024-07-31-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/privateLinkScopes-networkSecurityPerimeterConfigurations.json b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/privateLinkScopes-networkSecurityPerimeterConfigurations.json
index 1634577946c8..86071dee7f6e 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/privateLinkScopes-networkSecurityPerimeterConfigurations.json
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/privateLinkScopes-networkSecurityPerimeterConfigurations.json
@@ -1,6 +1,6 @@
{
"resourceType": "privateLinkScopes/networkSecurityPerimeterConfigurations",
- "apiVersion": "2024-07-10",
+ "apiVersion": "2024-07-31-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/privateLinkScopes.json b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/privateLinkScopes.json
index 2977054d7243..9c51e55b47d3 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/privateLinkScopes.json
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/UX/Microsoft.HybridCompute/privateLinkScopes.json
@@ -1,6 +1,6 @@
{
"resourceType": "privateLinkScopes",
- "apiVersion": "2024-07-10",
+ "apiVersion": "2024-07-31-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/build-module.ps1 b/src/ConnectedMachine/ConnectedMachine.Autorest/build-module.ps1
index c28a5ab60d42..778033aee8b5 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/build-module.ps1
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/build-module.ps1
@@ -132,7 +132,7 @@ $examplesFolder = Join-Path $PSScriptRoot 'examples'
$null = New-Item -ItemType Directory -Force -Path $examplesFolder
Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
-$modelCmdlets = @(@{modelName="LicenseDetails"; cmdletName="New-AzConnectedLicenseDetail"})
+$modelCmdlets = @(@{modelName="LicenseDetails"; cmdletName="New-AzConnectedLicenseDetail"}, @{modelName="ProductFeatureUpdate"; cmdletName="Update-AzConnectedLicenseProfileFeature"}, @{modelName="ProductFeature"; cmdletName="New-AzConnectedLicenseProfileFeature"})
$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets'
if (Test-Path $modelCmdletFolder) {
$null = Remove-Item -Force -Recurse -Path $modelCmdletFolder
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/custom/Update-AzConnectedMachine.ps1 b/src/ConnectedMachine/ConnectedMachine.Autorest/custom/Update-AzConnectedMachine.ps1
index 29d011910a15..d7dc24833108 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/custom/Update-AzConnectedMachine.ps1
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/custom/Update-AzConnectedMachine.ps1
@@ -55,7 +55,6 @@ INPUTOBJECT : Identity Parameter
[PrivateLinkScopeId ]: The id (Guid) of the Azure Arc PrivateLinkScope resource.
[Publisher ]: The publisher of the Extension being received.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected.
[RunCommandName ]: The name of the run command.
[ScopeName ]: The name of the Azure Arc PrivateLinkScope resource.
[SettingsResourceName ]: The name of the settings resource.
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/custom/autogen-model-cmdlets/New-AzConnectedLicenseProfileFeature.ps1 b/src/ConnectedMachine/ConnectedMachine.Autorest/custom/autogen-model-cmdlets/New-AzConnectedLicenseProfileFeature.ps1
new file mode 100644
index 000000000000..efa4ba879b08
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/custom/autogen-model-cmdlets/New-AzConnectedLicenseProfileFeature.ps1
@@ -0,0 +1,54 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ProductFeature.
+.Description
+Create an in-memory object for ProductFeature.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ProductFeature
+.Link
+https://learn.microsoft.com/powershell/module/Az.ConnectedMachine/new-azconnectedlicenseprofilefeature
+#>
+function New-AzConnectedLicenseProfileFeature {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ProductFeature')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Product feature name.")]
+ [string]
+ $Name,
+ [Parameter(HelpMessage="Indicates the current status of the product features.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.PSArgumentCompleterAttribute("Unknown", "Enabling", "Enabled", "Disabled", "Disabling", "Failed")]
+ [string]
+ $SubscriptionStatus
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ProductFeature]::New()
+
+ if ($PSBoundParameters.ContainsKey('Name')) {
+ $Object.Name = $Name
+ }
+ if ($PSBoundParameters.ContainsKey('SubscriptionStatus')) {
+ $Object.SubscriptionStatus = $SubscriptionStatus
+ }
+ return $Object
+ }
+}
+
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/custom/autogen-model-cmdlets/Update-AzConnectedLicenseProfileFeature.ps1 b/src/ConnectedMachine/ConnectedMachine.Autorest/custom/autogen-model-cmdlets/Update-AzConnectedLicenseProfileFeature.ps1
new file mode 100644
index 000000000000..202c905fe790
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/custom/autogen-model-cmdlets/Update-AzConnectedLicenseProfileFeature.ps1
@@ -0,0 +1,54 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ProductFeatureUpdate.
+.Description
+Create an in-memory object for ProductFeatureUpdate.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ProductFeatureUpdate
+.Link
+https://learn.microsoft.com/powershell/module/Az.ConnectedMachine/update-azconnectedlicenseprofilefeature
+#>
+function Update-AzConnectedLicenseProfileFeature {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ProductFeatureUpdate')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Product feature name.")]
+ [string]
+ $Name,
+ [Parameter(HelpMessage="Indicates the new status of the product feature.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.PSArgumentCompleterAttribute("Enable", "Disable")]
+ [string]
+ $SubscriptionStatus
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ProductFeatureUpdate]::New()
+
+ if ($PSBoundParameters.ContainsKey('Name')) {
+ $Object.Name = $Name
+ }
+ if ($PSBoundParameters.ContainsKey('SubscriptionStatus')) {
+ $Object.SubscriptionStatus = $SubscriptionStatus
+ }
+ return $Object
+ }
+}
+
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Get-AzConnectedLicenseProfile.md b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Get-AzConnectedLicenseProfile.md
new file mode 100644
index 000000000000..11ac193350ab
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Get-AzConnectedLicenseProfile.md
@@ -0,0 +1,54 @@
+### Example 1: Get ESU license profile for a machine
+```powershell
+Get-AzConnectedLicenseProfile -MachineName WIN-IAH3TLSP7A8 -ResourceGroupName PayGo_cmdlet
+```
+
+```output
+AdditionalInfo :
+Code :
+Detail :
+EsuProfileAssignedLicense :
+EsuProfileAssignedLicenseImmutableId :
+EsuProfileEsuEligibility : Ineligible
+EsuProfileEsuKey : {}
+EsuProfileEsuKeyState : Inactive
+EsuProfileServerType : Datacenter
+Id : /subscriptions/b24cc8ee-df4f-48ac-94cf-46edf36b0fae/resourceGroups/PayGo_c
+ mdlet/providers/Microsoft.HybridCompute/machines/WIN-IAH3TLSP7A8/licensePr
+ ofiles/default
+Location : eastus
+Message :
+Name : default
+ProductProfileBillingEndDate :
+ProductProfileBillingStartDate : 11/15/2024 1:53:34 AM
+ProductProfileDisenrollmentDate :
+ProductProfileEnrollmentDate : 11/8/2024 1:53:34 AM
+ProductProfileProductFeature : {{
+ "name": "WindowsServerAzureArcMgmt",
+ "subscriptionStatus": "Enabled",
+ "enrollmentDate": "2024-11-08T01:58:37.6099656Z",
+ "billingStartDate": "2024-11-08T01:58:37.6096833Z"
+ }, {
+ "name": "Hotpatch",
+ "subscriptionStatus": "Enabled",
+ "enrollmentDate": "2024-11-08T01:58:37.6095044Z",
+ "billingStartDate": "2025-02-01T00:00:00.0000000"
+ }}
+ProductProfileProductType : WindowsServer
+ProductProfileSubscriptionStatus : Enabled
+ProvisioningState : Succeeded
+ResourceGroupName : PayGo_cmdlet
+SoftwareAssuranceCustomer :
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Tags : {
+ }
+Target :
+Type : Microsoft.HybridCompute/machines/licenseProfiles
+```
+
+Get ESU license profile for a machine
\ No newline at end of file
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Get-AzConnectedMachineRunCommand.md b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Get-AzConnectedMachineRunCommand.md
new file mode 100644
index 000000000000..9e14013246be
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Get-AzConnectedMachineRunCommand.md
@@ -0,0 +1,50 @@
+### Example 1: Get run command of a machine
+```powershell
+Get-AzConnectedMachineRunCommand -ResourceGroupName "ytongtest" -MachineName "testmachine" -RunCommandName "myRunCommand2"
+```
+
+```output
+AsyncExecution : False
+ErrorBlobManagedIdentityClientId :
+ErrorBlobManagedIdentityObjectId :
+ErrorBlobUri :
+Id : /subscriptions/********-****-****-****-**********/resourceGroups/ytong
+ test/providers/Microsoft.HybridCompute/machines/testmachine/runcommands/
+ myRunCommand2
+InstanceViewEndTime : 11/8/2024 7:43:31 PM
+InstanceViewError :
+InstanceViewExecutionMessage : RunCommand script execution completed
+InstanceViewExecutionState : Succeeded
+InstanceViewExitCode : 0
+InstanceViewOutput : Hello World!
+InstanceViewStartTime : 11/8/2024 7:43:31 PM
+InstanceViewStatuses :
+Location : eastus
+Name : myRunCommand2
+OutputBlobManagedIdentityClientId :
+OutputBlobManagedIdentityObjectId :
+OutputBlobUri :
+Parameter :
+ProtectedParameter :
+ProvisioningState : Succeeded
+ResourceGroupName : ytongtest
+RunAsPassword :
+RunAsUser :
+ScriptUriManagedIdentityClientId :
+ScriptUriManagedIdentityObjectId :
+SourceCommandId :
+SourceScript : Write-Host Hello World!
+SourceScriptUri :
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Tags : {
+ }
+TimeoutInSecond : 0
+Type : Microsoft.HybridCompute/machines/runcommands
+```
+
+Get run command of a machine
\ No newline at end of file
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/examples/New-AzConnectedLicenseProfile.md b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/New-AzConnectedLicenseProfile.md
new file mode 100644
index 000000000000..d9eddf7ca8d6
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/New-AzConnectedLicenseProfile.md
@@ -0,0 +1,57 @@
+### Example 1: Create a license profile for a machine
+```powershell
+$productfeature = New-AzConnectedLicenseProfileFeature -Name "Hotpatch" -SubscriptionStatus "Enable"
+
+New-AzConnectedLicenseProfile -MachineName "WIN-IAH3TLSP7A8" -ResourceGroupName "PayGo_cmdlet" -Location "eastus" -ProductProfileProductType "WindowsServer" -ProductProfileSubscriptionStatus "Enabled" -ProductProfileProductFeature $productfeature
+```
+
+```output
+AdditionalInfo :
+Code :
+Detail :
+EsuProfileAssignedLicense :
+EsuProfileAssignedLicenseImmutableId :
+EsuProfileEsuEligibility : Ineligible
+EsuProfileEsuKey : {}
+EsuProfileEsuKeyState : Inactive
+EsuProfileServerType : Datacenter
+Id : /subscriptions/********-****-****-****-**********/resourceGroups/PayGo_c
+ mdlet/providers/Microsoft.HybridCompute/machines/WIN-IAH3TLSP7A8/licensePr
+ ofiles/default
+Location : eastus
+Message :
+Name : default
+ProductProfileBillingEndDate :
+ProductProfileBillingStartDate : 11/15/2024 1:53:34 AM
+ProductProfileDisenrollmentDate :
+ProductProfileEnrollmentDate : 11/8/2024 1:53:34 AM
+ProductProfileProductFeature : {{
+ "name": "WindowsServerAzureArcMgmt",
+ "subscriptionStatus": "Enabled",
+ "enrollmentDate": "2024-11-08T01:58:37.6099656Z",
+ "billingStartDate": "2024-11-08T01:58:37.6096833Z"
+ }, {
+ "name": "Hotpatch",
+ "subscriptionStatus": "Enabled",
+ "enrollmentDate": "2024-11-08T01:58:37.6095044Z",
+ "billingStartDate": "2025-02-01T00:00:00.0000000"
+ }}
+ProductProfileProductType : WindowsServer
+ProductProfileSubscriptionStatus : Enabled
+ProvisioningState : Succeeded
+ResourceGroupName : PayGo_cmdlet
+SoftwareAssuranceCustomer :
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Tags : {
+ }
+Target :
+Type : Microsoft.HybridCompute/machines/licenseProfiles
+```
+
+Create a license profile for a machine
+
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/examples/New-AzConnectedLicenseProfileFeature.md b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/New-AzConnectedLicenseProfileFeature.md
new file mode 100644
index 000000000000..09476eb42eec
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/New-AzConnectedLicenseProfileFeature.md
@@ -0,0 +1,7 @@
+### Example 1: Create an object to pass into license profile
+```powershell
+$productfeature = New-AzConnectedLicenseProfileFeature -Name "Hotpatch" -SubscriptionStatus "Enable"
+$productfeature | Should -Not -BeNullOrEmpty
+```
+
+Create an object to pass into license profile
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/examples/New-AzConnectedMachineRunCommand.md b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/New-AzConnectedMachineRunCommand.md
new file mode 100644
index 000000000000..eedb026ecea3
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/New-AzConnectedMachineRunCommand.md
@@ -0,0 +1,50 @@
+### Example 1: Create a run command
+```powershell
+New-AzConnectedMachineRunCommand -ResourceGroupName "ytongtest" -Location "eastus" -SourceScript "Write-Host Hello World!" -RunCommandName "myRunCommand2" -MachineName "testmachine" -Subscription "********-****-****-****-**********"
+```
+
+```output
+AsyncExecution : False
+ErrorBlobManagedIdentityClientId :
+ErrorBlobManagedIdentityObjectId :
+ErrorBlobUri :
+Id : /subscriptions/********-****-****-****-**********/resourceGroups/ytong
+ test/providers/Microsoft.HybridCompute/machines/testmachine/runcommands/
+ myRunCommand
+InstanceViewEndTime : 11/8/2024 7:43:31 PM
+InstanceViewError :
+InstanceViewExecutionMessage : RunCommand script execution completed
+InstanceViewExecutionState : Succeeded
+InstanceViewExitCode : 0
+InstanceViewOutput : Hello World!
+InstanceViewStartTime : 11/8/2024 7:43:31 PM
+InstanceViewStatuses :
+Location : eastus
+Name : myRunCommand
+OutputBlobManagedIdentityClientId :
+OutputBlobManagedIdentityObjectId :
+OutputBlobUri :
+Parameter :
+ProtectedParameter :
+ProvisioningState : Succeeded
+ResourceGroupName : ytongtest
+RunAsPassword :
+RunAsUser :
+ScriptUriManagedIdentityClientId :
+ScriptUriManagedIdentityObjectId :
+SourceCommandId :
+SourceScript : Write-Host Hello World!
+SourceScriptUri :
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Tags : {
+ }
+TimeoutInSecond : 0
+Type : Microsoft.HybridCompute/machines/runcommands
+```
+
+Create a run command
\ No newline at end of file
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Remove-AzConnectedLicenseProfile.md b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Remove-AzConnectedLicenseProfile.md
new file mode 100644
index 000000000000..582b7b63c7c2
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Remove-AzConnectedLicenseProfile.md
@@ -0,0 +1,6 @@
+### Example 1: Remove a license profile of the machine
+```powershell
+Remove-AzConnectedLicenseProfile -MachineName WIN-89LGOPE94T3 -ResourceGroupName edyoung
+```
+
+Remove a license profile of the machine
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Remove-AzConnectedMachineRunCommand.md b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Remove-AzConnectedMachineRunCommand.md
new file mode 100644
index 000000000000..eba6d1d6b7fb
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Remove-AzConnectedMachineRunCommand.md
@@ -0,0 +1,6 @@
+### Example 1: Remove a run command
+```powershell
+Remove-AzConnectedMachineRunCommand -ResourceGroupName "ytongtest" -RunCommandName "myRunCommand" -MachineName "testmachine"
+```
+
+Remove a run command
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Update-AzConnectedLicenseProfile.md b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Update-AzConnectedLicenseProfile.md
new file mode 100644
index 000000000000..991b8d91b2af
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Update-AzConnectedLicenseProfile.md
@@ -0,0 +1,51 @@
+### Example 1: Update a license profile for a machine
+```powershell
+$productfeature = Update-AzConnectedLicenseProfileFeature -Name "Hotpatch" -SubscriptionStatus "Enable"
+
+Update-AzConnectedLicenseProfile -MachineName "WIN-IAH3TLSP7A8" -ResourceGroupName "PayGo_cmdlet" -ProductProfileProductType "WindowsServer" -ProductProfileSubscriptionStatus "Enabled" -ProductProfileProductFeature $productfeature
+```
+
+```output
+AdditionalInfo :
+Code :
+Detail :
+EsuProfileAssignedLicense :
+EsuProfileAssignedLicenseImmutableId :
+EsuProfileEsuEligibility : Ineligible
+EsuProfileEsuKey :
+EsuProfileEsuKeyState : Inactive
+EsuProfileServerType : Datacenter
+Id : /subscriptions/********-****-****-****-**********/resourceGroups/e
+ dyoung/providers/Microsoft.HybridCompute/machines/WIN-89LGOPE94T3/li
+ censeProfiles/default
+Location : centraluseuap
+Message :
+Name : default
+ProductProfileBillingEndDate :
+ProductProfileBillingStartDate :
+ProductProfileDisenrollmentDate :
+ProductProfileEnrollmentDate :
+ProductProfileProductFeature : {{
+ "name": "WindowsServerAzureArcMgmt",
+ "subscriptionStatus": "Enabled",
+ "enrollmentDate": "2024-11-07T19:22:26.8693148Z",
+ "billingStartDate": "2024-11-07T19:22:26.8693071Z"
+ }}
+ProductProfileProductType : WindowsServer
+ProductProfileSubscriptionStatus :
+ProvisioningState : Succeeded
+ResourceGroupName : edyoung
+SoftwareAssuranceCustomer : True
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Tags : {
+ }
+Target :
+Type : Microsoft.HybridCompute/machines/licenseProfiles
+```
+
+Update a license profile for a machine
\ No newline at end of file
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Update-AzConnectedLicenseProfileFeature.md b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Update-AzConnectedLicenseProfileFeature.md
new file mode 100644
index 000000000000..c9703de68d82
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Update-AzConnectedLicenseProfileFeature.md
@@ -0,0 +1,8 @@
+### Example 1: Update an object to pass into license profile
+```powershell
+$productfeature = Update-AzConnectedLicenseProfileFeature -Name "Hotpatch" -SubscriptionStatus "Enable"
+$productfeature | Should -Not -BeNullOrEmpty
+```
+
+Update an object to pass into license profile
+
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Update-AzConnectedMachineRunCommand.md b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Update-AzConnectedMachineRunCommand.md
new file mode 100644
index 000000000000..abe0ed96dc3b
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/examples/Update-AzConnectedMachineRunCommand.md
@@ -0,0 +1,54 @@
+### Example 1: Update a run command with tags
+```powershell
+$tags = @{Tag1="tag1"; Tag2="tag2"}
+Update-AzConnectedMachineRunCommand -ResourceGroupName $env.ResourceGroupName -RunCommandName $env.RunCommandName -MachineName $env.MachineName -Subscription $env.SubscriptionId -Tag $tags
+```
+
+```output
+AsyncExecution : False
+ErrorBlobManagedIdentityClientId :
+ErrorBlobManagedIdentityObjectId :
+ErrorBlobUri :
+Id : /subscriptions/********-****-****-****-**********/resourceGroups/ytong
+ test/providers/Microsoft.HybridCompute/machines/testmachine/runcommands/
+ myRunCommand
+InstanceViewEndTime : 11/8/2024 7:50:54 PM
+InstanceViewError :
+InstanceViewExecutionMessage : RunCommand script execution completed
+InstanceViewExecutionState : Succeeded
+InstanceViewExitCode : 0
+InstanceViewOutput : Hello World!
+InstanceViewStartTime : 11/8/2024 7:50:54 PM
+InstanceViewStatuses :
+Location : eastus
+Name : myRunCommand
+OutputBlobManagedIdentityClientId :
+OutputBlobManagedIdentityObjectId :
+OutputBlobUri :
+Parameter :
+ProtectedParameter :
+ProvisioningState : Succeeded
+ResourceGroupName : ytongtest
+RunAsPassword :
+RunAsUser :
+ScriptUriManagedIdentityClientId :
+ScriptUriManagedIdentityObjectId :
+SourceCommandId :
+SourceScript : Write-Host Hello World!
+SourceScriptUri :
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Tags : {
+ "Tag1": "tag1",
+ "Tag2": "tag2"
+ }
+TimeoutInSecond : 0
+Type : Microsoft.HybridCompute/machines/runcommands
+```
+
+Update a run command with tags
+
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Get-AzConnectedLicenseProfile.ps1 b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Get-AzConnectedLicenseProfile.ps1
new file mode 100644
index 000000000000..ed06ff062f4f
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Get-AzConnectedLicenseProfile.ps1
@@ -0,0 +1,190 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Retrieves information about the view of a license profile.
+.Description
+Retrieves information about the view of a license profile.
+.Example
+Get-AzConnectedLicenseProfile -MachineName WIN-IAH3TLSP7A8 -ResourceGroupName PayGo_cmdlet
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ILicenseProfile
+.Link
+https://learn.microsoft.com/powershell/module/az.connectedmachine/get-azconnectedlicenseprofile
+#>
+function Get-AzConnectedLicenseProfile {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ILicenseProfile])]
+[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Path')]
+ [System.String]
+ # The name of the hybrid machine.
+ ${MachineName},
+
+ [Parameter(Mandatory)]
+ [ArgumentCompleter({Get-AzResourceGroup | Select-Object -ExpandProperty ResourceGroupName})]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.ConnectedMachine.private\Get-AzConnectedLicenseProfile_Get';
+ List = 'Az.ConnectedMachine.private\Get-AzConnectedLicenseProfile_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Get-AzConnectedMachineRunCommand.ps1 b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Get-AzConnectedMachineRunCommand.ps1
new file mode 100644
index 000000000000..f620c4c693d4
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Get-AzConnectedMachineRunCommand.ps1
@@ -0,0 +1,203 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+The operation to get a run command.
+.Description
+The operation to get a run command.
+.Example
+Get-AzConnectedMachineRunCommand -ResourceGroupName "ytongtest" -MachineName "testmachine" -RunCommandName "myRunCommand2"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IMachineRunCommand
+.Link
+https://learn.microsoft.com/powershell/module/az.connectedmachine/get-azconnectedmachineruncommand
+#>
+function Get-AzConnectedMachineRunCommand {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IMachineRunCommand])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Path')]
+ [System.String]
+ # The name of the hybrid machine.
+ ${MachineName},
+
+ [Parameter(Mandatory)]
+ [ArgumentCompleter({Get-AzResourceGroup | Select-Object -ExpandProperty ResourceGroupName})]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Path')]
+ [System.String]
+ # The name of the run command.
+ ${RunCommandName},
+
+ [Parameter()]
+ [Alias('Subscription')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Query')]
+ [System.String]
+ # The expand expression to apply on the operation.
+ ${Expand},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.ConnectedMachine.private\Get-AzConnectedMachineRunCommand_Get';
+ List = 'Az.ConnectedMachine.private\Get-AzConnectedMachineRunCommand_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Install-AzConnectedMachinePatch.ps1 b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Install-AzConnectedMachinePatch.ps1
index bcdd1f717891..552ce350c903 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Install-AzConnectedMachinePatch.ps1
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Install-AzConnectedMachinePatch.ps1
@@ -34,21 +34,29 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
INPUTOBJECT : Identity Parameter
+ [BaseProvider ]: The name of the base Resource Provider.
+ [BaseResourceName ]: The name of the base resource.
+ [BaseResourceType ]: The name of the base Resource Type.
[ExtensionName ]: The name of the machine extension.
[ExtensionType ]: The extensionType of the Extension being received.
+ [GatewayName ]: The name of the Gateway.
[GroupName ]: The name of the private link resource.
[Id ]: Resource identity path
[LicenseName ]: The name of the license.
[LicenseProfileName ]: The name of the license profile.
[Location ]: The location of the Extension being received.
[MachineName ]: The name of the hybrid machine.
+ [MetadataName ]: Name of the HybridIdentityMetadata.
[Name ]: The name of the hybrid machine.
+ [OSType ]: Defines the os type.
[PerimeterName ]: The name, in the format {perimeterGuid}.{associationName}, of the Network Security Perimeter resource.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection.
[PrivateLinkScopeId ]: The id (Guid) of the Azure Arc PrivateLinkScope resource.
[Publisher ]: The publisher of the Extension being received.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RunCommandName ]: The name of the run command.
[ScopeName ]: The name of the Azure Arc PrivateLinkScope resource.
+ [SettingsResourceName ]: The name of the settings resource.
[SubscriptionId ]: The ID of the target subscription.
[Version ]: The version of the Extension being received.
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Invoke-AzConnectedAssessMachinePatch.ps1 b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Invoke-AzConnectedAssessMachinePatch.ps1
index 52a8ce6f723c..1b85fdb77124 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Invoke-AzConnectedAssessMachinePatch.ps1
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Invoke-AzConnectedAssessMachinePatch.ps1
@@ -32,21 +32,29 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
INPUTOBJECT : Identity Parameter
+ [BaseProvider ]: The name of the base Resource Provider.
+ [BaseResourceName ]: The name of the base resource.
+ [BaseResourceType ]: The name of the base Resource Type.
[ExtensionName ]: The name of the machine extension.
[ExtensionType ]: The extensionType of the Extension being received.
+ [GatewayName ]: The name of the Gateway.
[GroupName ]: The name of the private link resource.
[Id ]: Resource identity path
[LicenseName ]: The name of the license.
[LicenseProfileName ]: The name of the license profile.
[Location ]: The location of the Extension being received.
[MachineName ]: The name of the hybrid machine.
+ [MetadataName ]: Name of the HybridIdentityMetadata.
[Name ]: The name of the hybrid machine.
+ [OSType ]: Defines the os type.
[PerimeterName ]: The name, in the format {perimeterGuid}.{associationName}, of the Network Security Perimeter resource.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection.
[PrivateLinkScopeId ]: The id (Guid) of the Azure Arc PrivateLinkScope resource.
[Publisher ]: The publisher of the Extension being received.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RunCommandName ]: The name of the run command.
[ScopeName ]: The name of the Azure Arc PrivateLinkScope resource.
+ [SettingsResourceName ]: The name of the settings resource.
[SubscriptionId ]: The ID of the target subscription.
[Version ]: The version of the Extension being received.
.Link
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Invoke-AzConnectedReconcileNetworkSecurityPerimeterConfiguration.ps1 b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Invoke-AzConnectedReconcileNetworkSecurityPerimeterConfiguration.ps1
index 11ae73048345..f6a7d624d930 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Invoke-AzConnectedReconcileNetworkSecurityPerimeterConfiguration.ps1
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/Invoke-AzConnectedReconcileNetworkSecurityPerimeterConfiguration.ps1
@@ -32,40 +32,56 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
INPUTOBJECT : Identity Parameter
+ [BaseProvider ]: The name of the base Resource Provider.
+ [BaseResourceName ]: The name of the base resource.
+ [BaseResourceType ]: The name of the base Resource Type.
[ExtensionName ]: The name of the machine extension.
[ExtensionType ]: The extensionType of the Extension being received.
+ [GatewayName ]: The name of the Gateway.
[GroupName ]: The name of the private link resource.
[Id ]: Resource identity path
[LicenseName ]: The name of the license.
[LicenseProfileName ]: The name of the license profile.
[Location ]: The location of the Extension being received.
[MachineName ]: The name of the hybrid machine.
+ [MetadataName ]: Name of the HybridIdentityMetadata.
[Name ]: The name of the hybrid machine.
+ [OSType ]: Defines the os type.
[PerimeterName ]: The name, in the format {perimeterGuid}.{associationName}, of the Network Security Perimeter resource.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection.
[PrivateLinkScopeId ]: The id (Guid) of the Azure Arc PrivateLinkScope resource.
[Publisher ]: The publisher of the Extension being received.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RunCommandName ]: The name of the run command.
[ScopeName ]: The name of the Azure Arc PrivateLinkScope resource.
+ [SettingsResourceName ]: The name of the settings resource.
[SubscriptionId ]: The ID of the target subscription.
[Version ]: The version of the Extension being received.
PRIVATELINKSCOPEINPUTOBJECT : Identity Parameter
+ [BaseProvider ]: The name of the base Resource Provider.
+ [BaseResourceName ]: The name of the base resource.
+ [BaseResourceType ]: The name of the base Resource Type.
[ExtensionName ]: The name of the machine extension.
[ExtensionType ]: The extensionType of the Extension being received.
+ [GatewayName ]: The name of the Gateway.
[GroupName ]: The name of the private link resource.
[Id ]: Resource identity path
[LicenseName ]: The name of the license.
[LicenseProfileName ]: The name of the license profile.
[Location ]: The location of the Extension being received.
[MachineName ]: The name of the hybrid machine.
+ [MetadataName ]: Name of the HybridIdentityMetadata.
[Name ]: The name of the hybrid machine.
+ [OSType ]: Defines the os type.
[PerimeterName ]: The name, in the format {perimeterGuid}.{associationName}, of the Network Security Perimeter resource.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection.
[PrivateLinkScopeId ]: The id (Guid) of the Azure Arc PrivateLinkScope resource.
[Publisher ]: The publisher of the Extension being received.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RunCommandName ]: The name of the run command.
[ScopeName ]: The name of the Azure Arc PrivateLinkScope resource.
+ [SettingsResourceName ]: The name of the settings resource.
[SubscriptionId ]: The ID of the target subscription.
[Version ]: The version of the Extension being received.
.Link
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedLicense.ps1 b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedLicense.ps1
index 32391614093e..78a736469791 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedLicense.ps1
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedLicense.ps1
@@ -34,21 +34,29 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
INPUTOBJECT : Identity Parameter
+ [BaseProvider ]: The name of the base Resource Provider.
+ [BaseResourceName ]: The name of the base resource.
+ [BaseResourceType ]: The name of the base Resource Type.
[ExtensionName ]: The name of the machine extension.
[ExtensionType ]: The extensionType of the Extension being received.
+ [GatewayName ]: The name of the Gateway.
[GroupName ]: The name of the private link resource.
[Id ]: Resource identity path
[LicenseName ]: The name of the license.
[LicenseProfileName ]: The name of the license profile.
[Location ]: The location of the Extension being received.
[MachineName ]: The name of the hybrid machine.
+ [MetadataName ]: Name of the HybridIdentityMetadata.
[Name ]: The name of the hybrid machine.
+ [OSType ]: Defines the os type.
[PerimeterName ]: The name, in the format {perimeterGuid}.{associationName}, of the Network Security Perimeter resource.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection.
[PrivateLinkScopeId ]: The id (Guid) of the Azure Arc PrivateLinkScope resource.
[Publisher ]: The publisher of the Extension being received.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RunCommandName ]: The name of the run command.
[ScopeName ]: The name of the Azure Arc PrivateLinkScope resource.
+ [SettingsResourceName ]: The name of the settings resource.
[SubscriptionId ]: The ID of the target subscription.
[Version ]: The version of the Extension being received.
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedLicenseProfile.ps1 b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedLicenseProfile.ps1
new file mode 100644
index 000000000000..b55da11e5848
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedLicenseProfile.ps1
@@ -0,0 +1,348 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+The operation to create a license profile.
+.Description
+The operation to create a license profile.
+.Example
+$productfeature = New-AzConnectedLicenseProfileFeature -Name "Hotpatch" -SubscriptionStatus "Enable"
+
+New-AzConnectedLicenseProfile -MachineName "WIN-IAH3TLSP7A8" -ResourceGroupName "PayGo_cmdlet" -Location "eastus" -ProductProfileProductType "WindowsServer" -ProductProfileSubscriptionStatus "Enabled" -ProductProfileProductFeature $productfeature
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IConnectedMachineIdentity
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ILicenseProfile
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ILicenseProfile
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [BaseProvider ]: The name of the base Resource Provider.
+ [BaseResourceName ]: The name of the base resource.
+ [BaseResourceType ]: The name of the base Resource Type.
+ [ExtensionName ]: The name of the machine extension.
+ [ExtensionType ]: The extensionType of the Extension being received.
+ [GatewayName ]: The name of the Gateway.
+ [GroupName ]: The name of the private link resource.
+ [Id ]: Resource identity path
+ [LicenseName ]: The name of the license.
+ [LicenseProfileName ]: The name of the license profile.
+ [Location ]: The location of the Extension being received.
+ [MachineName ]: The name of the hybrid machine.
+ [MetadataName ]: Name of the HybridIdentityMetadata.
+ [Name ]: The name of the hybrid machine.
+ [OSType ]: Defines the os type.
+ [PerimeterName ]: The name, in the format {perimeterGuid}.{associationName}, of the Network Security Perimeter resource.
+ [PrivateEndpointConnectionName ]: The name of the private endpoint connection.
+ [PrivateLinkScopeId ]: The id (Guid) of the Azure Arc PrivateLinkScope resource.
+ [Publisher ]: The publisher of the Extension being received.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RunCommandName ]: The name of the run command.
+ [ScopeName ]: The name of the Azure Arc PrivateLinkScope resource.
+ [SettingsResourceName ]: The name of the settings resource.
+ [SubscriptionId ]: The ID of the target subscription.
+ [Version ]: The version of the Extension being received.
+
+PARAMETER : Describes a license profile in a hybrid machine.
+ Location : The geo-location where the resource lives
+ [Tags ]: Resource tags.
+ [(Any) ]: This indicates any property can be added to this object.
+ [EsuProfileAssignedLicense ]: The resource id of the license.
+ [ProductProfileProductFeature >]: The list of product features.
+ [Name ]: Product feature name.
+ [SubscriptionStatus ]: Indicates the current status of the product features.
+ [ProductProfileProductType ]: Indicates the product type of the license.
+ [ProductProfileSubscriptionStatus ]: Indicates the subscription status of the product.
+ [SoftwareAssuranceCustomer ]: Specifies if this machine is licensed as part of a Software Assurance agreement.
+
+PRODUCTPROFILEPRODUCTFEATURE : The list of product features.
+ [Name ]: Product feature name.
+ [SubscriptionStatus ]: Indicates the current status of the product features.
+.Link
+https://learn.microsoft.com/powershell/module/az.connectedmachine/new-azconnectedlicenseprofile
+#>
+function New-AzConnectedLicenseProfile {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ILicenseProfile])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Create', Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Path')]
+ [System.String]
+ # The name of the hybrid machine.
+ ${MachineName},
+
+ [Parameter(ParameterSetName='Create', Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [ArgumentCompleter({Get-AzResourceGroup | Select-Object -ExpandProperty ResourceGroupName})]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Create')]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IConnectedMachineIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ILicenseProfile]
+ # Describes a license profile in a hybrid machine.
+ ${Parameter},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)]
+ [ArgumentCompleter({Get-AzLocation | Where-Object Providers -Contains "Microsoft.HybridCompute" | Select-Object -ExpandProperty Location})]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Body')]
+ [System.String]
+ # The resource id of the license.
+ ${EsuProfileAssignedLicense},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IProductFeature[]]
+ # The list of product features.
+ ${ProductProfileProductFeature},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.PSArgumentCompleterAttribute("WindowsServer", "WindowsIoTEnterprise")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Body')]
+ [System.String]
+ # Indicates the product type of the license.
+ ${ProductProfileProductType},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.PSArgumentCompleterAttribute("Unknown", "Enabling", "Enabled", "Disabled", "Disabling", "Failed")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Body')]
+ [System.String]
+ # Indicates the subscription status of the product.
+ ${ProductProfileSubscriptionStatus},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Specifies if this machine is licensed as part of a Software Assurance agreement.
+ ${SoftwareAssuranceCustomer},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Create = 'Az.ConnectedMachine.private\New-AzConnectedLicenseProfile_Create';
+ CreateExpanded = 'Az.ConnectedMachine.private\New-AzConnectedLicenseProfile_CreateExpanded';
+ CreateViaIdentity = 'Az.ConnectedMachine.private\New-AzConnectedLicenseProfile_CreateViaIdentity';
+ CreateViaIdentityExpanded = 'Az.ConnectedMachine.private\New-AzConnectedLicenseProfile_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.ConnectedMachine.private\New-AzConnectedLicenseProfile_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.ConnectedMachine.private\New-AzConnectedLicenseProfile_CreateViaJsonString';
+ }
+ if (('Create', 'CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedLicenseProfileFeature.ps1 b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedLicenseProfileFeature.ps1
new file mode 100644
index 000000000000..26cdf64e4cff
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedLicenseProfileFeature.ps1
@@ -0,0 +1,125 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ProductFeature.
+.Description
+Create an in-memory object for ProductFeature.
+.Example
+$productfeature = New-AzConnectedLicenseProfileFeature -Name "Hotpatch" -SubscriptionStatus "Enable"
+$productfeature | Should -Not -BeNullOrEmpty
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ProductFeature
+.Link
+https://learn.microsoft.com/powershell/module/Az.ConnectedMachine/new-azconnectedlicenseprofilefeature
+#>
+function New-AzConnectedLicenseProfileFeature {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ProductFeature])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Body')]
+ [System.String]
+ # Product feature name.
+ ${Name},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.PSArgumentCompleterAttribute("Unknown", "Enabling", "Enabled", "Disabled", "Disabling", "Failed")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Category('Body')]
+ [System.String]
+ # Indicates the current status of the product features.
+ ${SubscriptionStatus}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.ConnectedMachine.custom\New-AzConnectedLicenseProfileFeature';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedMachineExtension.ps1 b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedMachineExtension.ps1
index 35a384b56de3..90a6ed9ed2a7 100644
--- a/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedMachineExtension.ps1
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedMachineExtension.ps1
@@ -70,40 +70,56 @@ EXTENSIONPARAMETER : Describes a Machine Extension.
[TypeHandlerVersion ]: Specifies the version of the script handler.
INPUTOBJECT : Identity Parameter
+ [BaseProvider ]: The name of the base Resource Provider.
+ [BaseResourceName ]: The name of the base resource.
+ [BaseResourceType ]: The name of the base Resource Type.
[ExtensionName ]: The name of the machine extension.
[ExtensionType ]: The extensionType of the Extension being received.
+ [GatewayName ]: The name of the Gateway.
[GroupName ]: The name of the private link resource.
[Id ]: Resource identity path
[LicenseName ]: The name of the license.
[LicenseProfileName ]: The name of the license profile.
[Location ]: The location of the Extension being received.
[MachineName ]: The name of the hybrid machine.
+ [MetadataName ]: Name of the HybridIdentityMetadata.
[Name ]: The name of the hybrid machine.
+ [OSType ]: Defines the os type.
[PerimeterName ]: The name, in the format {perimeterGuid}.{associationName}, of the Network Security Perimeter resource.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection.
[PrivateLinkScopeId ]: The id (Guid) of the Azure Arc PrivateLinkScope resource.
[Publisher ]: The publisher of the Extension being received.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RunCommandName ]: The name of the run command.
[ScopeName ]: The name of the Azure Arc PrivateLinkScope resource.
+ [SettingsResourceName ]: The name of the settings resource.
[SubscriptionId ]: The ID of the target subscription.
[Version ]: The version of the Extension being received.
MACHINEINPUTOBJECT : Identity Parameter
+ [BaseProvider ]: The name of the base Resource Provider.
+ [BaseResourceName ]: The name of the base resource.
+ [BaseResourceType ]: The name of the base Resource Type.
[ExtensionName ]: The name of the machine extension.
[ExtensionType ]: The extensionType of the Extension being received.
+ [GatewayName ]: The name of the Gateway.
[GroupName ]: The name of the private link resource.
[Id ]: Resource identity path
[LicenseName ]: The name of the license.
[LicenseProfileName ]: The name of the license profile.
[Location ]: The location of the Extension being received.
[MachineName ]: The name of the hybrid machine.
+ [MetadataName ]: Name of the HybridIdentityMetadata.
[Name ]: The name of the hybrid machine.
+ [OSType ]: Defines the os type.
[PerimeterName ]: The name, in the format {perimeterGuid}.{associationName}, of the Network Security Perimeter resource.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection.
[PrivateLinkScopeId ]: The id (Guid) of the Azure Arc PrivateLinkScope resource.
[Publisher ]: The publisher of the Extension being received.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RunCommandName ]: The name of the run command.
[ScopeName ]: The name of the Azure Arc PrivateLinkScope resource.
+ [SettingsResourceName ]: The name of the settings resource.
[SubscriptionId ]: The ID of the target subscription.
[Version ]: The version of the Extension being received.
.Link
diff --git a/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedMachineRunCommand.ps1 b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedMachineRunCommand.ps1
new file mode 100644
index 000000000000..f87fdb96c975
--- /dev/null
+++ b/src/ConnectedMachine/ConnectedMachine.Autorest/exports/New-AzConnectedMachineRunCommand.ps1
@@ -0,0 +1,525 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+The operation to create a run command.
+.Description
+The operation to create a run command.
+.Example
+New-AzConnectedMachineRunCommand -ResourceGroupName "ytongtest" -Location "eastus" -SourceScript "Write-Host Hello World!" -RunCommandName "myRunCommand2" -MachineName "testmachine" -Subscription "********-****-****-****-**********"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IConnectedMachineIdentity
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IMachineRunCommand
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IMachineRunCommand
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [BaseProvider ]: The name of the base Resource Provider.
+ [BaseResourceName ]: The name of the base resource.
+ [BaseResourceType ]: The name of the base Resource Type.
+ [ExtensionName ]: The name of the machine extension.
+ [ExtensionType ]: The extensionType of the Extension being received.
+ [GatewayName