[MUSIC] Hello and welcome. In this demonstration I will show you how you can work with capacity reservations so let's get started. As you can see currently I'm in the OCI console and I am logged in using the computeadmin user. So to go to the Capacity Reservations, click on the hamburger menu, click on compute, under Compute click on Capacity Reservations. So this is the page from where you can create a Capacity reservation. We know that Capacity reservations enable us to reserve instances so that capacity is available for your workloads when you need it. So before creating a Capacity reservation let me show you the policies that you need to add. So I'm currently logged in as the computeadmin user. And the computeadmin user is added to the computeadmins group and I have written these two policies. Allow group computeadmins to use compute-capacity-reservations in tenancy. And allow group computeadmins to manage compute-capacity-reservations in tenancy. You need to add these policies in the identity and access management service before using capacity reservations. So now let me create a Capacity reservation. So let me call it ocicapacityreservation. I can specify a compartment. I have to select an availability domain, let me select AD.1. I can also make this reservation the default for this particular availability domain. But in order for you to do that you must be in the root compartment. So currently I am an archassociate-compartment and hence I will not be able to select this particular option. But if you make this reservation the default any instance that is launched in this particular availability domain for this particular tenancy regardless of the compartment will use the default reservation. Now if you select this particular option, the capacity from the default reservation is going to be used for all the compatible instances that is going to be launched in AD.1 this particular availability domain. So let me click on next, so this is where I can add the capacity configurations. So I can select the FAULT.DOMAIN.1 and I can select the shape. Let me select VM.Standard 1.1. And I can specify the count over here, so let me specify 3. I can also add another shape, I can select the FAULT.DOMAIN.1 FD1. And then I can select VM.Standard.E4.Flex and the count I can specify is 2. Let me click on next. So in this page you can review the details of capacity reservation for example we selected Availability domain AD.1. The compartment is archassociate compartment. And under capacity reservations you can see that we have selected 2 instance types, VM.Standard 1.1 and VM.Standard E4.Flex. And these are the requested capacity numbers. Let me click on Create. So it is currently CREATING the ocicapacityreservation and you can now see that it is currently ACTIVE. Just want to highlight a couple of things here. So under Resources if you go to Capacity configurations you can see the Reserved capacity and the Used capacity. So currently these are the numbers when it comes to Reserved capacity VM.Standard E4.Flex. So I have made the reservation for 2 instances and VM.Standard1.1 the Reserved capacity is 3, Used capacity is 0 for both the instance types. Now let me create an instance. So if I click on Created instances, click on Created instance I am okay with the default. And as you can see under the Placement, if I click on show advanced options, the Capacity type is Capacity reservation and not On-demand or Preemptible. By default it automatically select this particular Capacity reservation. Now if you come to Image and shape, under the shape, if I click on Change shape. If I click on AMD you can see that the Shape name is VM.Standard.E4.Flex. And it says that the capacity reservation you selected has available capacity in the following configurations for this particular shape and there are 2 remaining. Remember that we created capacity reservation for this particular shape so we can select this. The other thing that I want to show you is if I go to a Specialty and previous generation then you can see this warning message. This warning message basically means that this capacity reservation that I have selected doesn't have a configuration for this particular shape. You remember we selected VM.Standard1.1 and hence I can go ahead and launch this particular instance. So let me go ahead and select this shape. And then rest of everything remains the same. I'm not going to provide any SSH keys as they will not be connecting to the instance using SSH. So let me click on Create. So the instance is currently PROVISIONING. It is using the Capacity reservation as the Capacity type and this is the reservation. And if you scroll down you can see the Shape configuration VM.Standard1.1. In the meantime, if I go to Compute and click on Capacity Reservations, click on ocicapacityreservation. This is what I wanted to show you. Now you can see that for this particular instance type, the Reserved capacity is 3 and the Used capacity is 1. Now let me show you one more thing. First, you need to understand that there is something called Capacity reservation that we created. And inside the Capacity reservation we have Capacity configurations. So if I try to edit the capacity configuration, you see that I cannot change the FAULT.DOMAIN.1 and the Shape. But what I can do, I can specify a count that is greater than or equal to the number of instances that is currently created in this configuration. So in this configuration currently there is 1 instance created. So initially the count was 3 so I can make it 2. Initially you see it was 3, Used was 1. And now after this capacity reservation is UPDATED, the Reserved capacity would change to 2 and the Used capacity will still be 1. So I'll just wait for this operation to complete and as you can see the Reserved capacity is 2 and the Used capacity is 1. Now if I want I can also edit it and I can make it 4. Now you see that it is again UPDATING and in sometime the Reserved capacity for this VM.Standard1.1 instance type is going to be 4. So there you go, now you see it is 4. Now you can Add the capacity configuration at any point of time, for example I can select FAULT.DOMAIN.1, I can select this particular Shape. And then I can specify the count. Click on Add configuration. So you'll now see that another instance type has been added in the Capacity configurations. And currently it is UPDATING in some time you will see the Reserved capacity. So now you can see that I have added another capacity configuration, so now I have 3 capacity configurations. If I go to the Created instances under the Resources I will be able to see all the instances that match the Capacity configurations. Now the final thing that I want to show you is, in case I want this particular instance to move out of a Capacity reservation, how will I do that? So if I go to the instance, click on Edit. Click on, show advanced options. Under Placement, I can just remove this, Apply a capacity reservation and click on Save changes. Now, the moment you do this, if I return back to the Capacity reservations. So now you see that the Used capacity for all the instance types is 0. And if I again go to the Created instances I will not be able to see any instance. But if I go to the Compute, click on Instances. You see that this instance is RUNNING, but currently the Capacity type is On-demand. Similarly, if you want to move the instances into the capacity reservation again, you can click on Edit. Show advanced options, click on Placement, Apply capacity reservation and select the Capacity reservation. Click on Save changes. So that is how you move the instances into and out of a Capacity reservation. So just to confirm if I go to the Capacity reservations now, again, you see the Used capacity becomes 1. So this marks the end of this particular demonstration where we looked at Capacity reservations. I hope you found this demo useful. Thanks for watching.