0:01 foreign [Music]
0:05 [Music]
0:08 today's video is about Cloud billing Concepts
0:09 Concepts
0:10 Cloud billing is a very very important
0:13 topic for this exam and you might expect
0:15 two to three questions from this
0:17 particular area or maybe more depends on
0:20 your set what you get during exam you
0:22 may check out other videos in this playlist
0:23 playlist
0:25 to pass this exam topic for today is
0:27 cloud billing Concepts
0:29 I've already built resource hierarchy in
0:31 our earlier videos
0:34 where we have our nation billing account
0:36 payment profile folder within folder we
0:38 have projects this is we have already done
0:39 done
0:41 today we are going to mainly focus on
0:42 payment profile and billing account
0:44 that's the main major area we want to
0:46 understand because most of the things we
0:48 are already covered the difference
0:49 between payment profile and Google Cloud
0:52 billing account is that this is a Google
0:54 level resource managed payment method
0:57 which can be connected to all Google
1:00 services however this Cloud billing
1:02 account is only for the gcp projects
1:05 wherever it is attached to gcp project resources
1:06 resources
1:09 you can link a billing account to a
1:11 project and that invoice will be
1:14 generated every month you can see here
1:17 uh payment profile is on a Google level
1:20 resource and billing account is a cloud
1:22 level resource
1:24 you can also have multiple billing
1:25 accounts because suppose you want to
1:27 separate the workloads like everyone
1:29 else should pay for their projects ID
1:31 should pay for their projects you can
1:33 have separate billing records for all
1:35 the teams and you can have a parent
1:37 billing account which is connected to
1:40 the your major payment profile which is
1:42 done at the Google level perspective
1:43 from the exam perspective roles are
1:45 really important
1:49 first is domain organization rules
1:52 folders projects projects folders which
1:54 we have already covered today we are
1:56 going to talk about these two things
1:59 these two roles are very important it's
2:01 just billing account admin this billing
2:03 account admin can enable billing export
2:06 view costs and budgets alerts we'll see
2:08 all of these in today's videos
2:11 then we have billing user this user can
2:12 just link projects to Cloud billing
2:14 account but cannot unlink them it is
2:16 usually issued broadly in concern with a
2:18 project creator also creating a project
2:20 you need to connect to a billing account
2:22 then only this will get activated so
2:25 billing user is that role
2:27 then we come to payment profile which is
2:30 again at the Google level or Global in
2:31 fact Beyond Oracle level you can have
2:33 multiple organizations within a payment profile
2:34 profile
2:36 payment profile admin can view and
2:38 manage payment methods make payments
2:40 view invoices and payment accounts let's
2:43 go ahead and see this in action that how
2:45 how we use all billing actions how we
2:48 export the data how we build reports
2:50 around it let's go
2:53 first of all we'll go ahead and choose billing
2:55 billing
2:56 travel menu
3:00 you see when you click billing
3:01 it is asking you to go to the Link
3:03 billing account
3:04 or it will ask you to go to billing
3:07 account because I have linked my earlier
3:08 billing account with this account as
3:10 well it is asking me to go to link
3:12 building account very important concept
3:15 there is no project or organization here
3:17 because you can have one billing account
3:20 attached to multiple organizations or to
3:23 multiple projects that's the very
3:26 important part let's go ahead and check
3:28 the menu one by one first is reports
3:30 when you click on reports this is a kind
3:33 of uh report you'll get that you can
3:35 find out how much your users are costing
3:37 to the company or you want to find out
3:41 how many uh what is the dollars you're
3:43 investing on your
3:47 Cloud migration role okay this is your
3:52 graph area you can save a view for later
3:55 also you can check that how which
3:56 billing account you're looking for you
4:00 can select the date range
4:02 I'm selecting last month and all projects
4:04 projects
4:08 you can see a 139 Rupees is uh you know
4:11 build is for devops dash Dev project
4:14 because I did use this project
4:17 extensively for this thing I'm removing
4:19 promotions just to show you this is how
4:22 graph will be plotted you can see that
4:24 how many projects you are you know this
4:26 is about ordination and folder these
4:28 folders We have created during our
4:30 organization video it is coming here
4:32 all projects whatever we have available
4:35 now it is coming in this projects uh
4:38 drop down list data science Staff Pro
4:40 database step rest of them I have
4:44 deleted for various reasons now this is
4:47 a graph plotted area you want to just
4:50 check that how much uh suppose uh Cloud
4:53 compute engine have costed you you can
4:55 see 139 become 126 rupees which means
4:57 you have just
4:59 used 126 rupees on VM you want to check
5:01 networking networking you have just
5:04 reached 13 rupees you you have to pay
5:06 for Network as well while you transfer
5:08 data from one place to another all
5:10 projects is like all available projects
5:12 then service wise also you can find out
5:15 how much you are paying for storage how
5:18 much for logging this is a place where
5:20 you can filter the cost
5:23 that's the major uh area you need to
5:25 know because when you work you have
5:27 you'll be asked to you know find out how
5:29 much this particular job or this
5:31 particular cluster have costed this is a
5:33 dashboard which will help you to find
5:36 out that you can have cumulative results
5:39 also a line bar multiple projects if you
5:41 have more than one projects you will be
5:43 having multiple data you might need
5:45 tabular data as well so this you go to
5:48 cost table again same report will be
5:49 here but this will be more in the
5:52 tabular format because you might need it
5:54 for Excel you can just export that data
5:57 and put it in Excel for some of your
5:59 reports that's the that's why this cost
6:02 table is there same options are here as
6:05 well you can just filter and get the
6:07 right data cost breakdown will tell you
6:10 that what are the promotions uh benefit
6:12 promotional benefit you got because
6:13 since I'm using my trial account I just
6:18 have everything free till 300 so you can
6:20 see this 139 rupees was costed but the
6:23 actual amount is zero because I got the
6:25 promotion so this credit thing is the
6:28 promotions everything is free you can
6:30 also see what is the percentage of
6:32 promotions you get
6:34 very important part again is building
6:37 creating a budget you don't want to uh
6:39 get surprised by a bill
6:42 for that what we'll do we'll create an
6:44 alert for Budget we'll suggest notification
6:46 notification
6:49 time range could be monthly so whenever
6:52 there is a monthly threshold hit just
6:54 let me know I want to set it for all
6:57 projects all services
7:00 yeah discounted B you can have two
7:03 things either through the last month but
7:06 for me 10 000 Rupees is my monthly
7:10 budget if I exceed that 10 000 rupees I
7:14 want to know okay I might stop using
7:17 Cloud so let let me put that money next actions
7:19 actions
7:22 whenever this 50 budget is achieved 5000
7:24 rupees I should get it triggered so now
7:26 I am aware that I don't have to use very
7:31 excessively and then 90 and 100 I want a
7:33 email alerts to all billing admins these
7:35 are options also there but we will cover
7:38 it later click on finish this will
7:40 create a an alert for me now suppose if
7:43 you want to edit it you can just click
7:46 on that uh hyperlink this will take you
7:48 again to the edit window you can change
7:51 the name change frequency change the
7:53 projects or the services
7:56 also if you want to change the threshold
7:58 which we just set you can change that as
8:01 well some for the purpose selecting all
8:03 the projects which is by default
8:07 selected now I'll come down I can change
8:09 the target amount also percentage if you
8:10 want to know 30 but this is the best
8:13 price like 50 90 100 is the best
8:15 practice you can update it and whenever
8:17 you cross the threshold you will get it
8:20 and alert that's the how you configure it
8:21 it
8:24 next part is billing export whatever
8:25 billing data you are generated
8:28 generating every day you need to export
8:30 itself when you export it to bigquery
8:33 data sets you can write your customized
8:36 queries around it and you may also uh to
8:38 create a very beautiful dashboard using
8:41 looker which will which can be
8:44 distributed to your entire organization
8:45 and everybody can check how much they
8:47 are costing money file export was
8:50 earlier option but it is deprecated now
8:52 only it is possible with
8:54 uh bigquery
8:56 how are we going to configure it uh it's
8:58 very easy first of all you need to
9:01 select the project the best practice is
9:03 that you need to have a separate uh
9:06 project for your storing a billing we'll
9:08 go ahead and just create a separate
9:11 project for this okay
9:15 that we go ahead and go to resources new project
9:16 project
9:20 the project name should be billing let
9:24 me write billing for this so billing is
9:26 the name of the project I need to select
9:28 my billing account which is my billing
9:31 account the name of that account or
9:34 location will be that hit create
9:37 it will create a project called billing
9:40 for me I'll again I'll wait for this to
9:43 be created once it is created
9:45 I'll go back to my
9:48 export window and I'll refresh it and
9:51 see that if it is loading
9:54 yes you can see that billing project is
9:56 available here I'll select the billing
9:59 now I need to create a data set data set
10:02 is kind of uh database for bigqueries
10:05 which will help you to create tables
10:07 inside it and store your data I'll say
10:12 that database ID is billing Dash export
10:14 and then you have data location you can
10:18 select as uh relevant to you
10:20 uh the bit there's no dash is not
10:22 allowed let me click click on create
10:25 data set this will create the data set
10:27 where this will be automatically
10:29 exported and select the billing export
10:31 hit it create
10:34 this will create a data set for me and
10:38 uh you know set that sync every night so
10:40 first is standard uses cost standard use
10:43 is basically just around the minimal
10:50 report detail use export basically it
10:53 analyzes cost of the resource level and
10:56 identify specific resources that might
10:58 be driving up the cost so I'll also set
11:00 up the in detail
11:04 users report again that's how you can
11:07 see that when you come to the bigquery
11:10 in the building project you can see in
11:12 bigquery there is a data set created
11:16 billing export so every night what gcp
11:20 will do all Google Cloud uh your cost
11:23 will be exported to this data set you
11:27 can run your SQL queries you can be uh
11:30 you know expert of SQL or you somebody
11:34 is I need to be to get create customized
11:36 queries like that the dashboard which we
11:39 saw might not be solving your purpose
11:42 you can have your customized uh queries
11:46 right that's how you export it to
11:49 bigquery in just a few clicks right
11:52 that's also again one of the key feature
11:54 of DCP billing
11:58 you export things here run things over here
11:59 here
12:03 right now yeah we saw reports so there
12:05 are two ways to do it you can check your
12:09 bills here or you can go to bigquery and
12:10 check your bills here by running few
12:13 queries the third option is looker
12:16 initially it was called Data Studio but
12:18 it is like debranded and merged with
12:22 looker looker is a you know bi tool
12:24 which helps you to create beautiful
12:27 dashboards okay you can and bigquery can
12:30 the database you just exported can be
12:33 your uh data data source so you will
12:35 read the data from there create a
12:37 beautiful dashboards something like this
12:41 on data Studio looker and hand over that
12:44 to your teams yeah these three ways you
12:47 can see and see them now let's next
12:49 point I wanted to talk about these rules
12:51 these roles are really important for the
12:53 exam perspective you need to know what
12:55 billing account Creator can do at what
12:58 level what an administrator can do at
13:01 what level you will get questions around
13:04 these four or five roles and you you
13:06 must review them before you go for the
13:08 exam uh what about billing account
13:11 viewer what is a user can do because
13:13 these will be all use case based
13:15 questions that how what in which
13:17 situation which rule you will be
13:20 providing make sure that you go through
13:22 this particular documentation before you
13:25 go for the exams all right this is uh
13:30 all sort of possibilities what you need
13:32 to do around billing account and billing
13:35 account management
13:42 now I'll go ahead and click on billing I
13:44 will click on manage billing accounts
13:47 why because suppose I want to change a
13:49 Project's billing account to some other
13:50 billing accounts suppose I have multiple
13:52 billing accounts so I'll click on my
13:55 projects in my projects I'll go to
13:58 actions in here I can change the billing
13:59 account I can disable the billing
14:01 account I can lock the billing cards
14:03 right I'll click on change billing I
14:05 don't have multiple billing accounts if
14:08 I have I'll be I can choose from one of
14:11 the available option and that's how you
14:12 can disable the billing and log the
14:14 billing as well so you won't you can
14:16 stop everybody to use that particular
14:20 project that's how you uh you know
14:23 manage Billing at an org level hope you
14:25 like the video
14:26 consider subscribing to the channel