Skip to Content

Create a Redis Cache in Your Azure Account

test
0 %
Create a Redis Cache in Your Azure Account
Details
// Explore More Tutorials

Create a Redis Cache in Your Azure Account

To deploy the service broker application, you must create and configure a Redis Cache in your Azure Account.

You will learn

  • How to create a Redis Cache
  • How to create a service principal


Step 1: Set up resource provider

The service broker uses Redis as a backing service, so you’ll have to set up Redis Cache. The easiest way to do this is using the Azure Cloud Shell you have initially configured.

Verify if there is already a so-called resource provider Microsoft.Cache by issuing the following command:

az provider show -n Microsoft.Cache -o table
resource provider not yet registered

If you get a Not Registered as RegistrationState, you don’t have a resource provider. If this is the case, go on and register it:

az provider register --namespace Microsoft.Cache

This might take some time. You can check the process by running the provider show command in the Azure Cloud Shell.

az provider show -n Microsoft.Cache -o table
resource provider is now registered
Log on to answer question
Step 2: Create resource group

In Azure, you group resources in so-called resource groups.

If you are attending SAP TechEd on site and are using the provided Azure credentials, you don’t need to do anything. The preconfigured resource group is called SAPTechEd.

The first thing to do is to create a resource group. Call the resource group **SAPTechEd** and locate it in West Europe.

az group create -l westeurope -n SAPTechED
resource group created
Log on to answer question
Step 3: Create Redis Cache

It’s time now to create the backing service for the service broker in the form of a Redis Cache.

Execute the following command in the Azure Cloud Shell:

Replace <unique-cache-name> with a globally unique technical name for the Redis Cache of your choice.

az redis create -n <unique-cache-name> -g SAPTechEd -l WestEurope --sku Standard --vm-size C1
redis cache created
Where is the Redis Cache logically bundled?
×
Step 4: Create a service principal

Once you have deployed the service broker to your Cloud Foundry space, a so-called service principal is necessary to let your service broker running on SAP Cloud Platform provision resources in Azure. This is usually done by an account owner or administrator and not done by any developer.

If you are attending SAP TechEd on site and are using the provided Azure credentials, the SAP staff as owner of your account has already created a service principal. You don’t need to anything, and the SAP Staff will provide you with the necessary information for the following tutorials.

Create a service principal by executing the following command in the Azure Cloud Shell:

az ad sp create-for-rbac
set up service principal

IMPORTANT: Take a screenshot of the output in the Azure Cloud Shell or copy the information to a text document as you will need the attribute values in the next tutorial.

TROUBLESHOOTING: If your user doesn’t have sufficient privileges to execute this command, please contact your administrator.

Log on to answer question

Next Steps

Back to top