none
[Java][Azure Resource Management] Is possible to do ARM Templates for Marketplace Tomcat8? RRS feed

  • Question

  • I've created a parametrized ARM Template for being able to create my resource group structure over three different environments ("development", "acceptance" and "production").

    I want to run Java applications in Tomcat (but having full control of the Tomcat (adding libs, editing server.xml, tomcat-users.xml, etc).

    For that I want to use Marketplace Tomcat8 that gives full ftp access to the Tomcat structure/configuration.

    So the question is: It's possible to create a Marketplace Tomcat8 using ARM Templates?

    Creating a default Web App with application settings "javaVersion": "1.8", "javaContainer": "Tomcat", "javaContainerVersion": "8.0", I already done it, but it's not enough.

    Many thanks in advance,




    Monday, May 23, 2016 1:24 PM

Answers

  • Hi,

    Thanks for posing here!

    According to the description of the item "ARM Template" of the section 4 in the article https://azure.microsoft.com/en-us/support/legal/marketplace/participation-policies/, I think it's possible to create a Marketplace Tomcat 8 using ARM template.

    According to your description, it seems that you have refered to the article http://donovanbrown.com/post/2016/01/24/Provisioning-a-Java-8-Tomcat-web-app-in-Azure-using-an-ARM-Template and the sample https://github.com/Azure/azure-quickstart-templates/tree/master/201-web-app-java-tomcat .

    For using ARM template to create a marketplace tomcat8, there seems to be not an existing sample.

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Best Regards.

    Tuesday, May 24, 2016 7:27 AM
    Moderator
  • Thanks Peter,

    Yes, there is no official documentation about how to do it, so I follow Donovan Brown post.

    The ARM Template Schema is very hard do read and define "javaContainer", "javaVersion", etc as free text. It will be great if MS improve both the documentation and the json schema.

    Regarding the marketplace tomcat 8, I check the RM REST API calls used when creating a Marketplace Tomcat8 in azure portal and discovered that the ARM Template used is: https://github.com/azure-appservice-samples/TomcatTemplate

    This templates gets tomcat8 from a repo. So in my tomcat8app "resources" field added:

            {
              "apiVersion": "2015-08-01",
              "name": "web",
              "type": "sourcecontrols",
              "dependsOn": [
                "[resourceId('Microsoft.Web/Sites', variables('my_tomcat8app_name'))]"
              ],
              "properties": {
                "RepoUrl": "[variables('tomcat8_repoUrl')]",
                "branch": "[variables('tomcat8_branch')]",
                "IsManualIntegration": true
              }
            }

    with variables:
        "tomcat8_repoUrl": "https://github.com/azure-appservice-samples/TomcatTemplate",
        "tomcat8_branch": "master"

    And it's done! :)



    Tuesday, May 24, 2016 9:07 AM

All replies

  • Hi,

    Thanks for posing here!

    According to the description of the item "ARM Template" of the section 4 in the article https://azure.microsoft.com/en-us/support/legal/marketplace/participation-policies/, I think it's possible to create a Marketplace Tomcat 8 using ARM template.

    According to your description, it seems that you have refered to the article http://donovanbrown.com/post/2016/01/24/Provisioning-a-Java-8-Tomcat-web-app-in-Azure-using-an-ARM-Template and the sample https://github.com/Azure/azure-quickstart-templates/tree/master/201-web-app-java-tomcat .

    For using ARM template to create a marketplace tomcat8, there seems to be not an existing sample.

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Best Regards.

    Tuesday, May 24, 2016 7:27 AM
    Moderator
  • Thanks Peter,

    Yes, there is no official documentation about how to do it, so I follow Donovan Brown post.

    The ARM Template Schema is very hard do read and define "javaContainer", "javaVersion", etc as free text. It will be great if MS improve both the documentation and the json schema.

    Regarding the marketplace tomcat 8, I check the RM REST API calls used when creating a Marketplace Tomcat8 in azure portal and discovered that the ARM Template used is: https://github.com/azure-appservice-samples/TomcatTemplate

    This templates gets tomcat8 from a repo. So in my tomcat8app "resources" field added:

            {
              "apiVersion": "2015-08-01",
              "name": "web",
              "type": "sourcecontrols",
              "dependsOn": [
                "[resourceId('Microsoft.Web/Sites', variables('my_tomcat8app_name'))]"
              ],
              "properties": {
                "RepoUrl": "[variables('tomcat8_repoUrl')]",
                "branch": "[variables('tomcat8_branch')]",
                "IsManualIntegration": true
              }
            }

    with variables:
        "tomcat8_repoUrl": "https://github.com/azure-appservice-samples/TomcatTemplate",
        "tomcat8_branch": "master"

    And it's done! :)



    Tuesday, May 24, 2016 9:07 AM