cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BTP CLI Unable to create environment Instance for cloud foundry

afzaalmd926
Discoverer
0 Likes
707

Hi SAP Community,

@dj.adams

I have recently started using BTP cli and I am trying to create cloud foundry environment using BTP cli but getting error.

Note: subaccount target is preset.

I am running following command:

btp create accounts/environment-instance --environment cloudfoundry --plan standard --service cloudfoundry

Error when validating schema parameters: #: required key [instance_name] not found [Error: 11008/400]

FAILED

Following is the list of parameter required for the environment creation:

View Entire Topic
Tristan
Participant
0 Likes

Hi Mohammed,

I haven't checked the documentation, but in the command we used, we specified the instance name. This seems to be the error you are receving. Please compare to this command (don't mind the variables):

  btp create accounts/environment-instance \
  --subaccount "$subaccount_id" \
  --environment "cloudfoundry" \
  --service "cloudfoundry" \
  --plan "standard" \
  --display-name "$environment_display_name" \
  --parameters "{\"instance_name\": \"$cf_instance_name\"}"

Best Regards,

Tristan

afzaalmd926
Discoverer
0 Likes

I was not passing parameters as it was mentioned as optional but when I passed then it works.

btp create accounts/environment-instance --environment cloudfoundry --service cloudfoundry --plan standard --parameters "{\"instance_name\":\"cf-shared\"}"