Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-RunspaceData : ERROR: Deployment failed #55

Open
denniswhitney2000 opened this issue May 23, 2018 · 2 comments
Open

Get-RunspaceData : ERROR: Deployment failed #55

denniswhitney2000 opened this issue May 23, 2018 · 2 comments

Comments

@denniswhitney2000
Copy link

Hello,
First, I love this thing! wish I found it 2 weeks ago!

Anyway, I am trying to automate building out an azure env using the azure v2 cli and it seems to blow out on commands like this:

$cmd = "az vm extension set --verbose --resource-group $rg --vm-name $name --name customScript --publisher Microsoft.Azure.Extensions --settings '{\`"fileUris\`": [ \`"$fileUris\`" ], \`"commandToExecute\`": \`"$commandToExecute\`"}'"
$cmd = Invoke-Expression $cmd
Write-Host "[$name] Executed $commandToExecute"

With this error:
Get-RunspaceData : ERROR: Deployment failed. Correlation ID: 3406f079-12d5-4eb3-a423-cef1d2a29696. Operation PutSecurityRuleOperation (1dd51017-88ce-421a-971d-ae07ef29f83b) was canceled and superseded by operation PutSecurityRuleOperation (b100457e-8062-4bcb-bcff-0778cfa80780).
At /Users/foo/Documents/Projects/myproject/bin/Invoke-Parallel.ps1:543 char:13

  •         Get-RunspaceData -wait
    
  •         ~~~~~~~~~~~~~~~~~~~~~~
    
  • CategoryInfo : NotSpecified: (ERROR: Deployme...-0778cfa80780).:String) [Write-Error], RemoteException
  • FullyQualifiedErrorId : NativeCommandError,Get-RunspaceData

Are there any clues to look for to fix this?

@vors
Copy link
Collaborator

vors commented May 23, 2018

ERROR: Deployment failed seems to be the error from the azure vm externsion. The Get-RunspaceData call simply marshals the error from a separate powershell runspace (it's like a thread for this context) to the main runspace.

@denniswhitney2000
Copy link
Author

Hmmm... Ok. Issue here is that this only happens when I try to use the invoke-parallel version of this. when i use the normal version, it works. is there a way to either suppress this or ignore it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants