Categories in 1st Gen Service Shells
This article explains how to associate service categories to a service Shell. CloudShell exposes services to CloudShell users via service categories, which are associated to the CloudShell domains in which the services are required. The service categories of a specific domain constitute that domain’s services catalog. By default, each service Shell template is associated to a category in the Global domain.
There are two ways to associate service Shells to categories:
-
Add the desired categories to the service’s family in Resource Manager Client
-
Define the association in the service Shell’s data model
In this article, we’ll learn how to associate categories via the Shell’s data model.
To associate a category to a service Shell:
-
Make sure you are running Shellfoundry with the Global admin user. Run
shellfoundry configto see which user you are using. -
Create a new Shell from a template using
shellfoundry new. -
Open the Shell’s root folder.
-
Edit the categories in the
datamodel.xmlandcategory.xmlfiles.To edit the
datamodel.xml:-
In the
/datamodelfolder, edit thedatamodel.xml. -
Under
<Categories>, create a duplicate of the commented<Category>line. -
Change the category name as appropriate.
-
Uncomment the line.
-
Repeat to add additional categories.
-
Save the file.
To edit the
categories.xml(required if the categories do not exist in CloudShell):-
In the
/categoriesfolder, edit thecategories.xml. -
Under
<Categories>, create a copy of the lines that start with the<!--<Category Nameline and end with</Category>-->.For example:
<!--<Category Name="" Catalog="Service">
<ChildCategories />
</Category>--> -
Specify the category name. Optionally specify child categories, which are nested under parent categories.
-
Save the file.
-