-
Benachrichtigungen
You must be signed in to change notification settings - Fork 6
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
Deployments Design results in complex Pipelines/workflows which duration is too long #26
Kommentare
Hello, I agree with this issue title Here is my actual workflow to deploy new apps and deployments to azure spring apps: I use Jenkins to automate applications deployments, therefore, I only use azure cli to interact with ASA. My actual workflow: I first check if the app exists, and how it is configured with If the app does not exists:
If the app already exists:
Each step in the described workflow corresponds to an azure cli command. Regards |
@yangtony90 is working on the enhancements on the toolings. |
Talked with Steve, we can update the deploy script logic like this pseudo code. Every function can be done by a single line of CLI command.
|
Is your feature request related to a problem? Please describe.
If you create the App from the Portal, you will get a default Production deployment.
In real life most of the customers uses IaC such as TF or Azure Bicep.
Describe the solution you'd like
A clear and concise description of what you want to happen.
When a customer create the App with IaC and then deploys to Staging using ASA GitHub Action (providing all correct parameters including deployment name) it fails with :
Error: Action failed with error: deploymentName cannot be null or undefined.
==> this is because the Staging deployment needs a Production deployment as a pre-req to get the CPU&RAM sizing.
==> from scope wise, GHA doesn't offer feature parity thing with other customer interfaces like portal, CLI and the current scope is mainly on deployment part.
But if you use the GHA to deploy to Production, the first time it will fails saying that a Staging Deployment is required first, resulting in circular dependencies issues.
IMHO, the GHA should support RAM & CPU, this is the only way to get GHA to work. Also the sizing could be eventually different in Prod and Staging.
Describe alternatives you've considered
Then the only solution is to design a much more complex workflow using CLI only.
My GH Workflow sample takes 5 minutes and more than 200 lines of code just to deploy 1 App whereas it would take 1 line and 30s to deploy it to AKS.
The reason why it is complex is that you need to run many CLI commands to check if the deployment does already exist or not, to create it if it does not exist, then verify all other deployments, check if it is already a Staging or a Production one.
WORKAROUND :
Other consideration to test , use CLI to create a Staging deployment with a different RAM&CPU sizing compared to Prod :
Additional context
Doc links :
The text was updated successfully, but these errors were encountered: