Connect your account
To use our CaaS on Azure, you need to create a projet and provide rights to our CaaS. We will create infrastructure resources in that project. We don't need a global access to your account, only to one project (which is good for security). So, you can configure other services like a managed database in your Azure account, we will not see them.
After the connection of your Azure account, ScaleDynamics will create and manage resources in one of your project of your account. You should not modify, create, or delete these resources to avoid non deterministic behaviors of the ScaleDynamics platform. To interact with ScaleDynamics, please use only our SDK command lines or our console (http://console.scaledynamics.com).
To connect a Azure account, you need to gather several information on your side: a cliendId, a tenantId, a secret, a resourceGroup and a subscriptionId.
Connect to your Azure console
First, connect to Azure portal using your credentials.
Create a scaledynamics-caas application and get cliendId and tenantId
As a first step you have to create a 'scaledynamics-caas' application.
On the top search bar type 'app registrations' and click on 'App registrations' icon.
Then, click on '+ New registration', set application name to 'scaledynamics-caas'. Be sure the account type is selected on 'Accounts in this organizational directory only (scaledynamics.com only - Single tenant)'. Then Click on 'Register' button.
After the creation, in the details of the application, you'll get the 'Application (client) ID' you will use for cliendId, and 'Directory (tenant) ID' you will use for tenantId.
On the left side bar, click on 'Certificates and secrets', then click on '+ New client secret'. Set the description to 'scaledynamics-api', and choose the expiration. Click on 'Add' button.
On the Certifacte view, you will see for 'scaledynamics-api' 'Value' and 'Secret ID'. Use 'Value' as the secret to use for the connector (not the 'Secret ID')
Create a 'scaledynamics-group' resource group and get resourceGroup
On the top search bar type 'resource groups' and click on 'Resource groups' icon.
Then, click on '+ Create', set application name to 'scaledynamics-group'. Then Click on 'Review + create' button.
After the validation, on the next panel click on 'Create' button.
Back of the resource groups page, click on 'scaledynamics-group' on the left, on the panel click on 'Access control (IAM)', and click on 'Add role assignment' button.
Then you'll have multiple steps.
In 'Assignment type' view, select the 'Priviledge administrator roles', then click on 'Next' button
In 'Role' view, Select the 'Owner' role, then click on 'Next' button
In 'Members' view, Click on 'select member', in the select box, type 'scaledynamics-caas' click on the icon and 'select' button.
Then, click on 'Review + assign' button.
Now you can use 'scaledynamics-group' as the resourceGroup
To get the subscriptionId, click on the 'overview' of the 'scaledynamics-group'. You will get the 'Subscription ID' to use as the subscriptionId
Create the connector
On the ScaleDynamics console, select the 'cloud connectors' tab, then click on the '+ Cloud connector'. Select Azure. If it is the first time you add a Azure connector, for security reasons the owner will be invited to enable Azure provider cloud for the organzation.
Then, give a name and an optional description to your connector
At last, fill cliendId, tenantId, secret, resourceGroup and subscriptionId. Set an optional peremption date and click on 'Create' button.