bamcis-io / cloudendure Goto Github PK
View Code? Open in Web Editor NEWA PowerShell wrapper for the CloudEndure APIs.
License: MIT License
A PowerShell wrapper for the CloudEndure APIs.
License: MIT License
@hakenmt - Is there any api/cmdlet available to fetch below information for replicated machine?
Thank you for creating this module. I have AWS instances that we need to shutdown at night. Your module is the only solution that allows me to suspend sync and start again in the AM.
I can run $Email = New-CESession -ProfileName Lab -PassThru fine from PS 5.1, but errors out from PS Core 6.2.3 with:
You cannot call a method on a null-valued expression.
At C:\Users\cwhitmore\Documents\PowerShell\Modules\CloudEndure\2.0.0\CloudEndure.psm1:1139 char:5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You cannot call a method on a null-valued expression.
At C:\Users\cwhitmore\Documents\PowerShell\Modules\CloudEndure\2.0.0\CloudEndure.psm1:1141 char:9
if ($Url.EndsWith("latest"))
~~~~~~~~~~~~~~~~~~~~~~~
Exception calling "GetCookies" with "1" argument(s): "Value cannot be null.
Parameter name: uri"
At C:\Users\cwhitmore\Documents\PowerShell\Modules\CloudEndure\2.0.0\CloudEndure.psm1:1180 char:5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There was an issue retrieving the account summary:
At C:\Users\cwhitmore\Documents\PowerShell\Modules\CloudEndure\2.0.0\CloudEndure.psm1:5492 char:4
throw "There was an issue retrieving the account summary: ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi,
I encounter "The login failed for an unknown reason: 0" when I try to execute the command "New-CESession -Credential (Get-Credential)" any idea where went wrong?
Not so much an issue but more of an education, I'm attempting to creating my new-cesession using -passthru and while doing do i'm running into an issue where it complaining about New-DynamicParameter not being the recognized name of a commandlet. Can you please educate me on where I can find that function please?
Can you please help educate me on how to specify multiple disks in the set-ceblueprint?
set-ceblueprint -InstanceId $machine.id
-IAMRole "Role-EC2-RO" -SubnetIDs "subnet-24f4a44d"
-InstanceType "t2.micro" -SecurityGroupIDs "sg-02729a07736a4b5c8"
-StaticIP DONT_CREATE -PublicIPAction DONT_ALLOCATE
-PrivateIPAction CREATE_NEW -Disks @{type = "SSD"; name = "/dev/sda"}
-Force:$true
}
Happy to submit pull request for adding to the get-help documentation once I can confirm
I have tried to specify blueprint ID and session but no luck. Any ideas?
This also occurs on other commands:
Get-CEMachine
Get-CEMachineRecoveryPoints
Hi Mike
Which command to use for perform cutover for a replication server to AWS (incase of migration).
Invoke-CELaunchTargetMachine
Invoke-CEMachineCutover
I tried both above commands but both fails with an error below
The project 312345af-8b46-42d2-9678-be0f99c5bb74 cannot be reversed.
Please advise
@suri78 Trying to create newproject using New-CEProject but getting error while passing parameter replicationConfiguration where i can find this ID?, could you pls let me know the right parameter used for creating NewProject.
I opened this as a new issue.
Good day: I'm trying to set CE blueprints but I'm having difficulties doing it. Can you show me the proper syntax for setting it?
Below is my statement/error:
set-ceblueprint -instanceid 35a1773e-3acb-471d-af7c-723facaxe9b -InstanceType "t2.micro"
Set-CEBlueprint : Cannot retrieve the dynamic parameters for the cmdlet. The cloud environment 6849e59c-29f5-4e10-a459-9d8584c7524b is not supported by this cmdlet yet.
At line:1 char:1
+ CategoryInfo : InvalidArgument: (:) [Set-CEBlueprint], ParameterBindingException
+ FullyQualifiedErrorId : GetDynamicParametersException,Set-CEBlueprint
Originally posted by @aspersram in #7 (comment)
has anyone had success using the api token to authenticate using the latest round of changes?
New-CEApiToken fails when logged in with username with error "The Argument is Null or Empty". this is caused because $Session is empty. we can add the logic to fetch '$Session' from '$script:Sessions' just like in 'Get-CESession' function.
Is there a way to use these functions with an API token instead of a name/password session?
When using Set-CEBlueprint and you are replicating to AWS, the function fails every time with this message.
Set-CEBlueprint : Cannot retrieve the dynamic parameters for the cmdlet. The cloud environment is not supported by this cmdlet yet. At line:1 char:1
Looking at the function certain items are modified based on the target environment. This is determined by switching the cloud property from the function Get-CETargetCloud. This is a Cloud for my environment. The name of the environment is in the property name. For AWS this includes the region as well. For example "AWS Canada (Central)"
Have established my connection, am able to query and return various result, issue I'm running into is when I go to leverage set-ceblueprint, many of the dynamic parameters such as -IAMRole come back as "a parameter cannot be found that maches parameter name 'IAMRole'. I'm sure its something i'm doing wrong, curious to know what. Thanks for the assist.
@hakenmt - In CloudEndure.psm1 ,Please correct line No. 7204 in Get-CECloudRegion function.
#######Incorrect#########
$Id = $Project.source
#######################
#########Correct#########
$Id = $Project.sourceRegion
#######################
Reason : $Project = Get-CEProject -Id $ProjectId -Session $Session
The project object does not source property instead of that sourceRegion is there.
There are many other issues in the module that I identified myself. I will keep you updated time to time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.