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