Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 251313

Re: vRA8 disk and nic count

$
0
0

Hello Dbis7575.

 

I have try the networks: '${map_to_object(resource.Cloud_vSphere_Network_1[*].id + resource.Cloud_vSphere_Network_2[*].id, "network")}' for dynamic network assignment.

 

The Yaml code seams to be fine but I got error at the deployment provisionning network layer.

Create Failed - com.vmware.xenon.common.ServiceHost$ServiceNotFoundException: Service not found: http://XX.XX.XX.XX:8282/provisioning/resources/compute-networks/3c148adf-556e-427f-ae19-7d8bdebe9db5

 

Here the code I have:

 

# Created by Quickstart wizard.

formatVersion: 1

inputs:

  netCount:

    type: integer

    default: 1

    minimum: 1

    maximum: 6

  network:

    type: string

    default: null

  network2:

    type: string

    default: null

  network3:

    type: string

    default: null

  network4:

    type: string

    default: null

 

resources:

 

Cloud_vSphere_Network_1:

    type: Cloud.vSphere.Network

    properties:

      networkType: existing

      constraints:

        - tag: 'vdsp:${input.network}'

      count: '${input.netCount >= 1 ? 1 : 0}'

 

Cloud_vSphere_Network_2:

    type: Cloud.vSphere.Network

    properties:

      networkType: existing

      count: '${input.netCount >= 2 ? 1 : 0}'

      constraints:

        - tag: 'vdsp:${input.network2}'

 

Cloud_vSphere_Network_3:

    type: Cloud.vSphere.Network

    properties:

      networkType: existing

      constraints:

        - tag: 'vdsp:${input.network3}'

      count: '${input.netCount >= 3 ? 1 : 0}'

 

Cloud_vSphere_Network_4:

    type: Cloud.vSphere.Network

    properties:

      networkType: existing

      count: '${input.netCount >= 4 ? 1 : 0}'

      constraints:

        - tag: 'vdsp:${input.network4}'

 

  vSphere_Machine:

    type: Cloud.vSphere.Machine

      networks: '${map_to_object(resource.Cloud_vSphere_Network_1[*].id + resource.Cloud_vSphere_Network_2[*].id, "network")}'

 

Do you got any idea what i am doing wrong ?

 

Regards.

 

 


Viewing all articles
Browse latest Browse all 251313


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>