Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-AzConnectedMachineRunCommand and other run commands missing from Az.ConnectedMachine 0.10.0 #26539

Open
dxk3355 opened this issue Oct 30, 2024 · 7 comments
Labels
Arc enabled servers ConnectedMachine bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Service Attention This issue is responsible by Azure service team.

Comments

@dxk3355
Copy link

dxk3355 commented Oct 30, 2024

Description

In versions 0.8.0 and 0.9.0 New-AzConnectedMachineRunCommand is listed on Powershell Gallery and is in the .psd files for the Az.ConnectedMachine module. It is also documented on https://learn.microsoft.com/en-us/powershell/module/az.connectedmachine/new-azconnectedmachineruncommand?view=azps-12.4.0. However in 0.10.0 this command and several others are no longer in the psd file, if they were moved out then the documentation is out of date.

From 0.8.0
FunctionsToExport = 'Connect-AzConnectedMachine', 'Get-AzConnectedExtensionMetadata',
'Get-AzConnectedLicense', 'Get-AzConnectedMachine',
'Get-AzConnectedMachineExtension',
'Get-AzConnectedMachineRunCommand',
'Get-AzConnectedNetworkSecurityPerimeterConfiguration',
'Get-AzConnectedPrivateLinkScope',
'Install-AzConnectedMachinePatch',
'Invoke-AzConnectedAssessMachinePatch', 'New-AzConnectedLicense',
'New-AzConnectedLicenseDetail', 'New-AzConnectedMachineExtension',
'New-AzConnectedMachineRunCommand',
'New-AzConnectedPrivateLinkScope', 'Remove-AzConnectedLicense',
'Remove-AzConnectedMachine', 'Remove-AzConnectedMachineExtension',
'Remove-AzConnectedMachineRunCommand',
'Remove-AzConnectedPrivateLinkScope', 'Set-AzConnectedLicense',
'Set-AzConnectedMachineExtension',
'Set-AzConnectedPrivateLinkScope', 'Update-AzConnectedExtension',
'Update-AzConnectedMachine', 'Update-AzConnectedMachineExtension',
'Update-AzConnectedMachineRunCommand',
'Update-AzConnectedPrivateLinkScopeTag'

From 0.10.0
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'

Issue script & Debug output

New-AzConnectedMachineRunCommand:
Line |
8 | $result = New-AzConnectedMachineRunCommand -ResourceGroupName …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The term 'New-AzConnectedMachineRunCommand' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Environment data

This is running in Azure Automation with 7.2 runtime

Module versions

This is running in Azure Automation with the following modules added.

Az
Default

Azure CLI
Default

Az.Accounts
3.0.4

Az.Compute
8.4.0

Az.ConnectedMachine
0.10.0

Az.GuestConfiguration
0.11.1

Az.KeyVault
6.2.0

Az.Storage
7.4.0

Error output

No response

@dxk3355 dxk3355 added bug This issue requires a change to an existing behavior in the product in order to be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Oct 30, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported needs-triage This is a new issue that needs to be triaged to the appropriate team. and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Oct 30, 2024
@isra-fel
Copy link
Member

I'll loop in ConnecteMachine team to help

@isra-fel isra-fel added Service Attention This issue is responsible by Azure service team. Arc enabled servers ConnectedMachine and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Oct 31, 2024
@IsaacRoitman
Copy link

I'll loop in ConnecteMachine team to help

Having the exact same issue mentioned, the cmdlet does not exist in Az.ConnectedMachine 0.10 module as it should. My issue is across all attempted sources including:

  • Local machine, running PowerShell v7.4 in Windows
  • Azure Cloud Shell

@vidai-msft
Copy link
Contributor

@rpsqrd @edyoung @vedkale could you help on the question that what is the replacement of "New-AzConnectedMachineRunCommand` after it was removed in v0.10.0? Thanks.

@dxk3355
Copy link
Author

dxk3355 commented Nov 11, 2024

Looks like they released 1.0.0 but still left out the missing commands! Image

@dxk3355
Copy link
Author

dxk3355 commented Nov 12, 2024

I'm not too great with Github searching but I think @yaotongms removed it with this commit https://github.com/Azure/azure-powershell/pull/26215/commits

And then
@Nickcandy it looks like merged that 3354ea5

@yaotongms
Copy link
Member

Version 1.0.0 of Az.ConnectedMachine is generated from our stable version API, which doesn't contain run commands operations.

We have a new release towards a preview version API coming up on the 19th. That module will contain run commands and other preview operations. Sorry for the confusion!

@dxk3355
Copy link
Author

dxk3355 commented Nov 12, 2024

What happened with 0.10.0 then? Was that just a precursor to 1.0.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arc enabled servers ConnectedMachine bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

5 participants