locked
Private Cloud Guide Failed Script in Runbook designer... RRS feed

  • Question

  • First, thanks for your help.
    I'm following the evidence guide for Private Cloud and I have problems with sample runbook to create private cloud.
    The problem comes with the name of the cloud to create it says there is no ...

    Could not find cloud with CloudName = ....

    Pego the script in case anyone can spot something, but coming the guidance of Microsoft, I have not clear that the problem is the script.

    CloudName $ = ""
    $ MemoryGB =
    $ StorageGB =
    $ NoOfVMs =
    If ((Get-SCCloud-Name "$ CloudName")-eq $ null)

    {
    $ GUID = [System.Guid] :: NewGuid (). ToString ()
    Set-SCCloudCapacity-JobGroup "$ GUID"-UseCustomQuotaCountMaximum $ true -
    UseMemoryMBMaximum $ false, $ true-UseStorageGBMaximum UseCPUCountMaximum
    $ false, $ false-MemoryMB UseVMCountMaximum ($ MemoryGB * 1024)-StorageGB
    $ StorageGB-VMCount $ NoOfVMs
    $ addCapabilityProfiles = @ ()
    $ addCapabilityProfiles + = Get-SCCapabilityProfile-Name "Hyper-V"
    Set-SCCloud-JobGroup "$ GUID"-RunAsynchronously-AddCapabilityProfile
    $ addCapabilityProfiles
    $ hostGroup = (Get-SCVMHostGroup | where {$ _.ParentHostGroup-eq $ null})
    $ hostGroups = @ ()
    $ hostGroups + = $ hostGroup
    $ Cloud = New-SCCloud-JobGroup "$ GUID"-VMHostGroup $ hostGroups-Name
    $ CloudName-Description ""
    }


    Thanks for everything.


    http://kinomakino.blogspot.com

    Thursday, September 26, 2013 11:51 AM

All replies

  • do anyone know the correct script
    Monday, December 2, 2013 9:15 PM
  • You are supposed to fill in the name of your cloud in the script, as this is different in most environments.

    the $CloudName = is meant to fetch the cloud name, and recall it when needed later in the script.

    -kn


    Kristian (Virtualization and some coffee: http://kristiannese.blogspot.com )

    Monday, December 9, 2013 9:39 AM
  • dear kristen thanks for ur reply we are very new to this and working in lab can u guide us more how t o create cloud and virtual machines through automation and service manager template

    thanks in advance

    Tuesday, December 10, 2013 7:46 PM
  • Hi kinomakino,

    When you copy and paste this script. You will have mistakes with "-"

    Ex: Get-SCCloud-Name "$ CloudName")-eq $ null

    Try to retype all that "-" in script. Script will run ok.

    Goodluck! 

    Wednesday, June 18, 2014 8:28 AM