Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.23k stars 3.84k forks source link

[Feature]: Add start and stop commands for Azure Spring Apps Instance #22741

Open takashiuesaka opened 1 year ago

takashiuesaka commented 1 year ago

Description of the new feature

Azure CLI provides start and stop commands for Azure Spring Apps Instance. However, Azure Powershell does not have both commands.

Proposed implementation details (optional)

No response

isra-fel commented 1 year ago

Thanks for reporting. It's in progress. @lijinpei2008 can you update the issue once we have an ETA?

isra-fel commented 1 year ago

cc @dingmeng-xue

lijinpei2008 commented 1 year ago

image In the new version, we generated cmdlets for start- and stop-, and now I'm validating their functionality.

dingmeng-xue commented 1 year ago

Sorry that I haven't verified upcoming Spring module. I will do it in this month.

@takashiuesaka , for the time being, please use below script as workaround because the API call is pretty simple.

#Start one app. 
Invoke-AzRestMethod -Method POST -Path /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.AppPlatform/Spring/{service}/apps/{app}/deployments/default/start?api-version=2023-07-01-preview

Please note you should use default deployment if you don't configure multiple deployment under one app.