GithubHelp home page GithubHelp logo

Comments (5)

RamblingCookieMonster avatar RamblingCookieMonster commented on July 20, 2024

That sounds odd! So, to clarify, these commands typically don't return right away, they wait until the restore is complete, and then pass through some object?

What command is it, or, if it's a function/script, would you mind sanitizing and posting? On that note, an example that could reproduce the issue would be handy as well

Cheers!

from invoke-parallel.

heygautam avatar heygautam commented on July 20, 2024

Hi, Thanks for the reply.

You are correct in your understanding!

The entire script is attached. It's based off of a script I found on TechNet. Only the csv import is customized.
RestoreVM.txt

I call both 3b and 3c in a scriptblock which I process using invoke-parallel like so....
Invoke-Parallel -ImportVariables -ScriptBlock

The exact commands are:

  1. This kicks off the restore....
    Restore-AzureRmRecoveryServicesBackupItem -RecoveryPoint $_ -StorageAccountName $ExistingStorAcct.StorageAccountName -StorageAccountResourceGroupName $ExistingStorAcct.ResourceGroupName

  2. This command adds the wait. Post this the script goes ahead and creates a new VM based on the restore.
    $joblist = Get-AzureRmRecoveryServicesBackupJob -JobId $restorejob.JobId
    Wait-AzureRmRecoveryServicesBackupJob -Job $joblist -Timeout 43200

from invoke-parallel.

heygautam avatar heygautam commented on July 20, 2024

Hi, I pinged in to ask if you got a chance to look at this. I can't make heads-tails of the issue.

from invoke-parallel.

RamblingCookieMonster avatar RamblingCookieMonster commented on July 20, 2024

Hi! Apologies, flipped through it but didn't see anything initially - will be tied up with a conference and holidays, but, will try to revisit next year - ping me late January or early February

In the interim, you might consider pinging folks in the Rest Azured Slack team

Cheers!

from invoke-parallel.

heygautam avatar heygautam commented on July 20, 2024

from invoke-parallel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.