In this challenge, you will change the type of VM from Windows Server to Ubuntu, add a storage account to your application, and redeploy the application.
- Now you need to update the
createUiDefinition.json
file to create an installation experience that prompts the user for details needed to create an Azure Storage account. The values gathered will be input into the ARM template as parameters at install time.
Note: At any point in editing the
createUiDefinition.json
file, consider using the Create UI Definition sandbox in the Azure portal to check your sytax and functionality.
-
In your ARM template (mainTemplate.json) in the parameters section add the required parameters.
-
In your ARM template make changes to create an Ubuntu image instead of Windows Server. Remember about SSH port.
-
In your ARM template add a new section to create a storage account.
-
Download a tool used in testing ARM templates and use it to test your mainTemplate.json and createUiDefinition.json files. Fix any errors reported by the tool.
-
Package your new application and publish it in Service Catalog as a separate managed application.
-
Once the deployment is complete check that your Ubuntu virtual machine is up and running. After verifying, you may shut down the machine so you won’t be charged for VM uptime.
- Your files pass the Template Test Toolkit without any errors.
- You have a new resource group with your updated Managed Application deployed in Service Catalog.
- The new Managed Application contains a storage account.
- You can successfully SSH into your new Ubuntu virtual machine.