Caution! Only regions where | Внимание! Поддерживаются только регионы, в которых доступны |
To rule the Microsoft Azure cloud, you need an account and at least a single Subscription connected to id. | Для управления облаком Microsoft Azure необходимо иметь соответствующую учетную запись и хотя бы одну привязанную подписку (Subscription). |
You have to create a service account with Microsoft Azure so that Deckhouse can manage cloud resources:
| Для управления ресурсами в облаке Microsoft Azure средствами Deckhouse необходимо создать service account. Для этого:
|
shell export SUBSCRIPTION_ID=$(az login | jq -r ‘.[0].id’) | shell export SUBSCRIPTION_ID=$(az login | jq -r ‘.[0].id’) |
|
|
shell az ad sp create-for-rbac –role=”Contributor” –scopes=”/subscriptions/$SUBSCRIPTION_ID” –name “DeckhouseCANDI” | shell az ad sp create-for-rbac –role=”Contributor” –scopes=”/subscriptions/$SUBSCRIPTION_ID” –name “DeckhouseCANDI” |
Example output of the command: | Пример вывода команды: |
console { “appId”: “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx”, <– used in the clientId parameter of the AzureClusterConfiguration resource “displayName”: “DeckhouseCANDI”, “password”: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”, <– used in the clientSecret parameter of the AzureClusterConfiguration resource “tenant”: “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx” <– used in the tenantId parameter of the AzureClusterConfiguration resource } | console { “appId”: “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx”, <– используется в параметре clientId ресурса AzureClusterConfiguration “displayName”: “DeckhouseCANDI”, “password”: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”, <– используется в параметре clientSecret ресурса AzureClusterConfiguration “tenant”: “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx” <– используется в параметре tenantId ресурса AzureClusterConfiguration } |
|
|
You have to be logged in for further work with the | Для дальнейшей работы с утилитой |
shell
az login –service-principal -u | shell
az login –service-principal -u |