Implement Powershell commands Start-AzSpringCloudAppDeployment and Stop-AzSpringCloudAppDeployment
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Related command**
Powershell Start-AzSpringCloudAppDeployment and Stop-AzSpringCloudAppDeployment
**Is your feature request related to a problem? Please describe.**
The current AZ CLI only allows you to delete a spring app deployment, rather than stopping it, but when one uses Infrastructure as Code, it is likely to conflict with the terraform state, resulting in clashes between app deployment and infrastructure deployment.
**Describe the solution you'd like**
Migarte the two PS commands
**Describe alternatives you've considered**
Although it is possible to mix and match AZ cli and PS, one receives warnings when doing so:
--------------------------------------------------------
Code:
- name: Start new deployment slot
uses: azure/powershell@v1
with:
inlineScript: |
Start-AzSpringCloudAppDeployment -AppName ${{ github.event.repository.name }}-${{ inputs.ENVIRONMENT }} -Name ${{ env.new_deployment_name }} -ResourceGroupName 'rg-spring-cloud' -ServiceName "ab-spring-apps-${{ inputs.SUBSCRIPTION_ENVIRONMENT }}"
azPSVersion: "latest"
---------------------------------------------------------
Execution:
Running Az PowerShell Script
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command /home/runner/work/_temp/5e0cea5d-5a0a-4b45-800a-409f5d312cb0.ps1
WARNING: Start-AzSpringCloudAppDeployment_Start is not found. The most similar Azure PowerShell commands are:
Start-AzSpringCloudAppDeployment
Start-AzSpringCloudAppDeploymentJfr
WARNING: The intelligent recommendation feature is in preview. Help us improve it by sharing your experience: https://go.microsoft.com/fwlink/?linkid=2202[43](https://github.com/almbrand/spring-archetype-testenv1/actions/runs/4303445141/jobs/7503206415#step:11:44)6
Start-AzSpringCloudAppDeployment_Start: /home/runner/work/_temp/5e0cea5d-5a0a-4b[45](https://github.com/almbrand/spring-archetype-testenv1/actions/runs/4303445141/jobs/7503206415#step:11:46)-800a-409f5d312cb0.ps1:2
Line |
2 | Start-AzSpringCloudAppDeployment -AppName spring-archetype-testenv1-p …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 112404: Exit code 1: application error, please refer to
| https://aka.ms/exitcode
Script execution Complete
--------------------------------------------------------------
**Additional context**

Contributor guide
Assessment
This issue has not been assessed yet.