%3CLINGO-SUB%20id%3D%22lingo-sub-1122574%22%20slang%3D%22en-US%22%3EWhat%E2%80%99s%20New%20in%20Azure%20Spring%20Cloud%20-%20January%20Update%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1122574%22%20slang%3D%22en-US%22%3E%3CP%3EMicrosoft%20and%20Pivotal%20co-announced%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fservices%2Fspring-cloud%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Spring%20Cloud%3C%2FA%3E%20private%20preview%20on%20SpringOne%20Platform%20keynote%20and%20then%20public%20preview%20on%20Microsoft%20Ignite%20in%20last%20quarter.%20It%20is%20a%20fully%20managed%20service%20jointly%20built%2C%20operated%2C%20and%20supported%20by%20Pivotal%20and%20Microsoft%2C%20to%20simplify%20spring%20boot%20based%20microservices%20development%20and%20management.%20We%20would%20like%20to%20thank%20all%20our%20preview%20customers%20and%20the%20feedback%20you%E2%80%99ve%20given%20so%20far.%20As%20we%20have%20been%20committed%20to%20making%20Microsoft%20Azure%20an%20excellent%20cloud%20for%20Java%20workloads%2C%20we%20continue%20to%20deliver%20more%20per%20customers%E2%80%99%20requests%20and%20feedback.%20In%20this%20blog%2C%20I%E2%80%99ll%20share%20the%20newest%20features%20on%20diagnostics%20and%20guidance%20on%20CI%2FCD%20from%20the%20January%20release%20of%20Azure%20Spring%20Cloud.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1084502001%22%20id%3D%22toc-hId-1084502001%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--722952462%22%20id%3D%22toc-hId--722952462%22%3ELog%20Streaming%3C%2FH3%3E%0A%3CP%3EIn%20Azure%20Spring%20Cloud%2C%20Spring%20developers%20can%20enable%20Log%20Analytics%20to%20view%20or%20query%20logs%20with%20a%20few%20minutes%20latency%20to%20ingest%20log%20data.%20Log%20streaming%20feature%20allows%20developers%20to%20get%20%3CSTRONG%3Ereal-time%3C%2FSTRONG%3E%20application%20logs%20in%20Azure%20CLI%20and%20know%20what%E2%80%99s%20happening%20with%20specified%20application%20instance%20running%20in%20Azure%20Spring%20Cloud.%20Below%20is%20an%20example%20and%20you%20could%20get%20more%20details%20here.%3C%2FP%3E%0A%3CPRE%3E%3CBR%20%2F%3E%3CSTRONG%3E%24%20az%20spring-cloud%20app%20log%20tail%20-g%20AzureSpringCloudDemo%20-s%20demo%20-n%20gateway%3C%2FSTRONG%3E%3C%2FPRE%3E%0A%3CP%3EIf%20you%20have%20multiple%20app%20instances%2C%20you%20will%20get%20the%20names%20of%20those%20app%20instances%20after%20running%20above%20command%20line.%20Then%20you%20could%20use%20%E2%80%98--instance%2F-i%E2%80%9D%20to%20specify%20which%20app%20instance%20you%20want%20to%20view.%3C%2FP%3E%0A%3CPRE%3E%3CSTRONG%3E%24%20az%20spring-cloud%20app%20log%20tail%20-g%20AzureSpringCloudDemo%20-s%20demo%20-n%20gateway%3C%2FSTRONG%3E%3CBR%20%2F%3ECommand%20group%20'spring-cloud'%20is%20in%20preview.%20It%20may%20be%20changed%2Fremoved%20in%20a%20future%20release.%3CBR%20%2F%3EMultiple%20app%20instances%20found%3A%3CBR%20%2F%3Egateway-default-7-7cc48cffbc-4kz56%3CBR%20%2F%3Egateway-default-7-7cc48cffbc-jwvb2%3CBR%20%2F%3EPlease%20use%20'-i%2F--instance'%20parameter%20to%20specify%20the%20instance%20name%3CBR%20%2F%3E%3CSTRONG%3E%24%20az%20spring-cloud%20app%20log%20tail%20-g%20AzureSpringCloudDemo%20-s%20demo%20-n%20gateway%20-i%20gateway-default-7-7cc48cffbc-jwvb2%3C%2FSTRONG%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166533iE882961EB2C9FD52%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22logstreamingv2.gif%22%20title%3D%22logstreamingv2.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1764560371%22%20id%3D%22toc-hId-1764560371%22%3EAlert%3C%2FH3%3E%0A%3CP%3EMetrics%20for%20apps%20can%20be%20hooked%20up%20to%20alerts.%20Metric%20alerts%20evaluate%20at%20regular%20intervals%20to%20check%20if%20conditions%20on%20one%20or%20more%20metric%20time-series%20are%20true%20and%20notify%20you%20when%20the%20evaluations%20are%20met.%20For%20Azure%20Spring%20Cloud%2C%20you%20can%20define%20a%20metric%20alert%20rule%20by%20specifying%20a%20target%20app%20or%20app%20instance%2C%20metric%20name%2C%20metric%20condition%20and%20an%20action%20group%20to%20be%20triggered%20when%20the%20alert%20rule%20fires.%20Below%20is%20an%20example%20and%20you%20could%20get%20more%20details%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fspring-cloud%2Fspring-cloud-concept-metrics%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EMetric%3A%20Tomcat%20Request%20Average%20Time%3C%2FLI%3E%0A%3CLI%3ECondition%3A%20Greater%20than%201000%20milliseconds%3C%2FLI%3E%0A%3CLI%3EAction%3A%20Email%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH3%20id%3D%22toc-hId--42894092%22%20id%3D%22toc-hId--42894092%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167885iB7132ED65C9684AB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22alert0129.PNG%22%20title%3D%22alert0129.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--1850348555%22%20id%3D%22toc-hId--1850348555%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId-637164278%22%20id%3D%22toc-hId-637164278%22%3ECI%2FCD%3C%2FH3%3E%0A%3CP%3EAzure%20Spring%20Cloud%20supports%20both%20Jar%20artifacts%20and%20source%20code.%20If%20you%20want%20to%20automate%20the%20build%20and%2For%20deployment%2C%20you%20could%20follow%20below%20guidance%20to%20set%20up%20a%20pipeline%20with%20the%20power%20of%20Azure%20CLI%20to%20deploy%20your%20changes%20automatically%20to%20Azure%20Spring%20Cloud.%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%223%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fspring-cloud%2Fspring-cloud-howto-github-actions%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EGithub%20Actions%3C%2FA%3E%20%2F%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fspring-cloud%2Fspring-cloud-howto-cicd%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20DevOps%3C%2FA%3E%20%2F%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fjenkins%2Ftutorial-jenkins-deploy-cli-spring-cloud-service%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EJenkins%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20style%3D%22width%3A%20923px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166534iFFF013421C788BF1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22CICD.png%22%20title%3D%22CICD.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20hope%20you%20enjoyed%20these%20announcements.%20Your%20feedback%20has%20been%20instrumental%20in%20shaping%20these%20features%2C%20keep%20the%20feedback%20coming.%20If%20you%20have%20any%20questions%20or%20suggestions%2C%20reach%20out%20to%20our%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FAzure-Monitor%2Fbd-p%2FAzureMonitor%22%20target%3D%22_self%22%3ETech%20Community%20forum.%20%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EIf%20you%20encounter%20any%20issues%20with%20Azure%20Spring%20Cloud%2C%20you%20could%20create%20an%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fazure-supportability%2Fhow-to-create-azure-support-request%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Support%20Request%3C%2FA%3E.%20Our%20customer%20support%20team%20are%20standby%20to%20respond%20your%20issues%20ASAP.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1122574%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F167906i2D5D20620D0CF4B7%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Azure%20Spring%20Cloud%20slug%202.png%22%20title%3D%22Azure%20Spring%20Cloud%20slug%202.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EExplore%20the%20newest%20features%20on%20diagnostics%20and%20guidance%20for%20CI%2FCD%20of%20Azure%20Spring%20Cloud%2C%20a%20fully%20managed%20service%26nbsp%3Bjointly%20built%20and%20operated%20by%20Microsoft%20and%20Pivotal.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1122574%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Spring%20Cloud%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

Microsoft and Pivotal co-announced Azure Spring Cloud private preview on SpringOne Platform keynote and then public preview on Microsoft Ignite in last quarter. It is a fully managed service jointly built, operated, and supported by Pivotal and Microsoft, to simplify spring boot based microservices development and management. We would like to thank all our preview customers and the feedback you’ve given so far. As we have been committed to making Microsoft Azure an excellent cloud for Java workloads, we continue to deliver more per customers’ requests and feedback. In this blog, I’ll share the newest features on diagnostics and guidance on CI/CD from the January release of Azure Spring Cloud.

 

Log Streaming

In Azure Spring Cloud, Spring developers can enable Log Analytics to view or query logs with a few minutes latency to ingest log data. Log streaming feature allows developers to get real-time application logs in Azure CLI and know what’s happening with specified application instance running in Azure Spring Cloud. Below is an example and you could get more details here.


$ az spring-cloud app log tail -g AzureSpringCloudDemo -s demo -n gateway

If you have multiple app instances, you will get the names of those app instances after running above command line. Then you could use ‘--instance/-i” to specify which app instance you want to view.

$ az spring-cloud app log tail -g AzureSpringCloudDemo -s demo -n gateway
Command group 'spring-cloud' is in preview. It may be changed/removed in a future release.
Multiple app instances found:
gateway-default-7-7cc48cffbc-4kz56
gateway-default-7-7cc48cffbc-jwvb2
Please use '-i/--instance' parameter to specify the instance name
$ az spring-cloud app log tail -g AzureSpringCloudDemo -s demo -n gateway -i gateway-default-7-7cc48cffbc-jwvb2

logstreamingv2.gif

Alert

Metrics for apps can be hooked up to alerts. Metric alerts evaluate at regular intervals to check if conditions on one or more metric time-series are true and notify you when the evaluations are met. For Azure Spring Cloud, you can define a metric alert rule by specifying a target app or app instance, metric name, metric condition and an action group to be triggered when the alert rule fires. Below is an example and you could get more details here.

  • Metric: Tomcat Request Average Time
  • Condition: Greater than 1000 milliseconds
  • Action: Email

alert0129.PNG

 

CI/CD

Azure Spring Cloud supports both Jar artifacts and source code. If you want to automate the build and/or deployment, you could follow below guidance to set up a pipeline with the power of Azure CLI to deploy your changes automatically to Azure Spring Cloud.

Github Actions / Azure DevOps / Jenkins

 

CICD.png

 

We hope you enjoyed these announcements. Your feedback has been instrumental in shaping these features, keep the feedback coming. If you have any questions or suggestions, reach out to our Tech Community forum.

If you encounter any issues with Azure Spring Cloud, you could create an Azure Support Request. Our customer support team are standby to respond your issues ASAP.