Welcome to this series of hands on tutorials from the SAP HANA Academy
I'm Philip Mugglestone
in this series we're covering the SAP Business Technology Platform
in this video tutorial,
we're going to get started with the SAP BTP, Cloud Foundry environment
Now we'll need to have a sub account
that's set up in a suitable provider and
region so that we can actually enable SAP BTP, Cloud Foundry runtime
So the first thing you might want to do
is to go to the SAP Discovery Center, we've seen this previously,
we can actually scroll down and filter by different run times and containers
and then we can see here we've got the SAP BTP, Cloud Foundry runtime.
So it's available in different ways.
For example, as the free plan,
it's available in these regions with this provider on these licensing models.
There are other plans as well, standard etcetera.
So we need to make sure that we've got a sub account
that is in one of these provider and regions.
So let's go ahead and create a sub account for this,
create a new sub account, can give it a name up to you.
I'm gonna do it on a project basis.
I'm going to ensure that the sub domain
is straightforward and simple will be using that later
and then I'm going to choose my provider and region.
So in this case it's going to be an AWS US East
and then we can create.
Now it's also possible to actually have the sub account created
and SAP BTP, Cloud Foundry runtime enabled automatically if you
use one of the boosters,
we've seen that previously, but in this example I'm going to do it all step by step.
Now, once we created our sub account we can select it.
We need to make sure that we've got the entitlements in place effectively the quota
to work with the SAP BTP, Cloud Foundry environment
So I'm gonna choose configure entitlements,
add service plants
and then I'm going to search on
run time
and you can see we've got the SAP BTP, Cloud Foundry runtime
and we have a plan called memory.
This is basically the gigabytes of memory you want available
when you run applications in the SAP BTP, Cloud Foundry runtime.
So I'm going to assign that to this sub account. So I'll add that service plan
and I'll save.
In this case I'll just go with one gigabyte
but depends if you're going to deploy applications,
you might want to increase that to whatever
number of gigabytes you want to have available.
Let's press save.
So we've assigned one out of our 10
global quota of run time for SAP BTP, Cloud Foundry runtime to this sub account.
Then we can go to the overview of the sub account
and you'll see now we've got the option to enable SAP BTP, Cloud Foundry runtime
so that's what we'll do.
Let's click enable SAP BTP, Cloud Foundry runtime
then of course you can choose your plan whether it's
the standard plan or the free plan whatever you want.
I recommend that you keep an instance name that straightforward and make sense.
For example,
maybe I'll just make that cf because
it's going to be the SAP BTP, Cloud Foundry runtime
For the org name.
I highly recommend that you set it to be exactly the same as the sub domain
as we see here of your sub account.
It's particularly important if you're going to deploy multi-10ant
applications so I'm not going to take the default,
I'm going to make sure it's the same as our sub domain
and then we can hit create.
So SAP BTP, Cloud Foundry runtime has now been enabled.
The next thing we need to do is to create a name space,
you can see we can have spaces in the
SAP BTP, Cloud Foundry environment so I'm going to create a space,
you can create any number of these but I'm going to create one, I'll call it death,
I notice that there are different roles available and
by default it will assign those to the user
I'm logged in as so we've got the Space
Manager of space developer potentially the space auditor,
so let's hit create.
So that's the basics of
enabling SAP BTP, Cloud Foundry environment So if we want
we can now create service instances within their for example,
SAP HANA Cloud or we could deploy applications to this environment
and that's where we'll be using that memory,
that runtime quota.
Now if you're going to deploy applications you're gonna need some kind
of tooling you're gonna need for
example the SAP BTP, Cloud Foundry runtime command line interface,
the multi-target application build tool etcetera.
Now the easy way to get started with all of that is to use
the SAP Business Application Studio because all those tools are
basically created and installed by default.
So what we can do is go to our entitlements
and configure and we'll add the service plan for studio,
we'll take the free plan
AD
and safe
and then we can go to our services and instances and subscriptions
and choose create
and what we want to do is subscribe to SAP Business Application Studio again,
using that free plan will create
Now before we actually launch the application, will need to authorize users,
so we'll go to security and then
users
and some role collections have actually been created automatically so we
can just go ahead and assign those to our users.
I'll do it for myself here, so we'll go to role collections
assign role collections I'm going to set myself
up as a SAP Business Application Studio developer and administrator.
So we'll assign those role collections
now that that's been done,
we could actually go ahead and launch
SAP Business Application Studio
so we need to create a dev space,
basically a workspace within SAP Business Application Studio
Don't get confused with the SAP BTP, Cloud Foundry runtime space,
it's really not anything to do with that, it's totally different thing.
This is really just your workspace in
SAP Business Application Studio I'll give it a name,
maybe I'll call it dev and I would recommend that you use the full stack cloud
application profile here because it will basically make
sure that you've got such things as the capitals
and the command line interface for
our founder etcetera already installed. So let's create our dev space
we'll need to wait a few seconds until it's actually started
So once it's running we can then click on the name of our workspace to launch
and then I'm gonna open up my projects folder
and now we're ready to get started.
Now when you're building applications that you will
have hosted on SAP BTP, Cloud Foundry runtime
they'll typically be multi-target application
using no js or java whatever you want,
you might be using the SAP Cloud Application Programming Model you can all
do all of those things from SAP Business Application Studio However,
one thing you will need to do is to
make sure that you actually
get connected to your SAP BTP, Cloud Foundry environment
So if we go to the view menu
and then we look to find a command,
we'll find there's a SAP BTP, Cloud Foundry runtime section
and one of them is that we can log into SAP BTP, Cloud Foundry runtime
now it's going to choose the API URL now by default it's
going to choose based on the
data center where SAP Business Application Studio is running,
which may or may not be where your SAP BTP, Cloud Foundry environment is
if we go back and look at our sub account overall
and then the SAP BTP, Cloud Foundry environment we can see
the API end point so that's the
value we need and actually in this case as they're in the same place
it's correct
so we can use that and then we'll need to put in our credentials
and then it will prompt us
to connect to the SAP BTP, Cloud Foundry runtime organization.
So the one we created was S H A project one and the space
so now we've been logged in and in fact if we open up the terminal
we can then see that we've got
cf command been preinstalled for us.
We've actually done a cf logging but we can do cf t for example to target
and to all the kind of SAP BTP, Cloud Foundry runtime things
you'd want to be able to do,
you can do
and if we look at
cf plugins,
we'll see that the multi apps plugin has been installed for us.
So we've got access to the MTA command.
Got access to the deploy and undeploy that we're using when you work with MTA s
and we've also got access to the M B T, the cloud build command.
So these things have been pre installed for us.
That's a big advantage of using SAP Business Application Studio
and of course these will get called from the menus depending on how you're
building your apps or you can call them from the command line here.
Now if you prefer not to use
SAP Business Application Studio and you want to work maybe locally
maybe using visual studio code or even just a note pad or any text editor,
you can of course do that.
And what I would recommend there
is that you go to the useful links,
click on tools
and then go to cloud
and here you'll find lots of useful things.
You've got links to go download
and install the SAP BTP, Cloud Foundry runtime command line interface
and then you've got some other plug ins,
for example that you may want to go ahead and be using also you can get hold of the
multi-target application SAP BTP, Cloud Foundry runtime plug in
to actually do the buildings of the MTA plug in.
We've also got the multi-target application archive builder
actually that's been replaced by the MBT command that we just saw.
So you've got links here to go ahead actually download and install all of those
things so of course you can do it but you have to do that explicitly
within SAP Business Application Studio it's basically been done for you
now in terms of building applications you have lots of different choices,
you can use the templates, you can use no Js java python whatever you want
and deploy those SAP BTP, Cloud Foundry runtime However,
if you want to get started quickly and easily,
we also have some jumpstart generators available from the SAP HANA Academy
So if we just go to the SAP HANA Academy youtube channel
and then we scroll down
into the extension sweet section,
you'll see that we've got a series covering the extension generators and this will
help you get started building different applications
and how to deploy them to SAP BTP, Cloud Foundry runtime
covers,
CAP the SAP Cloud Application Programming Model
SAP's opinionated approach,
but it also covers using just multi-target application So if you want to
get started very easily actually building
applications that you deployed to SAP BTP, Cloud Foundry runtime
then do come here and take a look at some of these video tutorials.
So in this video tutorial we've seen how we can enable
the SAP BTP, Cloud Foundry environment within a sub account
and we've also set up SAP Business Application Studio
and configured it So that we can actually work with that
SAP BTP, Cloud Foundry environment you can find more video
tutorials on our Youtube channel.
If you'd like to be informed as soon as new video tutorials are published,
then please subscribe.
Thanks for watching.