Skip to main content

In this article you will learn about the new Azure Cloud Optimizer package type, how to create one in TimeXtender Data Orchestration and run it.

When using cloud resources, such as Azure virtual machines and Azure SQL databases, leaving them idle at high resource usage levels, or running at all, when they are not truly needed can quickly become very expensive. The Azure Cloud Optimizer package type for TimeXtender Data Orchestration allows you to create packages that can switch Azure Virtual Machines on or off, and reboot them should that be required, or scale Azure SQL databases up or down, between purchasing models, tiers and the different available capacities. These packages can be run before and after other processes, making sure those processes that need powerful virtual machines running that nothing else uses, or that require databases to process much more data than they otherwise do very quickly, have what they need, but then going back to the less expensive configuration afterwards.

Create a Data Provider

  1. Open up TimeXtender DG Desktop
  2. Click General > Data Providers
  3. Right-click Data Providers, select New -> Data Provider
  4. Type in a Name for your Data Provider
  5. Type in a Description for your Data Provider
  6. Select the Exmon Systems in which your Data Provider should run
  7. Click Data source Type and choose Azure Connection
  8. Type in the Tenant-Id, App Id and the Client Secret from the Azure App Registration
  9. Click Save

Create Azure Virtual Machine package

  1. Click Orchestration
  2. Right-click Packages, select New -> Azure Cloud Optimizer.
  3. Type in a Name for the Azure Cloud Optimizer package.
  4. Select the recently created Data Provider.
  5. Select the appropriate resource type, “Virtual machine start/stop”. This will show the appropriate Configuration panel, and populate the list of Azure virtual machines. Depending on the amount of resources in your Azure subscription this step may take a long time.
  6. Select the virtual machine name you wish to configure the package for.
  7. Select the appropriate operation for the virtual machine, Start, Restart or Shut down.
  8. Click Save, and the package is ready to be run.

Create Azure SQL Database scaling package

  1. Right-click Packages, select New -> Azure Cloud Optimizer.
  2. Type in a Name for the Azure Cloud Optimizer package.
  3. Select the recently created Data Provider.
  4. Select the appropriate Resource Type “Azure SQL database scaling”. This will show the appropriate Configuration panel and populate the list of Azure SQL databases. Depending on the Amount of resources in your Azure subscription this step may take a long time.
  5. Select the SQL database name you wish to configure the package for.
  6. Select the purchasing model you wish to configure the database to (vCore or DTU).
  7. Select the tier you wish to configure the database to (“General Purpose”, “Business Critical” or “Hyperscale” for the vCore purchasing model, “Basic”, “Standard” or “Premium” for the DTU purchasing model.
  8. Select the capacity you wish to change the Database to, depending on the purchasing model and tier, there are different capacities available.
  9. Click Save, and the package is ready to be run.

For advanced users there is an option to write the JSON payload of the REST command to scale the database directly (for information on the parameters that can be configured this way consult the Azure documentation from Microsoft). Note that when a package using custom JSON to scale a database is run the package run is marked as successful once Azure has responded to the scaling REST command with a success code.

Hi,

 

this is really great! I have a few questions:

  • what permissions does the App Registration require?
  • is it possible to choose the Hardware Type for databases? Premium hardware is often required for Hyperscale databases

Reply