The get_inventory command “discovers” the resource in CloudShell, or in other words, validates the values of the cloud provider attributes that were entered by the user. It is executed when creating the resource in CloudShell, and can be manually run later on, for example, if you change some of the resource’s attribute values.
For example, in a vCenter cloud provider, get_inventory would check the value provided in the Default DataCenter attribute
to validate that such a datacenter exists in the vCenter Server.
In addition, this is the place to assign values to optional attributes that were not given a value by the CloudShell admin.
context: context is an AutoLoadCommandContext object that contains:
connectivity - CloudShell server connectivity data for authentication with CloudShell Automation API
resource - resource configuration settings entered by the user when creating the new resource in the Inventory dashboard