This commit is contained in:
Oliver Dolk 2019-01-22 14:02:32 -08:00 коммит произвёл GitHub
Родитель a53b754591
Коммит 39ff2614dd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -21,15 +21,11 @@ cli_ctx = get_default_cli()
profile = Profile(cli_ctx=cli_ctx)
creds, _, _ = profile.get_login_credentials(subscription_id=None)
# Create an organization manager and user manager using your credentials
# Create an organization manager using your credentials
organization_manager = OrganizationManager(creds=creds)
user_manager = UserManager(creds=creds)
# Get your user id
userid = user_manager.get_user_id()
# Get the list of organizations for your user
organizations = organization_manager.get_organizations(userid.id)
organizations = organization_manager.list_organizations()
# Show details about each organization in the console
for organization in organizations: