Snapshots vCloud Director 5.1 & PowerCLI 5.1

(cross-post from the vCloud forum)

Now that 5.1 vCloud Director supports snapshots, I seek to 5.1 PowerCLI cmdlets and impossible to find a way to create/manage/return snapshots.  I see that this is in the API, but do not see a way to interface via PowerCLI.  Any ideas?

EU are covered.

http://geekafterfive.com/2012/10/02/vCloud-Director-snapshots-with-PowerCLI/

Tags: VMware

Similar Questions

  • Add firewall rules to a VAPP vCloud Director network via PowerCLI

    Hi, I am trying to add a VAPP network firewall rules in vCloud Director 5.1 with PowerCli 5.1.  This script seems to update, without error, but an update of firewall configuration reveals no change.

    Connect-CIServer-Server server.domain.local Org - org01-Director of the username-password xxxxxx - WarningAction SilentlyContinue

    $vAppNet = get-CIVAPP 111. Get-civappnetwork vApp_Network
    $vApp = get-CIVAPP 111

    $networkConfigSection = .extensiondata (get-CIVapp 111). GetNetworkConfigSection()

    $fwService = New-Object vmware.vimautomation.cloud.views.firewallservice
    $fwService.DefaultAction = "drop".
    $fwService.LogDefaultAction = $false
    $fwService.IsEnabled = $true
    $fwService.FirewallRule = New-Object vmware.vimautomation.cloud.views.firewallrule
    $fwService.FirewallRule += New-Object vmware.vimautomation.cloud.views.firewallrule
    $fwService.FirewallRule [0] .isenabled = $true
    $fwService.FirewallRule [0] .description = "TS of TSG"
    $fwService.FirewallRule [0] .protocols = New-Object vmware.vimautomation.cloud.views.firewallRuleTypeProtocols
    $fwService.FirewallRule [0].protocols.tcp = $true
    $fwService.FirewallRule [0] .policy = "enable".
    $fwService.FirewallRule [0] .port = "3389.
    $fwService.FirewallRule [0] .destinationIp = "Any"
    $fwService.FirewallRule [0] .sourceport = "3389.
    $fwService.FirewallRule [0] .sourceip = "192.168.1.81 - 192.168.1.89.
    $fwService.FirewallRule [0] = 'en '.

    $vAppNet.extensiondata.configuration.features += $fwService
    $networkConfigSection.UpdateServerData)

    -------------------------------------------------------------------------------------------

    When I run $vAppNet.extensiondata.configuration.features to check to see if it has been added, I see it below highlighted in red...

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI for tenants > $vAppNet.extensiondata.configuration.features


    DefaultAction: drop

    LogDefaultAction: false
    FirewallRule:
    IsEnabled: true
    Get_anyattr:
    VCloudExtension:

    NatType: ipTranslation
    Policy: allowTrafficIn
    NatRule:
    ExternalIp:
    IsEnabled: true
    Get_anyattr:
    VCloudExtension:

    DefaultAction: drop
    LogDefaultAction: false
    FirewallRule: {}
    IsEnabled: true
    Get_anyattr:
    VCloudExtension:

    -------------------------------------------------------------------------------------------------------------

    Change the script a bit generates an error during the update...

    -------------------------------------------------------------------------------------------------------------

    Connect-CIServer-Server server.domain.local Org - org01-Director of the username-password xxxxxx - WarningAction SilentlyContinue

    $vAppNet = get-civappnetwork vApp_Network

    $vApp = get-CIVAPP 111
    $networkConfigSection = .extensiondata (get-CIVapp 111). GetNetworkConfigSection()
    $vAppNetwork = $networkConfigSection.NetworkConfig | where {$_.networkName - eq "vApp_Network"}

    $fwService = New-Object vmware.vimautomation.cloud.views.firewallservice
    $fwService.DefaultAction = "drop".
    $fwService.LogDefaultAction = $false
    $fwService.IsEnabled = $false
    $fwService.FirewallRule = New-Object vmware.vimautomation.cloud.views.firewallrule
    $fwService.FirewallRule += New-Object vmware.vimautomation.cloud.views.firewallrule
    $fwService.FirewallRule [0] .isenabled = $false
    $fwService.FirewallRule [0] .description = "TS of TSG"
    $fwService.FirewallRule [0] .protocols = New-Object vmware.vimautomation.cloud.views.firewallRuleTypeProtocols
    $fwService.FirewallRule [0].protocols.tcp = $true
    $fwService.FirewallRule [0] .policy = "enable".
    $fwService.FirewallRule [0] .port = "3389.
    $fwService.FirewallRule [0] .destinationIp = "Any"
    $fwService.FirewallRule [0] .sourceport = "3389.
    $fwService.FirewallRule [0] .sourceip = "192.168.1.81 - 192.168.1.89.
    $fwService.FirewallRule [0] = 'en '.

    $vAppNetwork.Configuration.Features = $vAppNetwork.Configuration.Features | where {!} (() $_-est [vmware.vimautomation.cloud.views.firewallservice])}
    $vAppNetwork.configuration.features += $fwService
    $networkConfigSection.UpdateServerData)

    ----------------------------

    Error

    ----------------------------

    Exception by calling 'UpdateServerData' with '0' or the arguments: "Bad request - Unexpected Exception of JAXB - HVAC-complex - type. 2.4.b: the content of the 'FirewallRule' element is not complete. An a ' {'http://www.}

    "VMware.com/vCloud/v1.5":VCloudExtension,"http://www.vmware.com/vcloud/v1.5": Id, ""http://www.vmware.com/vcloud/v1.5 ": IsEnabled, 'http://www.vmware.com/vcloud/v1.5 ': MatchOnTranslate,"http://www.vmware.com "

    "/vCloud/v1.5": description, ""http://www.vmware.com/vcloud/v1.5 ": policy,"http://www.vmware.com/vcloud/v1.5 ": protocols, 'http://www.vmware.com/vcloud/v1.5 ': IcmpSubType," "http://www.vmware.com/vcloud/v1.5": P "

    "ORT," 'http://www.vmware.com/vcloud/v1.5 ': DestinationPortRange, "http://www.vmware.com/vcloud/v1.5": DestinationIp, ""http://www.vmware.com/vcloud/v1.5 "{: DestinationVm}" ' is expected. ""

    On line: 1 char: 39

    + $networkConfigSection.UpdateServerData < < < <)

    + CategoryInfo: NotSpecified: (:)) [], MethodInvocationException)

    + FullyQualifiedErrorId: DotNetMethodException

    I was not able to understand how to successfully upgrade.  Please, any help would be greatly apprecieated.

    Hi, I found my answer, here is the final solution.

    $vAppNet = get-CIVAPP 111. Get-CIVAppNetwork vApp_Network
    $vApp = get-CIVAPP 111
    $networkConfigSection = .extensiondata (get-CIVapp 111). GetNetworkConfigSection()
    $vAppNetwork = $networkConfigSection.NetworkConfig | where {$_.networkName - eq "vApp_Network"}

    $fwService = New-Object vmware.vimautomation.cloud.views.firewallservice
    $fwService.DefaultAction = "drop".
    $fwService.LogDefaultAction = $false
    $fwService.IsEnabled = $true
    $fwService.FirewallRule = New-Object vmware.vimautomation.cloud.views.firewallrule
    $fwService.FirewallRule += New-Object vmware.vimautomation.cloud.views.firewallrule

    Rule #First
    $fwService.FirewallRule [0] .isenabled = $true
    $fwService.FirewallRule [0] .description = "allow all outgoing traffic.
    $fwService.FirewallRule [0] .protocols = New-Object vmware.vimautomation.cloud.views.firewallRuleTypeProtocols
    $fwService.FirewallRule [0] .protocols. ALL = $true
    $fwService.FirewallRule [0] .policy = "enable".
    $fwService.FirewallRule [0] .destinationIp = "external".
    $fwService.FirewallRule [0] .sourceip = "internal".

    Rule #Second
    $fwService.FirewallRule [1] .isenabled = $true
    $fwService.FirewallRule [1] .description = "TS of TSG"
    $fwService.FirewallRule [1] .protocols = New-Object vmware.vimautomation.cloud.views.firewallRuleTypeProtocols
    $fwService.FirewallRule [1].protocols.tcp = $true
    $fwService.FirewallRule [1] .policy = "enable".
    $fwService.FirewallRule [1] .port = "3389.
    $fwService.FirewallRule [1] .destinationIp = 'Any '.
    $fwService.FirewallRule [1] .sourceport = "3389.
    $fwService.FirewallRule [1] .sourceip = ' 192.168.1.81 - 192.168.1.89.

    $vAppNetwork.Configuration.Features = $vAppNetwork.Configuration.Features | where {!} (() $_-est [vmware.vimautomation.cloud.views.firewallservice])}
    $vAppNetwork.configuration.features += $fwService
    $networkConfigSection.UpdateServerData)

  • Snapshot on vCloud Director

    I did some tests on a system based on POC vCloud VCE, I need to understand in order to meet the demand of my client.

    Vcloud Director cannot directly perform a vm snapshot

    Instant TI possible a VM on vCloud acting at the level of the virtual center without creating problems?

    Or how I can manage for example the process of patching sharepoint, without a snapshot, but the principle of maintaining safety?

    Ah, the old backup cloud scenario... I can only really comment on what's around now, and it's the features that you understand.

    If a customer wondered 'what available to vSphere use', then must reset expectations for now on the functioning of the Cloud deployment.

    It is not very "cloud as" If you were to pop in the vCenter to a PvDC for work.

    Maybe someone else will see this post and carillon.

    Best regards

    Jon Hemming

  • How to get version vcloud director using Powercli 5.1

    Hello

    After how can connection to vCD (using Connect-CIServer), I get the vcloud director (for example 5.1.1 or 1.5.0) version? Thank you.

    Global $: DefaultCIServers | Select name, version

  • VCloud Director displays do not Vcenter data.

    Hi guys,.

    I installed VCD 5.5, vsheild Manager and vcenter on a single ESXi 5.5 . I am facing problems with VCloud Director.Although I have attached the Vcenter Sucessfully in VCD, vcenter data not poping upward into Vcd. So the list of hosts is empty. No resouce pool are coming in Vcd.

    Here are my questions coming in my mind... I think I might get hurt

    1 then I installed VCD 5.5, vsheild Manager and vcenter on a single ESXi 5.5 host?

    2. is it a problem with the license... Although all of them are allowed until 2015. ?

    3. do I need to manually install the agent Vcd on ESXi... Although I think that this should be done automatically? If yes how to do this.

    Please tell me where I can be wrong.

    I have attached snapshots of Vcenter and VCD. Please review those and help out me

    All responses will be appreciated.

    Thank you

    Tarun Gupta

    You must create a provider vDC for nothing appear.  This requires some DRS to be on (if you don't have it already done) and requires usually two hosts in a cluster.  This is because you need to spend in maintenance mode to install the agent correctly and can vmotion powerd on the VMS of a host while the other prepares.  It's all part of the installation and Administrator's guide.

  • Unable to access vCloud Director

    We tried to build a private cloud, which is a total pain.

    Somehow, we were able to install vCloud Director. But we are unable to access the interface.

    Whenever we try to open ourselves to the IP address, in any browser, it takes some time and says "" Web Page not available"

    Please find the attached snapshot from cell.log.

    It seems to me.

    Any help would be appreciated.

    Specifications:

    OS - CentOS 5

    vCloud Director 1.5

    SQL Server Express 2008 installed on a Windows Server 2008 R2

    Iptables works in centos (by default it will be) and if so, is that it is configured to allow the required ports vCD?  If you do not put this direct yet you could temporarily turn off and figure out what the rules are needed later:

    chkconfig iptables off

    service iptables stop

  • MCAK for vCloud Director 5.1

    Hello

    We use the most recent MultiCloud since vCloud Director but now look at upgrading to vCenter vCloud Director 5.1.

    I had seen a mention of help soon with version 5.1 of vCD, but did not see if it is available, or in what version it will be.

    Would you be able to give an indication of support for this version, please?

    Kind regards

    Paul

    You should have no problem with the latest version of MCAK vCloud Director 5.1. All the features of the IAC has been verified. What is not yet supported is 5.1 VCD API, so you would not be able to take advantage of the new features of the product/API with the adapter IN VCD (although you can always write your own custom using HTTP requests process to call the new REST API directly).

  • What is the smallest model of VAPP available that can be used with vCloud Director?

    Hi all

    I was on the hunt to find the smallest operating system which can be used for demonstration purposes.

    I want to be able to quickly create vApps so a small footprint would be ideal.

    What guys do you use?

    I found this customization for operating system support invited into vCloud Director 5.5 (2058524) | VMware KB

    I always look for a 'micro' distribution that supports customization of comments.

    What is the smallest available?

  • VMware vCloud Director with the NSX Manager installation process.

    Hello world

    I recently planned to deploy VMware vCloud Director (so NSX Manager will be deployed, as part of the process) on an existing environment (existing virtual machines running, virtual switches,...).

    Customers use their virtual machines because they are in production.

    I was wondering if the deployment / installation of NSX Manager would cause no downtime or disturb the workflows running or even break the VM interconnections?

    Thanks in advance,

    Lawrence B.

    I looked at many tutorials, and indeed nothing should happen so that deploy a controller or something else. My concerns were about this "else", as the virtual switches and so on. I guess that the NSX will show existing resources such as the existing virtual switches (and so forth) already configured with vCenter?

    What vCloud Director does is interact with NSX via API.  Calls are exclusive to VXLAN (vdnscope-# resources in the API) and demand to deploy or update an edge.  vCD is not 'show' resources discovered by NSX.  You configure NSX and vCD makes an API call and said ' I want a Board connected to the port groups A and B "or"I want a new vWire of this VXLAN instance.

    Is there a document with the "best practices" for the deployment of vCD?

    Yes: VMware vCloud Architecture Toolkit: Cloud Computing reference Architecture | United States

    The meddle with existing resources, must have dedicated resources for the vCD vendor (aka the cluster in vCenter).  It is better to have that then using a pool of resources to a cluster where neighbour noisy problems can arise.  vCAT above might exceed a lot of that when you read it.

  • vRealize device Orchestrator 6.0.3 and vCenter 5.5 5.6 U3/vCloud Director

    Hello world

    I have a few questions on the compatibility between vRO 6.0.3 and vCenter vCloud Director 5.6 and 5.5:

    In vCenter Orchestrator 5.5.2 I plugin to connect the vCO to vCenter (version

    vro2.jpg

    2. a supplementary door on vSphere Web Client integration with vRO. To do this properly first of all I must use SSO authentication mode? It won't work with LDAP authentication?

    3. anyone know if vRO works closely with vCloud Director 5.6? I found 5.5.1.2 plugin, but using this plugin, I can not connect to vCD (in vCO 5.5.2 I have no problem).




    Hello

    (1) Yes, plugin configuration is workflow (this is the approach recommended new plug-ins; the old configuration of Web UI is deprecated and will be removed at some point).

    (2) only the SSO mode is supported; LDAP won't work. Note that the UNIQUE authentication token is acquired in the name of the user logged in vSphere client to Web, so you must make sure that this user has enough permissions to connect to vRO.

    (3) it should be newer versions of this plugin, and compatibility matrix showing which plugin version is compatible with given the vCD. Don't know where it is, however.

  • Move the VM from: vCloud director to vCenter

    How to move a virtual machine from: vcloud director to the vcenter even integrated into vcloud Director?

    If VCD has no more need of this virtual machine, you can perform steps below.

    1 unregister the virtual of VC machine

    2 remove the machine virtual de VCD

    3. save the VM in VC

    SCR would be an additional tool that would be useful for moving loads of work, but a lot depends on number of cases of use of involved and of the virtual computer.

  • Nested VApps in vcloud Director

    Is it possible to create the vapps nested within vcloud Director?

    Nesting vapps won't happen in vCD.  They will be parallel vApps.  Is not stop you from writing a tool/site Web automation, which would show you have there.

    vRA will address finally that, but they do not use vApps.  all virtual machines just became machines to manage without the concept of being part of a paralytic.  It will be that you have a plan of several computers that uses two other plans several computers (a DB level on the application layer).

  • autonomous VMRC console for vcloud Director

    Hello

    I use the stand-alone vmrc available in this link VMware vSphere 5: Private Cloud Computing, server and data center virtualization to open the console vsphere.

    Is it possible to use the vmrc to open vcloud Director console?

    Please help me.

    Thank you.

    Autonomous VMRC is not supported with vCloud Director.

    VMware Remote Console 7.0 Release Notes

    • VMRC does not support vCloud Director, vCloud Air and vRealize of automation of virtual machines.

    Therefore, you should use the console system provided in vCloud Director.

  • Cannot delete the storage policy to vCloud Director 5.5

    I'm trying to delete the storage policy to vCloud Director 5.5. I did in several vCloud Director organization VDC but stuck with one on the same instance of vCloud Director. I migrated all the VMs, the media and the VAPP model to another storage strategy. I checked in vCenter as there is no VMs who belong to this policy. Always in the vCloud Director, I see 30MB "asked" to this strategy of storage for this VDC.

    Any ideas what I need to check? How can I find what always uses this storage strategy?

    The problem has been resolved. Failed ISO image was only visilble in Administration and media & other only. After it has been removed, we were able to delete the storage policy.

  • vCloud Director - SVMOTION ERROR

    When I try to SVMotion a virtual machine. I get the error "this virtual machine is managed by vcloud Director solution.» It is not recommended to edit it directly. Instead, use the management console.

    The virtual machine is turned off in State

    Please suggest how to SVMOTION a virtual computer managed by vCLOUD Director

    Hello

    Even if it's a warning, we can migrate the virtual machine as long as under conditions are checked.

    Note: migrate through Storage vMotion is possible, but there are several caveats.

    • Make sure that the new data stores have the correct storage policy and are assigned to the correct hosts. There is no vCloud check engine steering investment using this method and it can cause serious problems if you do it right.
    • This is not recommended for virtual machines configured quickly as they are inflated to the full clones.
    • It is not possible for VAAI quickly put into service of the virtual machines being unable to Storage vMotion them vSphere.
    • Balancing of virtual machines on data warehouses is entirely manual.

    Follow each step diligently---> http://download3.vmware.com/vcat/documentation-center/index.html#page/Consuming%20a%20vCloud/3c%20Consuming%20a%20VMware%20vCloud.2.083.html

    VMware KB: Best practice for migrating to new storage in vCloud Director vCloud infrastructure

Maybe you are looking for