on ‎2023 May 02 8:21 AM
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:

Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.