Git Product home page Git Product logo

cloudendure's People

Contributors

hakenmt avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cloudendure's Issues

Unable to run in PS Core 6.2.3

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

  • ... [System.String]$Url = $Result.BaseResponse.ResponseUri.To ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
  • CategoryInfo : InvalidOperation: (:) [], RuntimeException
  • FullyQualifiedErrorId : InvokeMethodOnNull

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"))
    
  •                 ~~~~~~~~~~~~~~~~~~~~~~~
    
  • CategoryInfo : InvalidOperation: (:) [], RuntimeException
  • FullyQualifiedErrorId : InvokeMethodOnNull

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

  • ... [System.Net.CookieCollection]$Cookies = $WebSession.Cooki ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
  • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
  • FullyQualifiedErrorId : ArgumentNullException

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: ...
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
  • CategoryInfo : OperationStopped: (There was an issue \u2026e account summary: :String) [], RuntimeException
  • FullyQualifiedErrorId : There was an issue retrieving the account summary:

unable to login

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?

New-DynamicParameter

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?

set-ceblueprint (multiple disks)

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

Command for test/cutover

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

NewProject Issue

@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?

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

  • set-ceblueprint -instanceid 35a1773e-3acb-471d-af7c-723facaxe95b -Ins ...
  •   + CategoryInfo          : InvalidArgument: (:) [Set-CEBlueprint], ParameterBindingException
      + FullyQualifiedErrorId : GetDynamicParametersException,Set-CEBlueprint
    
    

Originally posted by @aspersram in #7 (comment)

auth using api token

has anyone had success using the api token to authenticate using the latest round of changes?

New-CEApiToken Fails because $Session is empty

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.

Set-CEBlueprint fails for AWS

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)"

set-ceblueprint where are the parameters

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.

Get-CECloudRegion Error

@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.

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.