- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Variables at time of provisioning
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2023 01:47 PM
05-30-2023 01:47 PM
Variables at time of provisioning
I have some PowerShell tasks that are part of a provisioning workflow and work fine when a new instance is deployed via the catalog. However, when trying to deploy directly from the Provisioning > Instances tab, I get a failure with the message No such property: customOption
.
I’ve narrowed the failure down to where I reference the hostname, which I’m doing via $hostName = "<%= instance.hostName %>"
. I’ve tried other variations, and I can get to the hostName when using the catalog or running tasks against an existing instance; however none seem to work when deploying directly from the instances tab.
I’m running out of ideas, so now I’m asking for yours.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2023 03:22 PM
05-30-2023 03:22 PM
Re: Variables at time of provisioning
Thanks @cbunge, though now I’m more confused than when I started.
We’re not using hostName
in the customOptions for the catalog at all; we’re actually using vmName
. The hostName
came from doing a dump of the instance
object with a javascript task that’s literally just the word instance. It’s probably also worth noting that hostName
worked on existing instances, even if they were not created from the catalog. It only failed if the task was run as part of a provisioning workflow.
That said, I went ahead and tried changing the case to all lowercase, and it worked. I’m at a loss to explain why hostName
was working sometimes, but I’m happy enough to have it working reliably now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2023 01:54 PM
05-30-2023 01:54 PM
Re: Variables at time of provisioning
Hi @John!
When you’re using a catalog you define your own inputs and map those. Guessing your customOption has a field name cased liked hostName
however, the Morpheus native variable during provisioning is cased all lower like instance.hostname
. That’s most likely the issue you are seeing.
Note, instance.hostname
should be available [in your tasks] to you in a catalog, even if you map the hostname with customOptions.hostName
. The instance var gets created as soon as you hit submit.