Documentation

How do I get the data for my own Azure subscription?

To link your own existing Azure subscription in the Cloud Resource License, you must create a Service Principal in the Azure Portal. This “Service Principal” is a “key” with which oneclick™ gets access to the resources created in Azure. The data read out via the “Service Principal” can then be entered in oneclick™.

Create “Service Principal”

  1. Open the Azure Portal and log in with your Azure credentials.
  2. Click on to open the Azure CLI (command interface).
  3. When you open the Azure Cloud Shell (Azure CLI) for the first time, please select Bash.
  4. Confirm that a storage is being created. This storage is required for a temporary virtual machine. This machine will be deprovisioned when you stop using the Azure Cloud Shell.
    As soon as this installation has been completed, you have access to your command interface (Azure CLI).
  5. Enter the following command in the command line:
    az ad sp create-for-rbac --years 2

    A Service Principal with a validity of 2 years is created. After two years you need a new “Service Principal”.

    You get an output that looks something like this:

    Retrying role assignment creation: 1/36
    {
       "appId": "d45854t5-6t58-4a3e-975b-4c8b2c371d4c",
       "displayName": "azure-cli-2019-03-26-10-75-05",
       "name": "http://azure-cli-2019-03-26-10-75-05",
       "password": "fb4cf13d-c569-4b67-8886-4afce29ef46",
       "tenant": "e8b8dcca-ea59-4a81-9de2-1ccff6dfb69b"
    }
  6. Enter the content in the row “tenant” in the field “Tenant ID” in oneclick™ .
  7. Enter the content in the row “appId” in the field “Client ID” in oneclick™.
  8. Enter the content in the row “password” in the field “Client-Secret” in oneclick™.
  9. To get the “Subscription ID” please execute the following command in the Azure CLI:
    az account show

    You get an output that looks something like this:

    {
       "environmentName": "AzureCloud",
       "id": "c2dda79e-032c-449b-bd8d-a4461bdc395a",
       "isDefault": true,
       "name": "Microsoft Azure",
       "state": "Enabled",
       "tenantId": "e8d8dcda-ea69-4a81-9de2-1ccff6dfb69b",
       "user": {
          "cloudShellID": ture,
          "name": ",
          "type": "user"
       }
    }
  10. Enter the content in the row “id” in the field “Subscription ID” in oneclick™.
  11. To enable oneclick™ to provision virtual machines via the Cloud Resource Manager, the following command must also be executed on the command line:
    az provider register -n microsoft.network && az provider register -n microsoft.compute && az provider register -n microsoft.resources
  12. Now you have all the parameters to create the license in oneclick™ .
  13. Once your license is active, create a virtual machine next.

Was this helpful?