SlideShare a Scribd company logo
1 of 16
Yosi Pramajaya

JAVA – AZURE INTEGRATION
TUTORIAL
Azure’s Cloud Services

 Build infinitely scalable apps and services
 Support rich multi-tier architectures
 Automated application management

      (based on Meet WA Presentation by Scott Guthrie)
Windows Azure Subscription

 To deploy your application, you must have
  Azure’s subscription.
 Windows Azure offered 90-days trial for free.
 Azure’s Free Trial subscription granted you
  permission to every Azure’s services with
  limited quotas.
Registering for Free Trial

 You’ll need:
   Email Address (Yahoo, Gmail, etc)
   Phone Number
   International Credit Card (VISA, Master Card)
 Visit https://www.windowsazure.com/en-
  us/pricing/free-trial/, then register your self
 You must NOT use your services exceeded
  your quota limit, or your account will be
  disabled
Preparing your Environment

 For JAVA Developer you must have these:
   Eclipse (or any Eclipse-based IDE)
   JDK 6
   Server (Apache Tomcat 7 is recommended)
   Windows Azure SDK
   Windows Azure Plugin for Eclipse
   Windows Azure Subscription
 Go to http://manage.windowsazure.com
   Create your own Cloud Services
Preparing your Java Project

 Create a new Dynamic Web Project / Maven
  Web project
 Make sure that your project doesn’t have any
  ERRORS
 Export your project to .WAR file
Preparing your Azure Project

 Create a new Windows Azure Deployment
  project
 Set your project configuration:
   Copy your exported .WAR file to
    “WorkerRole1/approot/”
   package.xml, find: <component
    deploydir="%SERVER_APPS_LOCATION%"
    deploymethod="copy" importas=“{your-war-
    name}.war" type="server.app"/>, edit with your
    .WAR file name
Preparing your Azure Project

 Continued:
   Find startupApacheTomcat7.txt in “samples/”
    folder, copy all to clipboard
   Find startup.cmd in “WorkerRole1/approot”. Open
    with text editor, block all text, paste it.
 Before you begin to the next step, you’ve to
  know Azure’s project structure
Azure Project’s Structure

 Cloud Services will use “WorkerRole”, it will
  have:
   “util” folder. DO NOT EDIT
   “run.cmd” DO NOT EDIT
   “startup.cmd” (You can edit this like the
    instruction before this page)
   “YourApplication.war”, your Java-web project
   jdk.zip and tomcat7.zip (if you use Tomcat 7)
Azure Project’s Structure

 You can make startup.cmd download the zip
  by itself. It will greatly reduce the size of your
  project
 In startup.cmd:
       Find script below:
       ::cscript /NoLogo "utildownload.vbs"
        "http://archive.apache.org/dist/tomcat/tomcat-
        7/v7.0.26/bin/apache-tomcat-7.0.26.zip" "tomcat7.zip“
       Remove the “::”
Azure Project’s Structure

 Continued:
      That script will download tomcat7.zip for you
       automatically
      For jdk.zip, you should add this code AFTER
       “download-tomcat” script
      cscript /NoLogo "utildownload.vbs" "http://java-azure-
       for-private.googlecode.com/files/jdk.zip" "jdk.zip“
      Find this script:
      SET WAR_NAME={YourWarName).war
Build and Upload

 Right-Click in your Azure project
 Choose Properties, find “Windows Azure”,
  change “Build For” to “Deployment to cloud”
 Click “Project” in Menu-Bar, click “Build
  Project” (to activate Azure Full Build)
 Refresh, and you’ll find “deploy” folder in
  your Azure Project
 Go to WindowsAzure Management Portal
  (http://manage.windowsazure.com)
Build and Upload

 Click “Cloud Services” tab, I’m sure you have
  created one
 Click “CERTIFICATES”, upload your certificate
  (.pfx) that located in “AzureProject/cert”.
  Default password is: “Password1”
 It’s up to you, to choose “Staging” or
  “Production” Environment
Build and Upload

 Whether you choose Staging / Production
  Environment, the way you upload your
  project is the same
 In the bottom of the screen, click “UPLOAD”,
  find “.cspkg” and “.cscfg” in your “deploy”
  folder
 Waiting until you see the Status become:
  “RUNNING”
Troubleshooting

 Common problem is when you deploy your
 project
   Status is always “RECYCLING”:
     Maybe your web-project contains error. FIX IT
     Maybe you didn’t use the right Project Structure. FIX
      IT (look from page 9-11)
   Status is always “BUSY”:
     Just wait for a while. If status become
      “RECYCLING”, see above.
     If after you wait for so long, just delete the
      production. Upload it again
start now
http://windowsazure.com

More Related Content

What's hot

WordPress Security - 12 WordPress Security Fundamentals
WordPress Security - 12 WordPress Security FundamentalsWordPress Security - 12 WordPress Security Fundamentals
WordPress Security - 12 WordPress Security Fundamentalsfindingsimple
 
Silverlight vs HTML5 - Lessons learned from the real world...
Silverlight vs HTML5 - Lessons learned from the real world...Silverlight vs HTML5 - Lessons learned from the real world...
Silverlight vs HTML5 - Lessons learned from the real world...Peter Gfader
 
learn what React JS is & why we should use React JS .
learn what React JS is & why we should use React JS .learn what React JS is & why we should use React JS .
learn what React JS is & why we should use React JS .paradisetechsoftsolutions
 
Jenkins CI/CD setup for iOS in Mac OSX
Jenkins CI/CD setup for iOS in Mac OSXJenkins CI/CD setup for iOS in Mac OSX
Jenkins CI/CD setup for iOS in Mac OSXGagan Vishal Mishra
 
First steps with Gutenberg for developers - WC Prague 2020
First steps with Gutenberg for developers - WC Prague 2020First steps with Gutenberg for developers - WC Prague 2020
First steps with Gutenberg for developers - WC Prague 2020Magdalena Paciorek
 
SELENIUM SCRIPTS FOR DASHBOARD UI
SELENIUM SCRIPTS FOR DASHBOARD UISELENIUM SCRIPTS FOR DASHBOARD UI
SELENIUM SCRIPTS FOR DASHBOARD UIManasa Dilipkumar
 
Rapid Development with Azure Spring Cloud
Rapid Development with Azure Spring CloudRapid Development with Azure Spring Cloud
Rapid Development with Azure Spring CloudVMware Tanzu
 
My v mware solutions home lab
My v mware solutions home labMy v mware solutions home lab
My v mware solutions home labBrian Drew
 
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSCWinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSCWinOps Conf
 
ScrumDesk API Installation
ScrumDesk API InstallationScrumDesk API Installation
ScrumDesk API InstallationScrumDesk
 
AtlasCamp 2010: The Atlassian Plugin SDK For Fun & Profit - Ben Speakmon
AtlasCamp 2010: The Atlassian Plugin SDK For Fun & Profit - Ben SpeakmonAtlasCamp 2010: The Atlassian Plugin SDK For Fun & Profit - Ben Speakmon
AtlasCamp 2010: The Atlassian Plugin SDK For Fun & Profit - Ben SpeakmonAtlassian
 
Managing VMware with PowerShell - VMworld 2008
Managing VMware with PowerShell - VMworld 2008Managing VMware with PowerShell - VMworld 2008
Managing VMware with PowerShell - VMworld 2008Carter Shanklin
 
Atlaskickin' the Plugin SDK, AtlasCamp US 2012
Atlaskickin' the Plugin SDK, AtlasCamp US 2012Atlaskickin' the Plugin SDK, AtlasCamp US 2012
Atlaskickin' the Plugin SDK, AtlasCamp US 2012Atlassian
 
Microservices for the Masses with Spring Boot, JHipster, and JWT - J-Spring 2017
Microservices for the Masses with Spring Boot, JHipster, and JWT - J-Spring 2017Microservices for the Masses with Spring Boot, JHipster, and JWT - J-Spring 2017
Microservices for the Masses with Spring Boot, JHipster, and JWT - J-Spring 2017Matt Raible
 
DockerCon 17 EU: Modernizing .NET Apps with Docker
DockerCon 17 EU: Modernizing .NET Apps with DockerDockerCon 17 EU: Modernizing .NET Apps with Docker
DockerCon 17 EU: Modernizing .NET Apps with DockerElton Stoneman
 
Getting Started with Spring Boot
Getting Started with Spring BootGetting Started with Spring Boot
Getting Started with Spring BootDavid Kiss
 
"Building a Production-Grade Serverless Deployment" - Eoin Shanaghy, CTO, fo...
"Building a Production-Grade Serverless Deployment"  - Eoin Shanaghy, CTO, fo..."Building a Production-Grade Serverless Deployment"  - Eoin Shanaghy, CTO, fo...
"Building a Production-Grade Serverless Deployment" - Eoin Shanaghy, CTO, fo...LCloud
 
"Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,...
"Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,..."Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,...
"Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,...LCloud
 

What's hot (19)

WordPress Security - 12 WordPress Security Fundamentals
WordPress Security - 12 WordPress Security FundamentalsWordPress Security - 12 WordPress Security Fundamentals
WordPress Security - 12 WordPress Security Fundamentals
 
Silverlight vs HTML5 - Lessons learned from the real world...
Silverlight vs HTML5 - Lessons learned from the real world...Silverlight vs HTML5 - Lessons learned from the real world...
Silverlight vs HTML5 - Lessons learned from the real world...
 
learn what React JS is & why we should use React JS .
learn what React JS is & why we should use React JS .learn what React JS is & why we should use React JS .
learn what React JS is & why we should use React JS .
 
Jenkins CI/CD setup for iOS in Mac OSX
Jenkins CI/CD setup for iOS in Mac OSXJenkins CI/CD setup for iOS in Mac OSX
Jenkins CI/CD setup for iOS in Mac OSX
 
First steps with Gutenberg for developers - WC Prague 2020
First steps with Gutenberg for developers - WC Prague 2020First steps with Gutenberg for developers - WC Prague 2020
First steps with Gutenberg for developers - WC Prague 2020
 
SELENIUM SCRIPTS FOR DASHBOARD UI
SELENIUM SCRIPTS FOR DASHBOARD UISELENIUM SCRIPTS FOR DASHBOARD UI
SELENIUM SCRIPTS FOR DASHBOARD UI
 
Rapid Development with Azure Spring Cloud
Rapid Development with Azure Spring CloudRapid Development with Azure Spring Cloud
Rapid Development with Azure Spring Cloud
 
My v mware solutions home lab
My v mware solutions home labMy v mware solutions home lab
My v mware solutions home lab
 
Introducing to Azure Functions
Introducing to Azure FunctionsIntroducing to Azure Functions
Introducing to Azure Functions
 
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSCWinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
 
ScrumDesk API Installation
ScrumDesk API InstallationScrumDesk API Installation
ScrumDesk API Installation
 
AtlasCamp 2010: The Atlassian Plugin SDK For Fun & Profit - Ben Speakmon
AtlasCamp 2010: The Atlassian Plugin SDK For Fun & Profit - Ben SpeakmonAtlasCamp 2010: The Atlassian Plugin SDK For Fun & Profit - Ben Speakmon
AtlasCamp 2010: The Atlassian Plugin SDK For Fun & Profit - Ben Speakmon
 
Managing VMware with PowerShell - VMworld 2008
Managing VMware with PowerShell - VMworld 2008Managing VMware with PowerShell - VMworld 2008
Managing VMware with PowerShell - VMworld 2008
 
Atlaskickin' the Plugin SDK, AtlasCamp US 2012
Atlaskickin' the Plugin SDK, AtlasCamp US 2012Atlaskickin' the Plugin SDK, AtlasCamp US 2012
Atlaskickin' the Plugin SDK, AtlasCamp US 2012
 
Microservices for the Masses with Spring Boot, JHipster, and JWT - J-Spring 2017
Microservices for the Masses with Spring Boot, JHipster, and JWT - J-Spring 2017Microservices for the Masses with Spring Boot, JHipster, and JWT - J-Spring 2017
Microservices for the Masses with Spring Boot, JHipster, and JWT - J-Spring 2017
 
DockerCon 17 EU: Modernizing .NET Apps with Docker
DockerCon 17 EU: Modernizing .NET Apps with DockerDockerCon 17 EU: Modernizing .NET Apps with Docker
DockerCon 17 EU: Modernizing .NET Apps with Docker
 
Getting Started with Spring Boot
Getting Started with Spring BootGetting Started with Spring Boot
Getting Started with Spring Boot
 
"Building a Production-Grade Serverless Deployment" - Eoin Shanaghy, CTO, fo...
"Building a Production-Grade Serverless Deployment"  - Eoin Shanaghy, CTO, fo..."Building a Production-Grade Serverless Deployment"  - Eoin Shanaghy, CTO, fo...
"Building a Production-Grade Serverless Deployment" - Eoin Shanaghy, CTO, fo...
 
"Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,...
"Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,..."Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,...
"Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,...
 

Similar to Java – azure integration

HDinsight Workshop - Prerequisite Activity
HDinsight Workshop - Prerequisite ActivityHDinsight Workshop - Prerequisite Activity
HDinsight Workshop - Prerequisite ActivityIdan Tohami
 
Java and windows azure cloud service
Java and windows azure cloud serviceJava and windows azure cloud service
Java and windows azure cloud serviceJeffray Huang
 
Get Started With Microsoft Azure Cloud Service
Get Started With Microsoft Azure Cloud ServiceGet Started With Microsoft Azure Cloud Service
Get Started With Microsoft Azure Cloud ServiceJayant Chauhan
 
Windows azure development setup
Windows azure development setupWindows azure development setup
Windows azure development setupparallelminder
 
Windows Powershell and Microsoft Azure : “Global Windows Azure BootCamp 2014 ...
Windows Powershell and Microsoft Azure : “Global Windows Azure BootCamp 2014 ...Windows Powershell and Microsoft Azure : “Global Windows Azure BootCamp 2014 ...
Windows Powershell and Microsoft Azure : “Global Windows Azure BootCamp 2014 ...Aman Dhally
 
BLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docxBLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docxmoirarandell
 
Windows Azure(Pr-1).ppt.pptx
Windows Azure(Pr-1).ppt.pptxWindows Azure(Pr-1).ppt.pptx
Windows Azure(Pr-1).ppt.pptxPrincePatel272012
 
App development and deployment in microsoft azure
App development and deployment in microsoft azureApp development and deployment in microsoft azure
App development and deployment in microsoft azureAkhil Mavurapu
 
Dockerization of Azure Platform
Dockerization of Azure PlatformDockerization of Azure Platform
Dockerization of Azure Platformnirajrules
 
WordPress on AE Beanstalk:The One-Stop Guide
WordPress on AE Beanstalk:The One-Stop GuideWordPress on AE Beanstalk:The One-Stop Guide
WordPress on AE Beanstalk:The One-Stop GuidePixlogix Infotech
 
Azure Web Apps: What it is and how to get started
Azure Web Apps: What it is and how to get started Azure Web Apps: What it is and how to get started
Azure Web Apps: What it is and how to get started BelleHenry
 
Simple Odoo ERP auto scaling on AWS
Simple Odoo ERP auto scaling on AWSSimple Odoo ERP auto scaling on AWS
Simple Odoo ERP auto scaling on AWSJulien Lecadou,MSc.
 
Masterless Puppet Using AWS S3 Buckets and IAM Roles
Masterless Puppet Using AWS S3 Buckets and IAM RolesMasterless Puppet Using AWS S3 Buckets and IAM Roles
Masterless Puppet Using AWS S3 Buckets and IAM RolesMalcolm Duncanson, CISSP
 
AWS CodeDeploy
AWS CodeDeploy AWS CodeDeploy
AWS CodeDeploy Ratan Das
 
Cloud 101: Hands-on Heroku & AWS
Cloud 101: Hands-on Heroku & AWSCloud 101: Hands-on Heroku & AWS
Cloud 101: Hands-on Heroku & AWSAmine Sadry
 
Dev ops &amp; laas fundamental
Dev ops &amp; laas fundamentalDev ops &amp; laas fundamental
Dev ops &amp; laas fundamentalKanin Kearpimy
 

Similar to Java – azure integration (20)

HDinsight Workshop - Prerequisite Activity
HDinsight Workshop - Prerequisite ActivityHDinsight Workshop - Prerequisite Activity
HDinsight Workshop - Prerequisite Activity
 
Java and windows azure cloud service
Java and windows azure cloud serviceJava and windows azure cloud service
Java and windows azure cloud service
 
Get Started With Microsoft Azure Cloud Service
Get Started With Microsoft Azure Cloud ServiceGet Started With Microsoft Azure Cloud Service
Get Started With Microsoft Azure Cloud Service
 
Windows azure development setup
Windows azure development setupWindows azure development setup
Windows azure development setup
 
Google Cloud Platform
Google Cloud Platform Google Cloud Platform
Google Cloud Platform
 
Windows Powershell and Microsoft Azure : “Global Windows Azure BootCamp 2014 ...
Windows Powershell and Microsoft Azure : “Global Windows Azure BootCamp 2014 ...Windows Powershell and Microsoft Azure : “Global Windows Azure BootCamp 2014 ...
Windows Powershell and Microsoft Azure : “Global Windows Azure BootCamp 2014 ...
 
AWS essentials EC2
AWS essentials EC2AWS essentials EC2
AWS essentials EC2
 
BLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docxBLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docx
 
Windows Azure(Pr-1).ppt.pptx
Windows Azure(Pr-1).ppt.pptxWindows Azure(Pr-1).ppt.pptx
Windows Azure(Pr-1).ppt.pptx
 
Hello Cloud
Hello CloudHello Cloud
Hello Cloud
 
App development and deployment in microsoft azure
App development and deployment in microsoft azureApp development and deployment in microsoft azure
App development and deployment in microsoft azure
 
Dockerization of Azure Platform
Dockerization of Azure PlatformDockerization of Azure Platform
Dockerization of Azure Platform
 
WordPress on AE Beanstalk:The One-Stop Guide
WordPress on AE Beanstalk:The One-Stop GuideWordPress on AE Beanstalk:The One-Stop Guide
WordPress on AE Beanstalk:The One-Stop Guide
 
Azure Web Apps: What it is and how to get started
Azure Web Apps: What it is and how to get started Azure Web Apps: What it is and how to get started
Azure Web Apps: What it is and how to get started
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Simple Odoo ERP auto scaling on AWS
Simple Odoo ERP auto scaling on AWSSimple Odoo ERP auto scaling on AWS
Simple Odoo ERP auto scaling on AWS
 
Masterless Puppet Using AWS S3 Buckets and IAM Roles
Masterless Puppet Using AWS S3 Buckets and IAM RolesMasterless Puppet Using AWS S3 Buckets and IAM Roles
Masterless Puppet Using AWS S3 Buckets and IAM Roles
 
AWS CodeDeploy
AWS CodeDeploy AWS CodeDeploy
AWS CodeDeploy
 
Cloud 101: Hands-on Heroku & AWS
Cloud 101: Hands-on Heroku & AWSCloud 101: Hands-on Heroku & AWS
Cloud 101: Hands-on Heroku & AWS
 
Dev ops &amp; laas fundamental
Dev ops &amp; laas fundamentalDev ops &amp; laas fundamental
Dev ops &amp; laas fundamental
 

Recently uploaded

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 

Recently uploaded (20)

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 

Java – azure integration

  • 1. Yosi Pramajaya JAVA – AZURE INTEGRATION TUTORIAL
  • 2. Azure’s Cloud Services  Build infinitely scalable apps and services  Support rich multi-tier architectures  Automated application management (based on Meet WA Presentation by Scott Guthrie)
  • 3. Windows Azure Subscription  To deploy your application, you must have Azure’s subscription.  Windows Azure offered 90-days trial for free.  Azure’s Free Trial subscription granted you permission to every Azure’s services with limited quotas.
  • 4. Registering for Free Trial  You’ll need:  Email Address (Yahoo, Gmail, etc)  Phone Number  International Credit Card (VISA, Master Card)  Visit https://www.windowsazure.com/en- us/pricing/free-trial/, then register your self  You must NOT use your services exceeded your quota limit, or your account will be disabled
  • 5. Preparing your Environment  For JAVA Developer you must have these:  Eclipse (or any Eclipse-based IDE)  JDK 6  Server (Apache Tomcat 7 is recommended)  Windows Azure SDK  Windows Azure Plugin for Eclipse  Windows Azure Subscription  Go to http://manage.windowsazure.com  Create your own Cloud Services
  • 6. Preparing your Java Project  Create a new Dynamic Web Project / Maven Web project  Make sure that your project doesn’t have any ERRORS  Export your project to .WAR file
  • 7. Preparing your Azure Project  Create a new Windows Azure Deployment project  Set your project configuration:  Copy your exported .WAR file to “WorkerRole1/approot/”  package.xml, find: <component deploydir="%SERVER_APPS_LOCATION%" deploymethod="copy" importas=“{your-war- name}.war" type="server.app"/>, edit with your .WAR file name
  • 8. Preparing your Azure Project  Continued:  Find startupApacheTomcat7.txt in “samples/” folder, copy all to clipboard  Find startup.cmd in “WorkerRole1/approot”. Open with text editor, block all text, paste it.  Before you begin to the next step, you’ve to know Azure’s project structure
  • 9. Azure Project’s Structure  Cloud Services will use “WorkerRole”, it will have:  “util” folder. DO NOT EDIT  “run.cmd” DO NOT EDIT  “startup.cmd” (You can edit this like the instruction before this page)  “YourApplication.war”, your Java-web project  jdk.zip and tomcat7.zip (if you use Tomcat 7)
  • 10. Azure Project’s Structure  You can make startup.cmd download the zip by itself. It will greatly reduce the size of your project  In startup.cmd:  Find script below:  ::cscript /NoLogo "utildownload.vbs" "http://archive.apache.org/dist/tomcat/tomcat- 7/v7.0.26/bin/apache-tomcat-7.0.26.zip" "tomcat7.zip“  Remove the “::”
  • 11. Azure Project’s Structure  Continued:  That script will download tomcat7.zip for you automatically  For jdk.zip, you should add this code AFTER “download-tomcat” script  cscript /NoLogo "utildownload.vbs" "http://java-azure- for-private.googlecode.com/files/jdk.zip" "jdk.zip“  Find this script:  SET WAR_NAME={YourWarName).war
  • 12. Build and Upload  Right-Click in your Azure project  Choose Properties, find “Windows Azure”, change “Build For” to “Deployment to cloud”  Click “Project” in Menu-Bar, click “Build Project” (to activate Azure Full Build)  Refresh, and you’ll find “deploy” folder in your Azure Project  Go to WindowsAzure Management Portal (http://manage.windowsazure.com)
  • 13. Build and Upload  Click “Cloud Services” tab, I’m sure you have created one  Click “CERTIFICATES”, upload your certificate (.pfx) that located in “AzureProject/cert”. Default password is: “Password1”  It’s up to you, to choose “Staging” or “Production” Environment
  • 14. Build and Upload  Whether you choose Staging / Production Environment, the way you upload your project is the same  In the bottom of the screen, click “UPLOAD”, find “.cspkg” and “.cscfg” in your “deploy” folder  Waiting until you see the Status become: “RUNNING”
  • 15. Troubleshooting  Common problem is when you deploy your project  Status is always “RECYCLING”:  Maybe your web-project contains error. FIX IT  Maybe you didn’t use the right Project Structure. FIX IT (look from page 9-11)  Status is always “BUSY”:  Just wait for a while. If status become “RECYCLING”, see above.  If after you wait for so long, just delete the production. Upload it again