Azure / azure-cli

Azure Command-Line Interface
MIT License
3.98k stars 2.96k forks source link

Support Az.Automation #18962

Open benjamin-rousseau-shift opened 3 years ago

benjamin-rousseau-shift commented 3 years ago

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like Having the Az Powershell command in 'Az.Automation' into Az Cli

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jaspkaur28.

Issue Details
**Is your feature request related to a problem? Please describe.** No **Describe the solution you'd like** Having the Az Powershell command in 'Az.Automation' into Az Cli
Author: heavenlyren
Assignees: -
Labels: `Automation`, `Service Attention`
Milestone: -
yonzhan commented 3 years ago

route to service team

jsntcy commented 3 years ago

@heavenlyren We already support that https://docs.microsoft.com/en-us/cli/azure/automation?view=azure-cli-lates, is it what you want?

benjamin-rousseau-shift commented 3 years ago

@jsntcy Hi, no this does not allow as much stuff as the Powershell counter part Eg. :

being able to get the azure query of a deployment schedule in powershell : $schedule = Get-AzAutomationSoftwareUpdateConfiguration -ResourceGroupName DefaultResourceGroup- WEU -AutomationAccountName Automate-xxxxxxxxx-xxxxxxxx-xxxxxxxx-WEU -Name ScheduleName

$schedule.UpdateConfiguration.Targets.AzureQueries

and same for setting up a new schedule.

In your link I can only see reference about :

It's missing completely the 'update management' part

Basically it would be nice to have a counterpart of all these commands : https://docs.microsoft.com/en-us/powershell/module/az.automation/?view=azps-6.2.1

jaspkaur28 commented 3 years ago

@heavenlyren : If I've understood your question correctly , are you asking for Az powershell module to be supported by Automation ? If yes, then this is work in progress with an ETA of 08/30 wherein we support Az mdoules\cmdlets by default in the Automation accounts.

benjamin-rousseau-shift commented 3 years ago

@jaspkaur28 : Sorry if I misunderstood your message , but basically what I ideally would like , it to be able to query the same thing I described with azure powershell , in Azure CLI :

Being able to do this :

$schedule = Get-AzAutomationSoftwareUpdateConfiguration -ResourceGroupName DefaultResourceGroup-
WEU -AutomationAccountName Automate-xxxxxxxxx-xxxxxxxx-xxxxxxxx-WEU -Name ScheduleName

$schedule.UpdateConfiguration.Targets.AzureQueries

but in Azure CLI

And same with the possibility to create a new schedule or update a schedule (New- / Set- in powershell)

jaspkaur28 commented 3 years ago

@heavenlyren : Ah , got it. So your saying the Az CLI cmdlets for automation doesnt support update management and schedule cmdlets like how Azure powershell does and you'd want to know if there is a solution for that.

Unfortunately , this is the list of supported Az cmdlets as of today: https://docs.microsoft.com/en-us/cli/azure/automation?view=azure-cli-latest&viewFallbackFrom=azure-cli-lates.

I will take it as a feedback for the CLI team to release Az CLI support for UM , schedules & other automation assets too & share an ETA with you.

benjamin-rousseau-shift commented 3 years ago

That would be great , thanks @jaspkaur28

benjamin-rousseau-shift commented 2 years ago

Is there any ETA for this ?

jaspkaur28 commented 2 years ago

@heavenlyren We dont have an ETA yet , since this feature request is still lower in priority for us. It would be great if you can help add a feedback here https://feedback.azure.com/d365community/forum/8ddd03a2-0225-ec11-b6e6-000d3a4f0858 , we would pick this up basis votes we receive for this feature ask.

n-bajaj commented 1 month ago

Azure Automation Update management will be retiring on 31st August 2024, hence we are not taking any new feature requests for it.