|
|
Для управления облаком Microsoft Azure необходимо иметь соответствующую учетную запись и хотя бы одну привязанную подписку (Subscription). | To rule the Microsoft Azure cloud, you need an account and at least a single Subscription connected to id. |
Для управления ресурсами в облаке Microsoft Azure средствами Deckhouse необходимо создать service account. Для этого:
| You have to create a service account with Microsoft Azure so that Deckhouse can manage cloud resources:
|
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”, <– используется в параметре clientId ресурса AzureClusterConfiguration “displayName”: “DeckhouseCANDI”, “password”: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”, <– используется в параметре clientSecret ресурса AzureClusterConfiguration “tenant”: “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx” <– используется в параметре tenantId ресурса AzureClusterConfiguration } | 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 } |
|
|
Для дальнейшей работы с утилитой | You have to be logged in for further work with the |
shell
az login –service-principal -u | shell
az login –service-principal -u |