- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise Software
- >
- Variable: ${platform} display unknow when provisio...
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
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
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
01-10-2025 12:55 AM
01-10-2025 12:55 AM
Variable: ${platform} display unknow when provisioning
Hello,
I’m trying to generate instances with autogenerate names based on the platform type has shown in the documentation in the pre-provision vars :
https://docs.morpheusdata.com/en/latest/troubleshooting/Variables_Examples.html?highlight=variable
I tried this : ${tenant}S${platform == ‘windows’ ? ‘W’:‘L’}P${sequence.toString().padLeft(3,‘0’)}
For ${platform == ‘windows’ ? ‘W’:‘L’} i get always a L even if it’s windows.
I then provisioned an instance with only ${tenant}S${platform}P${sequence.toString().padLeft(3,‘0’)} with the following result : EC98unknowP004
Do you know how to resolve this ?
Kr,
LBO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 01:41 AM
01-10-2025 01:41 AM
Re: Variable: ${platform} display unknow when provisioning
It seems that if you deploy a VMware instance type and select a Windows image in the provisioning wizard, it always picks up ‘L’ regardless of the platform. Does this sound like a bug?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 01:29 AM
01-10-2025 01:29 AM
Re: Variable: ${platform} display unknow when provisioning
If you are using custom images, ensure that the OS type has been specified on the Morpheus virtual image settings. I think platform is derived from that.
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 01:55 AM
01-10-2025 01:55 AM
Re: Variable: ${platform} display unknow when provisioning
@dgaharwar I think the logic is working but the platform is not being read as “windows”, because it is unknown/null, so it uses the or/else case which is “L”
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 04:21 AM
01-10-2025 04:21 AM
Re: Variable: ${platform} display unknow when provisioning
Platform needs to be interpretted off of the Node type connected to a Layout. If you use a generic cloud type provisioning (VMware, Azure, SCVMM, etc) there is no direct Node type associated with that Layout and it defaults to the else.
You must create a custom Instance Type, Layout, and Node Type for this to be decipherable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 02:42 AM
01-10-2025 02:42 AM
Re: Variable: ${platform} display unknow when provisioning
@Ollie_Phillips I’ve configured the image type as windows for Windows 2019 core template synced via vware.
Set the name in the catalogue to display the platform in the instance name and this is still unknow.
Check bellow