RBAC/Graph: Application and ServicePrincipal create, list & show (#664)

This commit is contained in:
Yugang Wang 2016-08-09 15:07:39 -07:00 коммит произвёл GitHub
Родитель dde4dc008a
Коммит 6b906d6b49
10 изменённых файлов: 1385 добавлений и 121 удалений

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

@ -180,6 +180,7 @@
<Compile Include="command_modules\azure-cli-role\azure\cli\command_modules\role\_help.py">
<SubType>Code</SubType>
</Compile>
<Compile Include="command_modules\azure-cli-role\azure\cli\command_modules\role\tests\test_graph.py" />
<Compile Include="command_modules\azure-cli-storage\azure\cli\command_modules\storage\_command_type.py" />
<Compile Include="command_modules\azure-cli-storage\azure\cli\command_modules\storage\_factory.py" />
<Compile Include="command_modules\azure-cli-storage\azure\cli\command_modules\storage\_help.py">
@ -612,9 +613,7 @@
<Content Include="command_modules\azure-cli-resource\azure\cli\command_modules\resource\tests\simple_deploy.json" />
<Content Include="command_modules\azure-cli-resource\azure\cli\command_modules\resource\tests\simple_deploy_parameters.json" />
<Content Include="command_modules\azure-cli-resource\requirements.txt" />
<Content Include="command_modules\azure-cli-role\azure\cli\command_modules\role\tests\recordings\expected_results.res" />
<Content Include="command_modules\azure-cli-role\azure\cli\command_modules\role\tests\recordings\test_role_assignment_scenario.yaml" />
<Content Include="command_modules\azure-cli-role\azure\cli\command_modules\role\tests\recordings\test_role_scenario.yaml" />
<Content Include="command_modules\azure-cli-role\README.rst" />
<Content Include="command_modules\azure-cli-role\requirements.txt" />
<Content Include="command_modules\azure-cli-storage\requirements.txt" />

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

@ -42,10 +42,6 @@ username_type = CliArgumentType(
help='Organization id or service principal'
)
sp_name_type = CliArgumentType(
options_list=('--name', '-n')
)
register_cli_argument('login', 'password', password_type)
register_cli_argument('login', 'service_principal', service_principal_type)
register_cli_argument('login', 'username', username_type)
@ -55,6 +51,3 @@ register_cli_argument('logout', 'username', username_type,
help='account user, if missing, logout the current active account')
register_cli_argument('account', 'subscription_name_or_id', subscription_name_or_id_type)
register_cli_argument('account create-sp', 'name', sp_name_type)
register_cli_argument('account reset-sp-credentials', 'name', sp_name_type)

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

@ -4,19 +4,9 @@
#---------------------------------------------------------------------------------------------
# pylint: disable=too-few-public-methods,too-many-arguments,no-self-use
#TODO: update adal-python to support it
#from azure.cli._debug import should_disable_connection_verify
import datetime
import uuid
from dateutil.relativedelta import relativedelta
from adal.adal_error import AdalError
from azure.graphrbac.models import (ApplicationCreateParameters,
ApplicationUpdateParameters,
PasswordCredential)
from azure.graphrbac import GraphRbacManagementClient
from azure.cli._profile import Profile
from azure.cli._util import CLIError
import azure.cli._logging as _logging
@ -81,85 +71,3 @@ def list_location():
from azure.cli.commands.parameters import get_subscription_locations
return get_subscription_locations()
def create_service_principal(name=None, secret=None, years=1):
'''create a service principal you can use with login command
:param str name: an unique uri. If missing, the command will generate one.
:param str secret: the secret used to login. If missing, command will generate one.
:param str years: Years the secret will be valid.
'''
start_date = datetime.datetime.now()
app_display_name = 'azure-cli-' + start_date.strftime('%Y-%m-%d-%H-%M-%S')
if name is None:
name = 'http://' + app_display_name
key_id = str(uuid.uuid4())
end_date = start_date + relativedelta(years=years)
secret = secret or str(uuid.uuid4())
app_cred = PasswordCredential(start_date, end_date, key_id, secret)
app_create_param = ApplicationCreateParameters(False, app_display_name,
'http://'+app_display_name, [name],
password_credentials=[app_cred])
profile = Profile()
cred, _, tenant = profile.get_login_credentials(for_graph_client=True)
client = GraphRbacManagementClient(cred, tenant)
#pylint: disable=no-member
aad_application = client.applications.create(app_create_param)
aad_sp = client.service_principals.create(aad_application.app_id, True)
_build_output_content(name, aad_sp.object_id, secret, tenant)
def reset_service_principal_credential(name, secret=None, years=1):
'''reset credential, on expiration or you forget it.
:param str name: the uri representing the name of the service principal
:param str secret: the secret used to login. If missing, command will generate one.
:param str years: Years the secret will be valid.
'''
profile = Profile()
cred, _, tenant = profile.get_login_credentials(for_graph_client=True)
client = GraphRbacManagementClient(cred, tenant)
#pylint: disable=no-member
#look for the existing application
query_exp = 'identifierUris/any(x:x eq \'{}\')'.format(name)
aad_apps = list(client.applications.list(filter=query_exp))
if not aad_apps:
raise CLIError('can\'t find a graph application matching \'{}\''.format(name))
#no need to check 2+ matches, as app id uri is unique
app = aad_apps[0]
#look for the existing service principal
query_exp = 'servicePrincipalNames/any(x:x eq \'{}\')'.format(name)
aad_sps = list(client.service_principals.list(filter=query_exp))
if not aad_sps:
raise CLIError('can\'t find an service principal matching \'{}\''.format(name))
sp_object_id = aad_sps[0].object_id
#build a new password credential and patch it
secret = secret or str(uuid.uuid4())
start_date = datetime.datetime.now()
end_date = start_date + relativedelta(years=years)
key_id = str(uuid.uuid4())
app_cred = PasswordCredential(start_date, end_date, key_id, secret)
app_create_param = ApplicationUpdateParameters(password_credentials=[app_cred])
client.applications.patch(app.object_id, app_create_param)
_build_output_content(name, sp_object_id, secret, tenant)
def _build_output_content(sp_name, sp_object_id, secret, tenant):
logger.warning("Service principal has been configured with name: '%s', secret: '%s'",
sp_name, secret)
logger.warning('Useful commands to manage azure:')
logger.warning(' Assign a role: "az role assignment create --assignee %s --role Contributor"',
sp_object_id)
logger.warning(' Log in: "az login --service-principal -u %s -p %s --tenant %s"',
sp_name, secret, tenant)
logger.warning(' Reset credentials: "az account reset-sp-credentials --name %s"',
sp_name)

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

@ -12,9 +12,7 @@ from .custom import (login,
list_location,
list_subscriptions,
set_active_subscription,
account_clear,
create_service_principal,
reset_service_principal_credential)
account_clear)
cli_command('login', login)
cli_command('logout', logout)
@ -24,6 +22,3 @@ cli_command('account set', set_active_subscription)
cli_command('account clear', account_clear)
cli_command('account list-location', list_location)
cli_command('account create-sp', create_service_principal)
cli_command('account reset-sp-credentials', reset_service_principal_credential)

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

@ -4,11 +4,32 @@
#---------------------------------------------------------------------------------------------
#pylint: disable=line-too-long
import azure.cli.commands.parameters #pylint: disable=unused-import
from azure.cli.commands import CliArgumentType
from azure.cli.commands import register_cli_argument
register_cli_argument('ad app', 'application_object_id', options_list=('--object-id',))
register_cli_argument('ad app', 'app_id', help='application id')
register_cli_argument('ad app', 'display_name', help=' the display name of the application')
register_cli_argument('ad app', 'homepage', help='the url where users can sign in and use your app.')
register_cli_argument('ad app', 'identifier', options_list=('--id',), help='identifier uri, application id, or object id')
register_cli_argument('ad app', 'identifier_uris', nargs='+', help='space separated unique URIs that Azure AD can use for this app.')
register_cli_argument('ad app', 'reply_urls', nargs='+',
help='space separated URIs to which Azure AD will redirect in response to an OAuth 2.0 request. The value does not need to be a physical endpoint, but must be a valid URI.')
register_cli_argument('ad app', 'start_date', help='the start date after which password or key would be valid. Default value is current time')
register_cli_argument('ad app', 'end_date', help='the end date till which password or key is valid. Default value is one year after current time')
register_cli_argument('ad app', 'key_value', help='the value for the key credentials associated with the application')
register_cli_argument('ad app', 'key_type', choices=['AsymmetricX509Cert', 'Password', 'Symmetric'], default='AsymmetricX509Cert',
help='the type of the key credentials associated with the application')
register_cli_argument('ad app', 'key_usage', choices=['Sign', 'Verify'], default='Verify',
help='the usage of the key credentials associated with the application.')
sp_name_type = CliArgumentType(
options_list=('--name', '-n')
)
register_cli_argument('ad sp', 'identifier', options_list=('--id',), help='service principal name, or object id')
register_cli_argument('ad sp create', 'identifier', options_list=('--id',), help='identifier uri, application id, or object id of the associated application')
register_cli_argument('ad sp create-for-rbac', 'name', sp_name_type)
register_cli_argument('ad sp reset-credentials', 'name', sp_name_type)
register_cli_argument('ad', 'display_name', help='object\'s display name or its prefix')
register_cli_argument('ad', 'identifier_uri',
help='graph application identifier, must be in uri format')
@ -18,6 +39,7 @@ register_cli_argument('ad', 'query_filter', options_list=('--filter',), help='OD
register_cli_argument('ad user', 'mail_nickname',
help='mail alias. Defaults to user principal name')
register_cli_argument('ad user', 'force_change_password_next_login', action='store_true')
register_cli_argument('role assignment', 'role_assignment_name',
options_list=('--role-assignment-name', '-n'))
register_cli_argument('role assignment', 'role', help='role name or id')

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

@ -2,20 +2,33 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#---------------------------------------------------------------------------------------------
import datetime
import json
import re
import os
import uuid
from dateutil.relativedelta import relativedelta
import dateutil.parser
from azure.cli._util import CLIError, todict, get_file_json
import azure.cli._logging as _logging
from azure.cli.help_files import helps
from azure.cli.commands.client_factory import get_mgmt_service_client, configure_common_settings
from azure.mgmt.authorization import AuthorizationManagementClient
from azure.graphrbac import GraphRbacManagementClient
from azure.mgmt.authorization.models import (RoleAssignmentProperties, Permission, RoleDefinition,
RoleDefinitionProperties)
from azure.graphrbac.models import UserCreateParameters, PasswordProfile
from azure.graphrbac import GraphRbacManagementClient
from azure.graphrbac.models import (ApplicationCreateParameters,
ApplicationUpdateParameters,
PasswordCredential,
KeyCredential,
UserCreateParameters,
PasswordProfile)
logger = _logging.get_az_logger(__name__)
_CUSTOM_RULE = 'CustomRole'
@ -332,6 +345,189 @@ def list_groups(client, display_name=None, query_filter=None):
return client.list(filter=(' and ').join(sub_filters))
def create_application(client, display_name, homepage, identifier_uris, #pylint: disable=too-many-arguments
available_to_other_tenant=False, password=None, reply_urls=None,
key_value=None, key_type=None, key_usage=None, start_date=None,
end_date=None):
password_creds, key_creds = _build_application_creds(password, key_value, key_type,
key_usage, start_date, end_date)
app_create_param = ApplicationCreateParameters(available_to_other_tenant, display_name,
homepage, identifier_uris, reply_urls,
key_creds, password_creds)
return client.create(app_create_param)
def update_application(client, identifier, display_name=None, homepage=None, identifier_uris=None,#pylint: disable=too-many-arguments
password=None, reply_urls=None, key_value=None, key_type=None,
key_usage=None, start_date=None, end_date=None):
object_id = _resolve_application(client, identifier)
password_creds, key_creds = _build_application_creds(password, key_value, key_type,
key_usage, start_date, end_date)
app_patch_param = ApplicationUpdateParameters(display_name, homepage, identifier_uris,
reply_urls, key_creds, password_creds)
return client.patch(object_id, app_patch_param)
def show_application(client, identifier):
object_id = _resolve_application(client, identifier)
return client.get(object_id)
def delete_application(client, identifier):
object_id = _resolve_application(client, identifier)
client.delete(object_id)
def _resolve_application(client, identifier):
try:
uuid.UUID(identifier)
result = list(client.list(filter="appId eq '{}'".format(identifier)))
except ValueError:
result = list(client.list(filter="identifierUris/any(s:s eq '{}')".format(identifier)))
#identifier is unique, no need to verify multiple matches.
return result[0].object_id if result else identifier
def _build_application_creds(password=None, key_value=None, key_type=None,#pylint: disable=too-many-arguments
key_usage=None, start_date=None, end_date=None):
if password and key_value:
raise CLIError('specify either --password or --key-value, but not both.')
if not start_date:
start_date = datetime.datetime.now()
elif isinstance(start_date, str):
start_date = dateutil.parser.parse(start_date)
if not end_date:
end_date = start_date + relativedelta(years=1)
elif isinstance(end_date, str):
end_date = dateutil.parser.parse(end_date)#pylint: disable=redefined-variable-type
key_type = key_type or 'AsymmetricX509Cert'
key_usage = key_usage or 'Verify'
password_creds = None
key_creds = None
if password:
password_creds = [PasswordCredential(start_date, end_date, str(uuid.uuid4()), password)]
elif key_value:
key_creds = [KeyCredential(start_date, end_date, key_value, str(uuid.uuid4()),
key_usage, key_type)]
return (password_creds, key_creds)
def create_service_principal(identifier):
client = _graph_client_factory()
try:
uuid.UUID(identifier)
result = list(client.applications.list(filter="appId eq '{}'".format(identifier)))
except ValueError:
result = list(client.applications.list(
filter="identifierUris/any(s:s eq '{}')".format(identifier)))
if not result: #assume we get an object id
result = [client.applications.get(identifier)]
app_id = result[0].app_id
return client.service_principals.create(app_id, True)
def show_service_principal(client, identifier):
object_id = _resolve_service_principal(client, identifier)
return client.get(object_id)
def delete_service_principal(client, identifier):
object_id = _resolve_service_principal(client, identifier)
client.delete(object_id)
def _resolve_service_principal(client, identifier):
#todo: confirm with graph team that a service principal name must be unique
result = list(client.list(filter="servicePrincipalNames/any(c:c eq '{}')".format(identifier)))
if result:
return result[0].object_id
try:
uuid.UUID(identifier)
return identifier
except ValueError:
raise CLIError("service principal {} doesn't exist".format(identifier))
def create_service_principal_for_rbac(name=None, secret=None, years=1):
'''create a service principal you can use with login command
:param str name: an unique uri. If missing, the command will generate one.
:param str secret: the secret used to login. If missing, command will generate one.
:param str years: Years the secret will be valid.
'''
client = _graph_client_factory()
start_date = datetime.datetime.now()
app_display_name = 'azure-cli-' + start_date.strftime('%Y-%m-%d-%H-%M-%S')
if name is None:
name = 'http://' + app_display_name # just a valid uri, no need to exist
end_date = start_date + relativedelta(years=years)
secret = secret or str(uuid.uuid4())
aad_application = create_application(client.applications, display_name=app_display_name, #pylint: disable=too-many-function-args
homepage='http://'+app_display_name,
identifier_uris=[name],
available_to_other_tenant=False,
password=secret,
start_date=start_date,
end_date=end_date)
#pylint: disable=no-member
aad_sp = create_service_principal(aad_application.app_id)
_build_output_content(name, aad_sp.object_id, secret, client.config.tenant_id)
def reset_service_principal_credential(name, secret=None, years=1):
'''reset credential, on expiration or you forget it.
:param str name: the uri representing the name of the service principal
:param str secret: the secret used to login. If missing, command will generate one.
:param str years: Years the secret will be valid.
'''
client = _graph_client_factory()
#pylint: disable=no-member
#look for the existing application
query_exp = 'identifierUris/any(x:x eq \'{}\')'.format(name)
aad_apps = list(client.applications.list(filter=query_exp))
if not aad_apps:
raise CLIError('can\'t find an application matching \'{}\''.format(name))
#no need to check 2+ matches, as app id uri is unique
app = aad_apps[0]
#look for the existing service principal
query_exp = 'servicePrincipalNames/any(x:x eq \'{}\')'.format(name)
aad_sps = list(client.service_principals.list(filter=query_exp))
if not aad_sps:
raise CLIError('can\'t find a service principal matching \'{}\''.format(name))
sp_object_id = aad_sps[0].object_id
#build a new password credential and patch it
secret = secret or str(uuid.uuid4())
start_date = datetime.datetime.now()
end_date = start_date + relativedelta(years=years)
key_id = str(uuid.uuid4())
app_cred = PasswordCredential(start_date, end_date, key_id, secret)
app_create_param = ApplicationUpdateParameters(password_credentials=[app_cred])
client.applications.patch(app.object_id, app_create_param)
_build_output_content(name, sp_object_id, secret, client.config.tenant_id)
def _build_output_content(sp_name, sp_object_id, secret, tenant):
logger.warning("Service principal has been configured with name: '%s', secret: '%s'",
sp_name, secret)
logger.warning('Useful commands to manage azure:')
logger.warning('Assign a role:')
logger.warning(' az role assignment create --assignee %s --role Contributor', sp_object_id)
logger.warning('Log in:')
logger.warning(' az login --service-principal -u %s -p %s --tenant %s',
sp_name, secret, tenant)
logger.warning('Reset credentials:')
logger.warning(' az ad sp reset-sp-credentials --name %s', sp_name)
logger.warning('Revoke:')
logger.warning(' az ad sp delete --id %s', sp_name)
logger.warning(' az ad app delete --id %s', sp_name)
def _resolve_object_id(assignee):
client = _graph_client_factory()
result = None

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

@ -7,14 +7,16 @@
from __future__ import print_function
from azure.mgmt.authorization.operations import RoleDefinitionsOperations
from azure.graphrbac.operations import (ApplicationsOperations, ServicePrincipalsOperations,
UsersOperations, GroupsOperations)
from azure.graphrbac.operations import UsersOperations, GroupsOperations
from azure.cli.commands import cli_command
from azure.cli.commands.arm import register_generic_update
from .custom import (create_role_assignment, list_role_assignments, delete_role_assignments,
list_role_definitions, delete_role_definition, create_role_definition,
list_sps, list_users, create_user, list_groups, list_apps,
create_application, update_application, delete_application, show_application,
create_service_principal, show_service_principal, delete_service_principal,
create_service_principal_for_rbac, reset_service_principal_credential,
_auth_client_factory, _graph_client_factory)
factory = lambda _: _auth_client_factory().role_definitions
@ -30,19 +32,31 @@ register_generic_update('role update',
simple_output_query = '[*].{Name:name, PrincipalName:properties.principalName, Role:properties.roleDefinitionName, Scope:properties.scope}'
factory = lambda _: _auth_client_factory().role_assignments
cli_command('role assignment delete', delete_role_assignments)
cli_command('role assignment list', list_role_assignments, simple_output_query=simple_output_query)
cli_command('role assignment create', create_role_assignment, simple_output_query=simple_output_query)
cli_command('role assignment list', list_role_assignments,
simple_output_query='[*].{Name:name, PrincipalName:properties.principalName, Role:properties.roleDefinitionName, Scope:properties.scope}')
cli_command('role assignment create', create_role_assignment,
simple_output_query="{Name:name, PrincipalId:properties.principalId, Scope:properties.scope}")
factory = lambda _: _graph_client_factory().applications
cli_command('ad app delete', ApplicationsOperations.delete, factory)
cli_command('ad app show', ApplicationsOperations.get, factory)
cli_command('ad app list', list_apps, factory)
#for table ouput, display the 1st identifier and replyurl, so all can fit in a row
single_app_table_query = '{DisplayName:displayName, IdentifierUri:identifierUris[0], ObjectId:objectId, ReplyUrl:replyUrls[0]}'
cli_command('ad app create', create_application, factory, simple_output_query=single_app_table_query)
cli_command('ad app delete', delete_application, factory)
cli_command('ad app list', list_apps, factory, simple_output_query='[*].'+ single_app_table_query)
cli_command('ad app show', show_application, factory, simple_output_query=single_app_table_query)
cli_command('ad app update', update_application, factory)
factory = lambda _: _graph_client_factory().service_principals
cli_command('ad sp delete', ServicePrincipalsOperations.delete, factory)
cli_command('ad sp show', ServicePrincipalsOperations.get, factory)
#for table ouput, display the 1st principal name, so all can fit in a row
single_sp_table_query = '{DisplayName:displayName, ServicePrincipalName:servicePrincipalNames[0], ObjectId:objectId}'
cli_command('ad sp create', create_service_principal, simple_output_query=single_sp_table_query)
cli_command('ad sp delete', delete_service_principal, factory)
#paging is broken at SDK https://github.com/Azure/azure-cli/issues/540
cli_command('ad sp list', list_sps, factory)
cli_command('ad sp list', list_sps, factory, simple_output_query='[*].'+single_sp_table_query)
cli_command('ad sp show', show_service_principal, factory, simple_output_query=single_sp_table_query)
#RBAC related
cli_command('ad sp create-for-rbac', create_service_principal_for_rbac)
cli_command('ad sp reset-credentials', reset_service_principal_credential)
factory = lambda _: _graph_client_factory().users
cli_command('ad user delete', UsersOperations.delete, factory)

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

@ -0,0 +1,445 @@
interactions:
- request:
body: !!binary |
eyJob21lcGFnZSI6ICJodHRwOi8vYXp1cmVjbGl0ZXN0LWdyYXBoIiwgImlkZW50aWZpZXJVcmlz
IjogWyJodHRwOi8vYXp1cmVjbGl0ZXN0LWdyYXBoIl0sICJhdmFpbGFibGVUb090aGVyVGVuYW50
cyI6IGZhbHNlLCAiZGlzcGxheU5hbWUiOiAiYXp1cmVjbGl0ZXN0In0=
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RX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Y3Jvc29mdC5jb20iLCJ2ZXIiOiIxLjAifQ.QlO28H3p3ETzVtPnp4ZOdHSkFCPk7N93OoL850LP1SdoaJpF6GTV6ggyP8tGTlNdY7c4DugQmGZMmlpaHDQVZFW9fzigClB2IhNi7ODghi0FQNqbqrDZB9EGa2GvkoZ8fZJxWq8yD0N0lYEywKMHPS1WKnUJNtthrIddtBASz1Jc2S2wX4G7lXKhTALLVYDCWFbPH2hf1sUgZc4H9LxAw7_9m8mmhrWw5FOTN_L5EpKLmP_1UFf3oTPjnhY1WZ7OhuH0qkGseeOYDy6_XY0kFbcFYDQD1ef57IhKcXHZ1vPTRKYU8IEpwu-f4JA5cDdfsGXIeNm6BcWOeuIc4Vf4Yw]
CommandName: [ad app create]
Connection: [keep-alive]
Content-Length: ['155']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [d8a98ff8-5d94-11e6-9059-64510658e3b3]
method: POST
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element","odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"f604c53a-aa21-44d5-a41f-c1ef0b5304bd","deletionTimestamp":null,"addIns":[],"appId":"12cc67db-2071-4101-b908-ae6b955ab956","appRoles":[],"availableToOtherTenants":false,"displayName":"azureclitest","errorUrl":null,"groupMembershipClaims":null,"homepage":"http://azureclitest-graph","identifierUris":["http://azureclitest-graph"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azureclitest on behalf of the signed-in user.","adminConsentDisplayName":"Access
azureclitest","id":"b2d53313-d484-494f-8838-3624e479088a","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azureclitest on your behalf.","userConsentDisplayName":"Access
azureclitest","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"passwordCredentials":[],"publicClient":null,"recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1307']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Mon, 08 Aug 2016 18:20:55 GMT']
Duration: ['3224814']
Expires: ['-1']
Location: ['https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/directoryObjects/f604c53a-aa21-44d5-a41f-c1ef0b5304bd/Microsoft.DirectoryServices.Application']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [wUAYkBKal6oqagFY7aouGCtQCtmejpC9YPiTOfHJ8us=]
ocp-aad-session-key: [aVjQbtTa7qiwknQk5TwxlzHHosTWRs1GsTqsNmqMJBHZIBGK5pxsUsljQ45OUtivzm0FXv9hT5Y6ZrhsH3mI0e-fwKAUxRfmJR0CgiDD8T5-hPExGATF1mV31lz2DdI-eMRLypAR4w4w9viS94-RAw.a2298BNWx5msYPZR6U7S_YZypZMBcYjyrBzUma9mRhw]
request-id: [7b3f1441-d4b1-4acf-8d1a-046830cd1b50]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6I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OiJ5dWdhbmd3QG1pY3Jvc29mdC5jb20iLCJ2ZXIiOiIxLjAifQ.QlO28H3p3ETzVtPnp4ZOdHSkFCPk7N93OoL850LP1SdoaJpF6GTV6ggyP8tGTlNdY7c4DugQmGZMmlpaHDQVZFW9fzigClB2IhNi7ODghi0FQNqbqrDZB9EGa2GvkoZ8fZJxWq8yD0N0lYEywKMHPS1WKnUJNtthrIddtBASz1Jc2S2wX4G7lXKhTALLVYDCWFbPH2hf1sUgZc4H9LxAw7_9m8mmhrWw5FOTN_L5EpKLmP_1UFf3oTPjnhY1WZ7OhuH0qkGseeOYDy6_XY0kFbcFYDQD1ef57IhKcXHZ1vPTRKYU8IEpwu-f4JA5cDdfsGXIeNm6BcWOeuIc4Vf4Yw]
CommandName: [ad app show]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [d8a98ff8-5d94-11e6-9059-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=identifierUris%2Fany%28s%3As%20eq%20%27http%3A%2F%2Fazureclitest-graph%27%29&api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application","value":[{"odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"f604c53a-aa21-44d5-a41f-c1ef0b5304bd","deletionTimestamp":null,"addIns":[],"appId":"12cc67db-2071-4101-b908-ae6b955ab956","appRoles":[],"availableToOtherTenants":false,"displayName":"azureclitest","errorUrl":null,"groupMembershipClaims":null,"homepage":"http://azureclitest-graph","identifierUris":["http://azureclitest-graph"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azureclitest on behalf of the signed-in user.","adminConsentDisplayName":"Access
azureclitest","id":"b2d53313-d484-494f-8838-3624e479088a","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azureclitest on your behalf.","userConsentDisplayName":"Access
azureclitest","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"passwordCredentials":[],"publicClient":null,"recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null}]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1310']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Mon, 08 Aug 2016 18:20:54 GMT']
Duration: ['1279672']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [fq8X8skvMWfZKi9Rtj3ENzuIn4t3hZAIS6B3m5bk4xE=]
ocp-aad-session-key: [dFMM9HlSHfVn_U26R3lSlzhKlJCS8pbiflfVJJv7LCYFkcfx02O1BAwajGsRBCU3LkxtvXSbdQZsoo_HcLuL_bZPWHneMH-mt7CfCrwuGtNz_-LlGpJvOSYRmGMJu7t5-KI4--_xt1TL6uW934ffLw.kMNvWjy1lSzc0F0fZbqCsyLG8QmlDYX_PE1Tonu1VFM]
request-id: [a9fa6f24-54c4-42a6-9773-8dbe46d3d4e3]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3T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5jb20iLCJ2ZXIiOiIxLjAifQ.QlO28H3p3ETzVtPnp4ZOdHSkFCPk7N93OoL850LP1SdoaJpF6GTV6ggyP8tGTlNdY7c4DugQmGZMmlpaHDQVZFW9fzigClB2IhNi7ODghi0FQNqbqrDZB9EGa2GvkoZ8fZJxWq8yD0N0lYEywKMHPS1WKnUJNtthrIddtBASz1Jc2S2wX4G7lXKhTALLVYDCWFbPH2hf1sUgZc4H9LxAw7_9m8mmhrWw5FOTN_L5EpKLmP_1UFf3oTPjnhY1WZ7OhuH0qkGseeOYDy6_XY0kFbcFYDQD1ef57IhKcXHZ1vPTRKYU8IEpwu-f4JA5cDdfsGXIeNm6BcWOeuIc4Vf4Yw]
CommandName: [ad app show]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [d8a98ff8-5d94-11e6-9059-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications/f604c53a-aa21-44d5-a41f-c1ef0b5304bd?api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element","odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"f604c53a-aa21-44d5-a41f-c1ef0b5304bd","deletionTimestamp":null,"addIns":[],"appId":"12cc67db-2071-4101-b908-ae6b955ab956","appRoles":[],"availableToOtherTenants":false,"displayName":"azureclitest","errorUrl":null,"groupMembershipClaims":null,"homepage":"http://azureclitest-graph","identifierUris":["http://azureclitest-graph"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azureclitest on behalf of the signed-in user.","adminConsentDisplayName":"Access
azureclitest","id":"b2d53313-d484-494f-8838-3624e479088a","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azureclitest on your behalf.","userConsentDisplayName":"Access
azureclitest","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"passwordCredentials":[],"publicClient":null,"recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1307']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Mon, 08 Aug 2016 18:20:55 GMT']
Duration: ['1382902']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [hioYpthBQWASoV+bOwj8vXPuZJ+NE6E5bvd044sSUBw=]
ocp-aad-session-key: [5RKjlu2EjZ7qFdbkQJXhamWTu6Ti8P7iKCXKEEytNRuUjtR3Rz2iFcB19CLmbyid6yDkAY20OLDgadugS2BHQiPPvR6gd_gS4JjGHuvX8_TBvI0S48FqElpRCiM0TD1ySSVEhaOK93OcRsEEJjILyg.ko-dcwb7kiiljYmz3Ki6SY1O-YS-maK80vUHAFYt684]
request-id: [cf767ad6-8d21-46b9-af36-b04283f80133]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOi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aJpF6GTV6ggyP8tGTlNdY7c4DugQmGZMmlpaHDQVZFW9fzigClB2IhNi7ODghi0FQNqbqrDZB9EGa2GvkoZ8fZJxWq8yD0N0lYEywKMHPS1WKnUJNtthrIddtBASz1Jc2S2wX4G7lXKhTALLVYDCWFbPH2hf1sUgZc4H9LxAw7_9m8mmhrWw5FOTN_L5EpKLmP_1UFf3oTPjnhY1WZ7OhuH0qkGseeOYDy6_XY0kFbcFYDQD1ef57IhKcXHZ1vPTRKYU8IEpwu-f4JA5cDdfsGXIeNm6BcWOeuIc4Vf4Yw]
CommandName: [ad app list]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [d8a98ff8-5d94-11e6-9059-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=startswith%28displayName%2C%27azureclitest%27%29&api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application","value":[{"odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"f604c53a-aa21-44d5-a41f-c1ef0b5304bd","deletionTimestamp":null,"addIns":[],"appId":"12cc67db-2071-4101-b908-ae6b955ab956","appRoles":[],"availableToOtherTenants":false,"displayName":"azureclitest","errorUrl":null,"groupMembershipClaims":null,"homepage":"http://azureclitest-graph","identifierUris":["http://azureclitest-graph"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azureclitest on behalf of the signed-in user.","adminConsentDisplayName":"Access
azureclitest","id":"b2d53313-d484-494f-8838-3624e479088a","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azureclitest on your behalf.","userConsentDisplayName":"Access
azureclitest","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"passwordCredentials":[],"publicClient":null,"recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null}]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1310']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Mon, 08 Aug 2016 18:20:54 GMT']
Duration: ['1117629']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [q4i7LesK+Fuk9QjFV+CB3iE/U15rLb+sF1h8Mu5wm+0=]
ocp-aad-session-key: [zZKHn5C3qcZ9-HaAWh6Mes0OilKnvvDsvRoMuGQj2WA--utjXaxqmuRSAblKgRtVS1_hj8gkV0Ryj9Au9ABEEq2GUHZfYzduoJxjt2gNngUBbwFiipuH6v5tJIRJeTLHKv3_WW_e_lRZWgtKqha4Dg._eF2XlCnSS-oamxCCjSDz5HBz9xCIwb3cibasMLVtDM]
request-id: [5e165869-4133-45c7-b10f-5099bc6dcb20]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLnd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0FQNqbqrDZB9EGa2GvkoZ8fZJxWq8yD0N0lYEywKMHPS1WKnUJNtthrIddtBASz1Jc2S2wX4G7lXKhTALLVYDCWFbPH2hf1sUgZc4H9LxAw7_9m8mmhrWw5FOTN_L5EpKLmP_1UFf3oTPjnhY1WZ7OhuH0qkGseeOYDy6_XY0kFbcFYDQD1ef57IhKcXHZ1vPTRKYU8IEpwu-f4JA5cDdfsGXIeNm6BcWOeuIc4Vf4Yw]
CommandName: [ad app update]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [d8a98ff8-5d94-11e6-9059-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=identifierUris%2Fany%28s%3As%20eq%20%27http%3A%2F%2Fazureclitest-graph%27%29&api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application","value":[{"odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"f604c53a-aa21-44d5-a41f-c1ef0b5304bd","deletionTimestamp":null,"addIns":[],"appId":"12cc67db-2071-4101-b908-ae6b955ab956","appRoles":[],"availableToOtherTenants":false,"displayName":"azureclitest","errorUrl":null,"groupMembershipClaims":null,"homepage":"http://azureclitest-graph","identifierUris":["http://azureclitest-graph"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azureclitest on behalf of the signed-in user.","adminConsentDisplayName":"Access
azureclitest","id":"b2d53313-d484-494f-8838-3624e479088a","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azureclitest on your behalf.","userConsentDisplayName":"Access
azureclitest","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"passwordCredentials":[],"publicClient":null,"recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null}]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1310']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Mon, 08 Aug 2016 18:20:57 GMT']
Duration: ['1349740']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [ZAfQFnTpLAZxC31oR++AqJK6G+dpE0cnVhUpdX+Y0Dg=]
ocp-aad-session-key: [7io8SahOZhHiTdvKF1zD_EAlafMwmwHC0gLsPO7O1JWeiR_G59QlOM_VbNxIBILGoNafNDrunLA7uTmBAuOky6D58HJ6ISzgTlYgFfjAhvMH1qeJuqyUob69hPVMo7HjwQz7yy2bGP6KaApUoqAIzQ.2DXTrUL3r7XEROXCaPDa5ezLlOWbgCrPa2IBS8U5zkQ]
request-id: [899838fa-815d-4c4f-afa6-e8c4ae4f7eb3]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: !!binary |
eyJyZXBseVVybHMiOiBbImh0dHA6Ly9henVyZWNsaXRlc3QtcmVwbHl1cmkiXX0=
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRv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c4DugQmGZMmlpaHDQVZFW9fzigClB2IhNi7ODghi0FQNqbqrDZB9EGa2GvkoZ8fZJxWq8yD0N0lYEywKMHPS1WKnUJNtthrIddtBASz1Jc2S2wX4G7lXKhTALLVYDCWFbPH2hf1sUgZc4H9LxAw7_9m8mmhrWw5FOTN_L5EpKLmP_1UFf3oTPjnhY1WZ7OhuH0qkGseeOYDy6_XY0kFbcFYDQD1ef57IhKcXHZ1vPTRKYU8IEpwu-f4JA5cDdfsGXIeNm6BcWOeuIc4Vf4Yw]
CommandName: [ad app update]
Connection: [keep-alive]
Content-Length: ['47']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [d8a98ff8-5d94-11e6-9059-64510658e3b3]
method: PATCH
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications/f604c53a-aa21-44d5-a41f-c1ef0b5304bd?api-version=1.6
response:
body: {string: ''}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
DataServiceVersion: [1.0;]
Date: ['Mon, 08 Aug 2016 18:20:56 GMT']
Duration: ['2319495']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [EooG1jyWKcOTR0/iW/ufHN+jPlKw0a7XnYl1/cdk0aA=]
ocp-aad-session-key: [KSitKzl0lvgHoaxPpHrzr7_NxqNTrOj3wnyt8OaSUwIWmh0WKwbZQJUCSb6Rlu94vLzG9qFgR8X8UnGN5PfjZBbNS8u1TGEMs7ef_n4oy5wfmLR26jHSyYwqgePcXheYskKRbcu5VA1St0oE0z-tNA.AibcmEGfphb4xQlJIyvWNQFyFT9ui0IjyVZZA99tmls]
request-id: [7bb2fe3e-0fb3-4fdd-9009-540b5f5289c4]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 204, message: No Content}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA2NzcxOTEsIm5iZiI6MTQ3MDY3NzE5MSwiZXhwIjoxNDcwNjgxMDkxLCJhY3IiOiIxIiwiYWx0c2VjaWQiOiI1OjoxMDAzMDAwMDgwMUM0NEQzIiwiYW1yIjpbInB3ZCIsIm1mYSJdLCJhcHBpZCI6IjA0YjA3Nzk1LThkZGItNDYxYS1iYmVlLTAyZjllMWJmN2I0NiIsImFwcGlkYWNyIjoiMCIsImVfZXhwIjo3MjAwLCJlbWFpbCI6Inl1Z2FuZ3dAbWljcm9zb2Z0LmNvbSIsImZhbWlseV9uYW1lIjoiV2FuZyIsImdpdmVuX25hbWUiOiJZdWdhbmciLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaW5fY29ycCI6InRydWUiLCJpcGFkZHIiOiIxNjcuMjIwLjEuMTMwIiwibmFtZSI6Ill1Z2FuZyBXYW5nIiwib2lkIjoiODllZDViZTgtZmY5Ny00MWI1LWFiMTEtMDU1ZTFlM2NjMzRiIiwicHVpZCI6IjEwMDNCRkZEOTU5Rjg5NTUiLCJzY3AiOiI2MmU5MDM5NC02OWY1LTQyMzctOTE5MC0wMTIxNzcxNDVlMTAiLCJzdWIiOiJoZHFBOVgwQWdpOUw3X3IzV1A4dkV4RTgyQmQ5U1c5c2NGbURqT20xT01FIiwidGlkIjoiNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhIiwidW5pcXVlX25hbWUiOiJ5dWdhbmd3QG1pY3Jvc29mdC5jb20iLCJ2ZXIiOiIxLjAifQ.QlO28H3p3ETzVtPnp4ZOdHSkFCPk7N93OoL850LP1SdoaJpF6GTV6ggyP8tGTlNdY7c4DugQmGZMmlpaHDQVZFW9fzigClB2IhNi7ODghi0FQNqbqrDZB9EGa2GvkoZ8fZJxWq8yD0N0lYEywKMHPS1WKnUJNtthrIddtBASz1Jc2S2wX4G7lXKhTALLVYDCWFbPH2hf1sUgZc4H9LxAw7_9m8mmhrWw5FOTN_L5EpKLmP_1UFf3oTPjnhY1WZ7OhuH0qkGseeOYDy6_XY0kFbcFYDQD1ef57IhKcXHZ1vPTRKYU8IEpwu-f4JA5cDdfsGXIeNm6BcWOeuIc4Vf4Yw]
CommandName: [ad app show]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [d8a98ff8-5d94-11e6-9059-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=identifierUris%2Fany%28s%3As%20eq%20%27http%3A%2F%2Fazureclitest-graph%27%29&api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application","value":[{"odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"f604c53a-aa21-44d5-a41f-c1ef0b5304bd","deletionTimestamp":null,"addIns":[],"appId":"12cc67db-2071-4101-b908-ae6b955ab956","appRoles":[],"availableToOtherTenants":false,"displayName":"azureclitest","errorUrl":null,"groupMembershipClaims":null,"homepage":"http://azureclitest-graph","identifierUris":["http://azureclitest-graph"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azureclitest on behalf of the signed-in user.","adminConsentDisplayName":"Access
azureclitest","id":"b2d53313-d484-494f-8838-3624e479088a","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azureclitest on your behalf.","userConsentDisplayName":"Access
azureclitest","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"passwordCredentials":[],"publicClient":null,"recordConsentConditions":null,"replyUrls":["http://azureclitest-replyuri"],"requiredResourceAccess":[],"samlMetadataUrl":null}]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1340']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Mon, 08 Aug 2016 18:20:58 GMT']
Duration: ['1602823']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [ziul/EJ8d7Mt967WHZCAf2Nrk0kJtsDec1DemBxlc/0=]
ocp-aad-session-key: [54s61bst58-Xj-gSRvd0IRITCKqvBwnh-XsRv-16Z5_NhZKDYBMr6hU4ozm_WUBHa7AGgwErOljjsqKJmH0-wvcrl_NEH1LW_U2-PMo7uxh0HXaaPBUsp75nNNyMVguD8c-x81HDCAFp_E023r1V9Q.7KYZpaPgmfgph98mLJl8JcZRf61kngtQRZqyz7dVaTU]
request-id: [85ed9a01-c341-4cfd-a3f7-980c0118e223]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA2NzcxOTEsIm5iZiI6MTQ3MDY3NzE5MSwiZXhwIjoxNDcwNjgxMDkxLCJhY3IiOiIxIiwiYWx0c2VjaWQiOiI1OjoxMDAzMDAwMDgwMUM0NEQzIiwiYW1yIjpbInB3ZCIsIm1mYSJdLCJhcHBpZCI6IjA0YjA3Nzk1LThkZGItNDYxYS1iYmVlLTAyZjllMWJmN2I0NiIsImFwcGlkYWNyIjoiMCIsImVfZXhwIjo3MjAwLCJlbWFpbCI6Inl1Z2FuZ3dAbWljcm9zb2Z0LmNvbSIsImZhbWlseV9uYW1lIjoiV2FuZyIsImdpdmVuX25hbWUiOiJZdWdhbmciLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaW5fY29ycCI6InRydWUiLCJpcGFkZHIiOiIxNjcuMjIwLjEuMTMwIiwibmFtZSI6Ill1Z2FuZyBXYW5nIiwib2lkIjoiODllZDViZTgtZmY5Ny00MWI1LWFiMTEtMDU1ZTFlM2NjMzRiIiwicHVpZCI6IjEwMDNCRkZEOTU5Rjg5NTUiLCJzY3AiOiI2MmU5MDM5NC02OWY1LTQyMzctOTE5MC0wMTIxNzcxNDVlMTAiLCJzdWIiOiJoZHFBOVgwQWdpOUw3X3IzV1A4dkV4RTgyQmQ5U1c5c2NGbURqT20xT01FIiwidGlkIjoiNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhIiwidW5pcXVlX25hbWUiOiJ5dWdhbmd3QG1pY3Jvc29mdC5jb20iLCJ2ZXIiOiIxLjAifQ.QlO28H3p3ETzVtPnp4ZOdHSkFCPk7N93OoL850LP1SdoaJpF6GTV6ggyP8tGTlNdY7c4DugQmGZMmlpaHDQVZFW9fzigClB2IhNi7ODghi0FQNqbqrDZB9EGa2GvkoZ8fZJxWq8yD0N0lYEywKMHPS1WKnUJNtthrIddtBASz1Jc2S2wX4G7lXKhTALLVYDCWFbPH2hf1sUgZc4H9LxAw7_9m8mmhrWw5FOTN_L5EpKLmP_1UFf3oTPjnhY1WZ7OhuH0qkGseeOYDy6_XY0kFbcFYDQD1ef57IhKcXHZ1vPTRKYU8IEpwu-f4JA5cDdfsGXIeNm6BcWOeuIc4Vf4Yw]
CommandName: [ad app show]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [d8a98ff8-5d94-11e6-9059-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications/f604c53a-aa21-44d5-a41f-c1ef0b5304bd?api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element","odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"f604c53a-aa21-44d5-a41f-c1ef0b5304bd","deletionTimestamp":null,"addIns":[],"appId":"12cc67db-2071-4101-b908-ae6b955ab956","appRoles":[],"availableToOtherTenants":false,"displayName":"azureclitest","errorUrl":null,"groupMembershipClaims":null,"homepage":"http://azureclitest-graph","identifierUris":["http://azureclitest-graph"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azureclitest on behalf of the signed-in user.","adminConsentDisplayName":"Access
azureclitest","id":"b2d53313-d484-494f-8838-3624e479088a","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azureclitest on your behalf.","userConsentDisplayName":"Access
azureclitest","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"passwordCredentials":[],"publicClient":null,"recordConsentConditions":null,"replyUrls":["http://azureclitest-replyuri"],"requiredResourceAccess":[],"samlMetadataUrl":null}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1337']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Mon, 08 Aug 2016 18:20:56 GMT']
Duration: ['1743028']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [gVe9/FM4oqqnojytneR8sUurfqQA9QW5mYrgVR1bKQo=]
ocp-aad-session-key: [X1T_VvZBEcZDZtj6oDWIz7ozsEFOwVWsq966AlcEBFywPMuUPEDPU1RzhGBKPEe00dIpxqtnG1vdK_wg68-cRWUdIMiteLLU4tD6850njcqjqSln87Xd3udz76QRitug8t0m3bFxT9C6Cb45RwBL5Q.k-O9yEPewoZicH-M35ZMmCTGxrlBSqjuv1HIruRsSDU]
request-id: [20daaf00-a366-4fc1-9c8e-027a1e2c862e]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA2NzcxOTEsIm5iZiI6MTQ3MDY3NzE5MSwiZXhwIjoxNDcwNjgxMDkxLCJhY3IiOiIxIiwiYWx0c2VjaWQiOiI1OjoxMDAzMDAwMDgwMUM0NEQzIiwiYW1yIjpbInB3ZCIsIm1mYSJdLCJhcHBpZCI6IjA0YjA3Nzk1LThkZGItNDYxYS1iYmVlLTAyZjllMWJmN2I0NiIsImFwcGlkYWNyIjoiMCIsImVfZXhwIjo3MjAwLCJlbWFpbCI6Inl1Z2FuZ3dAbWljcm9zb2Z0LmNvbSIsImZhbWlseV9uYW1lIjoiV2FuZyIsImdpdmVuX25hbWUiOiJZdWdhbmciLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaW5fY29ycCI6InRydWUiLCJpcGFkZHIiOiIxNjcuMjIwLjEuMTMwIiwibmFtZSI6Ill1Z2FuZyBXYW5nIiwib2lkIjoiODllZDViZTgtZmY5Ny00MWI1LWFiMTEtMDU1ZTFlM2NjMzRiIiwicHVpZCI6IjEwMDNCRkZEOTU5Rjg5NTUiLCJzY3AiOiI2MmU5MDM5NC02OWY1LTQyMzctOTE5MC0wMTIxNzcxNDVlMTAiLCJzdWIiOiJoZHFBOVgwQWdpOUw3X3IzV1A4dkV4RTgyQmQ5U1c5c2NGbURqT20xT01FIiwidGlkIjoiNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhIiwidW5pcXVlX25hbWUiOiJ5dWdhbmd3QG1pY3Jvc29mdC5jb20iLCJ2ZXIiOiIxLjAifQ.QlO28H3p3ETzVtPnp4ZOdHSkFCPk7N93OoL850LP1SdoaJpF6GTV6ggyP8tGTlNdY7c4DugQmGZMmlpaHDQVZFW9fzigClB2IhNi7ODghi0FQNqbqrDZB9EGa2GvkoZ8fZJxWq8yD0N0lYEywKMHPS1WKnUJNtthrIddtBASz1Jc2S2wX4G7lXKhTALLVYDCWFbPH2hf1sUgZc4H9LxAw7_9m8mmhrWw5FOTN_L5EpKLmP_1UFf3oTPjnhY1WZ7OhuH0qkGseeOYDy6_XY0kFbcFYDQD1ef57IhKcXHZ1vPTRKYU8IEpwu-f4JA5cDdfsGXIeNm6BcWOeuIc4Vf4Yw]
CommandName: [ad app delete]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [d8a98ff8-5d94-11e6-9059-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=identifierUris%2Fany%28s%3As%20eq%20%27http%3A%2F%2Fazureclitest-graph%27%29&api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application","value":[{"odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"f604c53a-aa21-44d5-a41f-c1ef0b5304bd","deletionTimestamp":null,"addIns":[],"appId":"12cc67db-2071-4101-b908-ae6b955ab956","appRoles":[],"availableToOtherTenants":false,"displayName":"azureclitest","errorUrl":null,"groupMembershipClaims":null,"homepage":"http://azureclitest-graph","identifierUris":["http://azureclitest-graph"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azureclitest on behalf of the signed-in user.","adminConsentDisplayName":"Access
azureclitest","id":"b2d53313-d484-494f-8838-3624e479088a","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azureclitest on your behalf.","userConsentDisplayName":"Access
azureclitest","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"passwordCredentials":[],"publicClient":null,"recordConsentConditions":null,"replyUrls":["http://azureclitest-replyuri"],"requiredResourceAccess":[],"samlMetadataUrl":null}]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1340']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Mon, 08 Aug 2016 18:20:57 GMT']
Duration: ['1283679']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [YUK+J20olSbW7h16IsUzW0tnSG7t4ZMZbqldNpWQQT4=]
ocp-aad-session-key: [ZWj5kt-Hi5nlN2k2GC-MZlaynlzIImU3rdOS3HWAY4_A8dnVhxcvXbE9QX1GmOHI1QEcXhNYwNp22JTj_ketbx8zdl7wj50cS8pGiOqBiVZPxi9S9PBRvVzDn7sW11eCodS0TKsKOr999nrBkmzohQ.1aFgj477GTCoSEROVvAddYDOceOp0jLgJpVk4h9c3rA]
request-id: [b81c39ca-f956-4fa2-8337-89557714f2ef]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA2NzcxOTEsIm5iZiI6MTQ3MDY3NzE5MSwiZXhwIjoxNDcwNjgxMDkxLCJhY3IiOiIxIiwiYWx0c2VjaWQiOiI1OjoxMDAzMDAwMDgwMUM0NEQzIiwiYW1yIjpbInB3ZCIsIm1mYSJdLCJhcHBpZCI6IjA0YjA3Nzk1LThkZGItNDYxYS1iYmVlLTAyZjllMWJmN2I0NiIsImFwcGlkYWNyIjoiMCIsImVfZXhwIjo3MjAwLCJlbWFpbCI6Inl1Z2FuZ3dAbWljcm9zb2Z0LmNvbSIsImZhbWlseV9uYW1lIjoiV2FuZyIsImdpdmVuX25hbWUiOiJZdWdhbmciLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaW5fY29ycCI6InRydWUiLCJpcGFkZHIiOiIxNjcuMjIwLjEuMTMwIiwibmFtZSI6Ill1Z2FuZyBXYW5nIiwib2lkIjoiODllZDViZTgtZmY5Ny00MWI1LWFiMTEtMDU1ZTFlM2NjMzRiIiwicHVpZCI6IjEwMDNCRkZEOTU5Rjg5NTUiLCJzY3AiOiI2MmU5MDM5NC02OWY1LTQyMzctOTE5MC0wMTIxNzcxNDVlMTAiLCJzdWIiOiJoZHFBOVgwQWdpOUw3X3IzV1A4dkV4RTgyQmQ5U1c5c2NGbURqT20xT01FIiwidGlkIjoiNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhIiwidW5pcXVlX25hbWUiOiJ5dWdhbmd3QG1pY3Jvc29mdC5jb20iLCJ2ZXIiOiIxLjAifQ.QlO28H3p3ETzVtPnp4ZOdHSkFCPk7N93OoL850LP1SdoaJpF6GTV6ggyP8tGTlNdY7c4DugQmGZMmlpaHDQVZFW9fzigClB2IhNi7ODghi0FQNqbqrDZB9EGa2GvkoZ8fZJxWq8yD0N0lYEywKMHPS1WKnUJNtthrIddtBASz1Jc2S2wX4G7lXKhTALLVYDCWFbPH2hf1sUgZc4H9LxAw7_9m8mmhrWw5FOTN_L5EpKLmP_1UFf3oTPjnhY1WZ7OhuH0qkGseeOYDy6_XY0kFbcFYDQD1ef57IhKcXHZ1vPTRKYU8IEpwu-f4JA5cDdfsGXIeNm6BcWOeuIc4Vf4Yw]
CommandName: [ad app delete]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [d8a98ff8-5d94-11e6-9059-64510658e3b3]
method: DELETE
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications/f604c53a-aa21-44d5-a41f-c1ef0b5304bd?api-version=1.6
response:
body: {string: ''}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
DataServiceVersion: [1.0;]
Date: ['Mon, 08 Aug 2016 18:20:57 GMT']
Duration: ['1713883']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [wUAYkBKal6oqagFY7aouGCtQCtmejpC9YPiTOfHJ8us=]
ocp-aad-session-key: [lYogtgJhm2c1FDJocA-_ywqN0lwduKO7I8XamFPZUApSh82x-lU-VqlOm85zgYaJFYpcnC1oddUFgiqre7kP35ZLgX1m2gIoxDLi_Zkh2g9b0xpBcpmTywkdyuM2Oa7iUEjD2cpl3gTL6fQ9D0VJaw.uUZ7GChhsPEDssyV8pkYF5gDft2ArIqYTgqLSgueMII]
request-id: [f8c12e9c-f75f-45a0-b35d-2b0f68e9abfe]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 204, message: No Content}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA2NzcxOTEsIm5iZiI6MTQ3MDY3NzE5MSwiZXhwIjoxNDcwNjgxMDkxLCJhY3IiOiIxIiwiYWx0c2VjaWQiOiI1OjoxMDAzMDAwMDgwMUM0NEQzIiwiYW1yIjpbInB3ZCIsIm1mYSJdLCJhcHBpZCI6IjA0YjA3Nzk1LThkZGItNDYxYS1iYmVlLTAyZjllMWJmN2I0NiIsImFwcGlkYWNyIjoiMCIsImVfZXhwIjo3MjAwLCJlbWFpbCI6Inl1Z2FuZ3dAbWljcm9zb2Z0LmNvbSIsImZhbWlseV9uYW1lIjoiV2FuZyIsImdpdmVuX25hbWUiOiJZdWdhbmciLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaW5fY29ycCI6InRydWUiLCJpcGFkZHIiOiIxNjcuMjIwLjEuMTMwIiwibmFtZSI6Ill1Z2FuZyBXYW5nIiwib2lkIjoiODllZDViZTgtZmY5Ny00MWI1LWFiMTEtMDU1ZTFlM2NjMzRiIiwicHVpZCI6IjEwMDNCRkZEOTU5Rjg5NTUiLCJzY3AiOiI2MmU5MDM5NC02OWY1LTQyMzctOTE5MC0wMTIxNzcxNDVlMTAiLCJzdWIiOiJoZHFBOVgwQWdpOUw3X3IzV1A4dkV4RTgyQmQ5U1c5c2NGbURqT20xT01FIiwidGlkIjoiNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhIiwidW5pcXVlX25hbWUiOiJ5dWdhbmd3QG1pY3Jvc29mdC5jb20iLCJ2ZXIiOiIxLjAifQ.QlO28H3p3ETzVtPnp4ZOdHSkFCPk7N93OoL850LP1SdoaJpF6GTV6ggyP8tGTlNdY7c4DugQmGZMmlpaHDQVZFW9fzigClB2IhNi7ODghi0FQNqbqrDZB9EGa2GvkoZ8fZJxWq8yD0N0lYEywKMHPS1WKnUJNtthrIddtBASz1Jc2S2wX4G7lXKhTALLVYDCWFbPH2hf1sUgZc4H9LxAw7_9m8mmhrWw5FOTN_L5EpKLmP_1UFf3oTPjnhY1WZ7OhuH0qkGseeOYDy6_XY0kFbcFYDQD1ef57IhKcXHZ1vPTRKYU8IEpwu-f4JA5cDdfsGXIeNm6BcWOeuIc4Vf4Yw]
CommandName: [ad app list]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [d8a98ff8-5d94-11e6-9059-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=identifierUris%2Fany%28s%3As%20eq%20%27http%3A%2F%2Fazureclitest-graph%27%29&api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application","value":[]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['161']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Mon, 08 Aug 2016 18:20:57 GMT']
Duration: ['1375283']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [kAyVw042/2zu9oGzllfqIbPkl7150lhvF+62NQu4XyQ=]
ocp-aad-session-key: [jzlRO4irosAJXbGpEincMGJPoFa0WUTPMzXxt4jXIA1gv1zmYvqnNATP6bHJrXgVJ-_5X8t__b4BzXlnan-h-z5uXhL0qSlEZzzHC7huJkSYmSC3XyJea_gCvguF-oWnhxYXnZQkMA7xOrSbnxAZjg.PzMjfvwI5a37WRk9ou-EjYXSDhQ562P82LGuhfftKR0]
request-id: [2ec39e80-4da2-40c7-adfe-407225f0cdb9]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
version: 1

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

@ -0,0 +1,612 @@
interactions:
- request:
body: !!binary |
eyJob21lcGFnZSI6ICJodHRwOi8vYXp1cmUtY2xpLTIwMTYtMDgtMDktMTMtNDgtNDYiLCAiaWRl
bnRpZmllclVyaXMiOiBbImh0dHA6Ly9henVyZWNsaXRlc3QtZ3JhcGgiXSwgInBhc3N3b3JkQ3Jl
ZGVudGlhbHMiOiBbeyJlbmREYXRlIjogIjI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GRjk1RDQ0RTg0Iiwic2NwIjoiNjJlOTAzOTQtNjlmNS00MjM3LTkxOTAtMDEyMTc3MTQ1ZTEwIiwic3ViIjoiRVFkTzY4azdHRDU1dUZKUC05NE1lamFGckVuU0FOeC1oM3VyX3doZFNFNCIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInVuaXF1ZV9uYW1lIjoiYWRtaW4zQEF6dXJlU0RLVGVhbS5vbm1pY3Jvc29mdC5jb20iLCJ1cG4iOiJhZG1pbjNAQXp1cmVTREtUZWFtLm9ubWljcm9zb2Z0LmNvbSIsInZlciI6IjEuMCJ9.XSKoDy2osCzJmCYpt91F4x22Hx4PBTsZr7TZd9rgMWqpXdAWrGdrcf4OXlxuy_UIZ3eEq5lLoES4qWGYUlp8iICwd8GPLZg5GrnEiKtZ2TQwFP8SHOgz4fNsxh-t7f-3WwC4_oXna_iUawbDE9UgNzrtA1lZTggs7VPQAhNfFGASFrJIu0RGry_Ll9iwYugsAZqDUHQoeB5nd2VFHCU2e1mmo5JpK4VQxxw40X8L0Ohn3DUmmGr05jsqlbjsmRRHeIJ7pHtPImA18VzuTFmRRQLLVUhzCCeeeC1-53DU6-Uw2he4oAr7nFvx6ad5RGhw4i_KA8vJoPK3u9SnZIhwBg]
CommandName: [ad sp create-for-rbac]
Connection: [keep-alive]
Content-Length: ['394']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [aa327892-5e72-11e6-8325-64510658e3b3]
method: POST
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element","odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"1d8c8a5c-b47d-4beb-9b0a-95eee0f476ae","deletionTimestamp":null,"addIns":[],"appId":"b8a5e308-a4a1-4eb4-85e3-c6565248caaa","appRoles":[],"availableToOtherTenants":false,"displayName":"azure-cli-2016-08-09-13-48-46","errorUrl":null,"groupMembershipClaims":null,"homepage":"http://azure-cli-2016-08-09-13-48-46","identifierUris":["http://azureclitest-graph"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on behalf of the signed-in
user.","adminConsentDisplayName":"Access azure-cli-2016-08-09-13-48-46","id":"54a1d4e7-e5f1-45da-b338-3a6105175581","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on your behalf.","userConsentDisplayName":"Access
azure-cli-2016-08-09-13-48-46","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"passwordCredentials":[{"customKeyIdentifier":null,"endDate":"2017-08-09T13:48:46.671657Z","keyId":"ff39c697-bdcf-406a-9bec-cec2b5cd5787","startDate":"2016-08-09T13:48:46.671657Z","value":null}],"publicClient":null,"recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1573']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Tue, 09 Aug 2016 20:48:44 GMT']
Duration: ['3170675']
Expires: ['-1']
Location: ['https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/directoryObjects/1d8c8a5c-b47d-4beb-9b0a-95eee0f476ae/Microsoft.DirectoryServices.Application']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [ZmFgnVFdIxIuyIMdsVjk4FVcD4bDTqMAPXZlu8ylvDc=]
ocp-aad-session-key: [qryHsY-b1h2SdEmqgLJrmjgNNcCKlOvMqmGP8YCAgeNP8PbWv2hQz_Up_b-zfYhKuuE89y0WM-YhcB-dVsQc099H3-dbQB90gfzSI5iLU6fN0Ku0PxtjTo-IS8YCF3su9l_-qknp4lv76kPsHzoZow.VhBT-mTxRjdszPaumm204lFsaNEv9KwNctwWohp18bQ]
request-id: [2b5b6cfd-59cf-4cfc-8b88-e567875b1e96]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA3NzM5MTIsIm5iZiI6MTQ3MDc3MzkxMiwiZXhwIjoxNDcwNzc3ODEyLCJhY3IiOiIxIiwiYW1yIjpbInB3ZCJdLCJhcHBpZCI6IjA0YjA3Nzk1LThkZGItNDYxYS1iYmVlLTAyZjllMWJmN2I0NiIsImFwcGlkYWNyIjoiMCIsImVfZXhwIjo3MjAwLCJmYW1pbHlfbmFtZSI6InNkayIsImdpdmVuX25hbWUiOiJhZG1pbjMiLCJpcGFkZHIiOiIxNjcuMjIwLjEuMTMwIiwibmFtZSI6ImFkbWluMyIsIm9pZCI6ImU3ZTE1OGQzLTdjZGMtNDdjZC04ODI1LTU4NTlkN2FiMmI1NSIsInB1aWQiOiIxMDAzM0ZGRjk1RDQ0RTg0Iiwic2NwIjoiNjJlOTAzOTQtNjlmNS00MjM3LTkxOTAtMDEyMTc3MTQ1ZTEwIiwic3ViIjoiRVFkTzY4azdHRDU1dUZKUC05NE1lamFGckVuU0FOeC1oM3VyX3doZFNFNCIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInVuaXF1ZV9uYW1lIjoiYWRtaW4zQEF6dXJlU0RLVGVhbS5vbm1pY3Jvc29mdC5jb20iLCJ1cG4iOiJhZG1pbjNAQXp1cmVTREtUZWFtLm9ubWljcm9zb2Z0LmNvbSIsInZlciI6IjEuMCJ9.XSKoDy2osCzJmCYpt91F4x22Hx4PBTsZr7TZd9rgMWqpXdAWrGdrcf4OXlxuy_UIZ3eEq5lLoES4qWGYUlp8iICwd8GPLZg5GrnEiKtZ2TQwFP8SHOgz4fNsxh-t7f-3WwC4_oXna_iUawbDE9UgNzrtA1lZTggs7VPQAhNfFGASFrJIu0RGry_Ll9iwYugsAZqDUHQoeB5nd2VFHCU2e1mmo5JpK4VQxxw40X8L0Ohn3DUmmGr05jsqlbjsmRRHeIJ7pHtPImA18VzuTFmRRQLLVUhzCCeeeC1-53DU6-Uw2he4oAr7nFvx6ad5RGhw4i_KA8vJoPK3u9SnZIhwBg]
CommandName: [ad sp create-for-rbac]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [aa327892-5e72-11e6-8325-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=appId%20eq%20%27b8a5e308-a4a1-4eb4-85e3-c6565248caaa%27&api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application","value":[{"odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"1d8c8a5c-b47d-4beb-9b0a-95eee0f476ae","deletionTimestamp":null,"addIns":[],"appId":"b8a5e308-a4a1-4eb4-85e3-c6565248caaa","appRoles":[],"availableToOtherTenants":false,"displayName":"azure-cli-2016-08-09-13-48-46","errorUrl":null,"groupMembershipClaims":null,"homepage":"http://azure-cli-2016-08-09-13-48-46","identifierUris":["http://azureclitest-graph"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on behalf of the signed-in
user.","adminConsentDisplayName":"Access azure-cli-2016-08-09-13-48-46","id":"54a1d4e7-e5f1-45da-b338-3a6105175581","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on your behalf.","userConsentDisplayName":"Access
azure-cli-2016-08-09-13-48-46","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"passwordCredentials":[{"customKeyIdentifier":null,"endDate":"2017-08-09T13:48:46.671657Z","keyId":"ff39c697-bdcf-406a-9bec-cec2b5cd5787","startDate":"2016-08-09T13:48:46.671657Z","value":null}],"publicClient":null,"recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null}]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1576']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Tue, 09 Aug 2016 20:48:45 GMT']
Duration: ['1195521']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [BvccHteD7GpRtL6WC1VKppjYFJCLmeocW/AMspEjmnI=]
ocp-aad-session-key: [Uj_iJ9qjtTALdsog8d1iAQzWTyZN9qg_quUTTJ07rkTlyYfROqTKa3vlc-QixJ9mekfbbOQP6IoV7iHCIblxir06wmWrOEliLmP5DN_-OXAAYQNcNo7ag4r1Z2rnl3ZasVvdj1lYoF4RaqlRAhe7pw.WU9SAu-l5tUYGwBY0j8HiEVT8TckS4A3m0dvoPIrXGc]
request-id: [d0e613d3-82b8-4318-80c7-553a1e063a55]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: !!binary |
eyJhcHBJZCI6ICJiOGE1ZTMwOC1hNGExLTRlYjQtODVlMy1jNjU2NTI0OGNhYWEiLCAiYWNjb3Vu
dEVuYWJsZWQiOiB0cnVlfQ==
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA3NzM5MTIsIm5iZiI6MTQ3MDc3MzkxMiwiZXhwIjoxNDcwNzc3ODEyLCJhY3IiOiIxIiwiYW1yIjpbInB3ZCJdLCJhcHBpZCI6IjA0YjA3Nzk1LThkZGItNDYxYS1iYmVlLTAyZjllMWJmN2I0NiIsImFwcGlkYWNyIjoiMCIsImVfZXhwIjo3MjAwLCJmYW1pbHlfbmFtZSI6InNkayIsImdpdmVuX25hbWUiOiJhZG1pbjMiLCJpcGFkZHIiOiIxNjcuMjIwLjEuMTMwIiwibmFtZSI6ImFkbWluMyIsIm9pZCI6ImU3ZTE1OGQzLTdjZGMtNDdjZC04ODI1LTU4NTlkN2FiMmI1NSIsInB1aWQiOiIxMDAzM0ZGRjk1RDQ0RTg0Iiwic2NwIjoiNjJlOTAzOTQtNjlmNS00MjM3LTkxOTAtMDEyMTc3MTQ1ZTEwIiwic3ViIjoiRVFkTzY4azdHRDU1dUZKUC05NE1lamFGckVuU0FOeC1oM3VyX3doZFNFNCIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInVuaXF1ZV9uYW1lIjoiYWRtaW4zQEF6dXJlU0RLVGVhbS5vbm1pY3Jvc29mdC5jb20iLCJ1cG4iOiJhZG1pbjNAQXp1cmVTREtUZWFtLm9ubWljcm9zb2Z0LmNvbSIsInZlciI6IjEuMCJ9.XSKoDy2osCzJmCYpt91F4x22Hx4PBTsZr7TZd9rgMWqpXdAWrGdrcf4OXlxuy_UIZ3eEq5lLoES4qWGYUlp8iICwd8GPLZg5GrnEiKtZ2TQwFP8SHOgz4fNsxh-t7f-3WwC4_oXna_iUawbDE9UgNzrtA1lZTggs7VPQAhNfFGASFrJIu0RGry_Ll9iwYugsAZqDUHQoeB5nd2VFHCU2e1mmo5JpK4VQxxw40X8L0Ohn3DUmmGr05jsqlbjsmRRHeIJ7pHtPImA18VzuTFmRRQLLVUhzCCeeeC1-53DU6-Uw2he4oAr7nFvx6ad5RGhw4i_KA8vJoPK3u9SnZIhwBg]
CommandName: [ad sp create-for-rbac]
Connection: [keep-alive]
Content-Length: ['73']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [aa327892-5e72-11e6-8325-64510658e3b3]
method: POST
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal/@Element","odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"c43e95a0-1bee-4396-9b42-4bf4142eaa10","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"azure-cli-2016-08-09-13-48-46","appId":"b8a5e308-a4a1-4eb4-85e3-c6565248caaa","appOwnerTenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"azure-cli-2016-08-09-13-48-46","errorUrl":null,"homepage":"http://azure-cli-2016-08-09-13-48-46","keyCredentials":[],"logoutUrl":null,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on behalf of the signed-in
user.","adminConsentDisplayName":"Access azure-cli-2016-08-09-13-48-46","id":"54a1d4e7-e5f1-45da-b338-3a6105175581","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on your behalf.","userConsentDisplayName":"Access
azure-cli-2016-08-09-13-48-46","value":"user_impersonation"}],"passwordCredentials":[],"preferredTokenSigningKeyThumbprint":null,"publisherName":"AzureSDKTeam","replyUrls":[],"samlMetadataUrl":null,"servicePrincipalNames":["b8a5e308-a4a1-4eb4-85e3-c6565248caaa","http://azureclitest-graph"],"servicePrincipalType":"Application","tags":[]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1499']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Tue, 09 Aug 2016 20:48:45 GMT']
Duration: ['3206972']
Expires: ['-1']
Location: ['https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/directoryObjects/c43e95a0-1bee-4396-9b42-4bf4142eaa10/Microsoft.DirectoryServices.ServicePrincipal']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [ziul/EJ8d7Mt967WHZCAf2Nrk0kJtsDec1DemBxlc/0=]
ocp-aad-session-key: [D4lqQFyesDEh438cxi9zmiWK-t9Ey6uvihsa2wYATy1ToDUugD4p9IVGFNRzFX64VISF6m7fdWwqQq_nhkD-dPcb8fYhMNs84iJMX29tn_cU5ZXH1wzlJj8e06wWSlB5g_LJ_R03P-PrGJl1pCHD_Q.ReHQ8oowYWetV20Pr1hlX954xar2gbZBA4E7KI7lfQo]
request-id: [1d54ad5f-bdd0-4d14-b2f0-dbb050c885f0]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 201, message: Created}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA3NzM5MTIsIm5iZiI6MTQ3MDc3MzkxMiwiZXhwIjoxNDcwNzc3ODEyLCJhY3IiOiIxIiwiYW1yIjpbInB3ZCJdLCJhcH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) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [aa327892-5e72-11e6-8325-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=identifierUris%2Fany%28s%3As%20eq%20%27http%3A%2F%2Fazureclitest-graph%27%29&api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application","value":[{"odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"1d8c8a5c-b47d-4beb-9b0a-95eee0f476ae","deletionTimestamp":null,"addIns":[],"appId":"b8a5e308-a4a1-4eb4-85e3-c6565248caaa","appRoles":[],"availableToOtherTenants":false,"displayName":"azure-cli-2016-08-09-13-48-46","errorUrl":null,"groupMembershipClaims":null,"homepage":"http://azure-cli-2016-08-09-13-48-46","identifierUris":["http://azureclitest-graph"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on behalf of the signed-in
user.","adminConsentDisplayName":"Access azure-cli-2016-08-09-13-48-46","id":"54a1d4e7-e5f1-45da-b338-3a6105175581","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on your behalf.","userConsentDisplayName":"Access
azure-cli-2016-08-09-13-48-46","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"passwordCredentials":[{"customKeyIdentifier":null,"endDate":"2017-08-09T13:48:46.671657Z","keyId":"ff39c697-bdcf-406a-9bec-cec2b5cd5787","startDate":"2016-08-09T13:48:46.671657Z","value":null}],"publicClient":null,"recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null}]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1576']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Tue, 09 Aug 2016 20:48:46 GMT']
Duration: ['1289149']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [hHqVmhHQqf0ZV0CGYSnqRf1YMcfxZTvflnV9IzDznY8=]
ocp-aad-session-key: [5uCkesR3E2eRBY06YkPjuVrB-8H64I0TOErjUsXDgfoYC6lCT0KUxS4ytx3366WkcN4FzoP73Rbc86V6qO4EFaWtI6vXUOFAaeRpbgTH2coILIXW2OFaS5MpO_wvZNhzkQmAJMwdXzyaLu9z_gzapA.II47iG_XAvcMsndVdV4ePhwWlj6bcAvQ3lWqgT2dEKI]
request-id: [c2a8a99b-1127-4f87-8ac7-faeabe0bd37c]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA3NzM5MTIsIm5iZiI6MTQ3MDc3MzkxMiwiZXhwIjoxNDcwNzc3ODEyLCJhY3IiOiIxIiwiYW1yIj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.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [aa327892-5e72-11e6-8325-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications/1d8c8a5c-b47d-4beb-9b0a-95eee0f476ae?api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application/@Element","odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"1d8c8a5c-b47d-4beb-9b0a-95eee0f476ae","deletionTimestamp":null,"addIns":[],"appId":"b8a5e308-a4a1-4eb4-85e3-c6565248caaa","appRoles":[],"availableToOtherTenants":false,"displayName":"azure-cli-2016-08-09-13-48-46","errorUrl":null,"groupMembershipClaims":null,"homepage":"http://azure-cli-2016-08-09-13-48-46","identifierUris":["http://azureclitest-graph"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on behalf of the signed-in
user.","adminConsentDisplayName":"Access azure-cli-2016-08-09-13-48-46","id":"54a1d4e7-e5f1-45da-b338-3a6105175581","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on your behalf.","userConsentDisplayName":"Access
azure-cli-2016-08-09-13-48-46","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"passwordCredentials":[{"customKeyIdentifier":null,"endDate":"2017-08-09T13:48:46.671657Z","keyId":"ff39c697-bdcf-406a-9bec-cec2b5cd5787","startDate":"2016-08-09T13:48:46.671657Z","value":null}],"publicClient":null,"recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1573']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Tue, 09 Aug 2016 20:48:47 GMT']
Duration: ['1275092']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [byV7XJWAq7jgjvvtZ2CaJuA82GZ/acjme4ZRRWTdPWQ=]
ocp-aad-session-key: [rh_hOj4uuteCP07FCLYcNv0osMg6rTzcUbHCu_HCjtpgOzLsz-u0LYNrY4PAWc8slsvCREgicLbJ9y-5LO_c3i0qMfFCip1mAnJY1b2NQ8HcU8RSjjGn0vQsDYsa79mK3NzqW19zK7fmAFRToTyr4Q.ZKADTt8aClLu1lqji6LB5-nbGVU2WV9qY_4y5gf6eAs]
request-id: [9a7c86a0-3b44-475d-b3d6-43c5209c0e89]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA3NzM5MTIsIm5iZiI6MTQ3MDc3MzkxMiwiZXhwIjoxNDcwNzc3ODEyLCJhY3IiOiIxIiwiYW1yIjpbInB3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(Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [aa327892-5e72-11e6-8325-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=identifierUris%2Fany%28s%3As%20eq%20%27http%3A%2F%2Fazureclitest-graph%27%29&api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application","value":[{"odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"1d8c8a5c-b47d-4beb-9b0a-95eee0f476ae","deletionTimestamp":null,"addIns":[],"appId":"b8a5e308-a4a1-4eb4-85e3-c6565248caaa","appRoles":[],"availableToOtherTenants":false,"displayName":"azure-cli-2016-08-09-13-48-46","errorUrl":null,"groupMembershipClaims":null,"homepage":"http://azure-cli-2016-08-09-13-48-46","identifierUris":["http://azureclitest-graph"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on behalf of the signed-in
user.","adminConsentDisplayName":"Access azure-cli-2016-08-09-13-48-46","id":"54a1d4e7-e5f1-45da-b338-3a6105175581","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on your behalf.","userConsentDisplayName":"Access
azure-cli-2016-08-09-13-48-46","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"passwordCredentials":[{"customKeyIdentifier":null,"endDate":"2017-08-09T13:48:46.671657Z","keyId":"ff39c697-bdcf-406a-9bec-cec2b5cd5787","startDate":"2016-08-09T13:48:46.671657Z","value":null}],"publicClient":null,"recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null}]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1576']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Tue, 09 Aug 2016 20:48:49 GMT']
Duration: ['2245663']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [dTAsMnhX/l7x7eL2MSUL7fcib4SvrwWG30ggkJW9NYs=]
ocp-aad-session-key: [s1kRHFUtGp1aVxxwolAxl2_EvkQf6idGRFfFW_Eo0RootFaAjBsfzkFE513bdA5Jqpi7QJ-DVyBa_dWz1IMgaE4lG7Kuztm6iw3fyG1awH5Uf9GEhSmOPo6qgJp7zR2ggNe-09Su6dgi7Ju0ibVxkA.yYFggnmCGXKCzkBgDWpi2IL9bBLNAXyqI37GluaRvns]
request-id: [fe86bd53-d38b-4131-b007-32ecc8274297]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA3NzM5MTIsIm5iZiI6MTQ3MDc3MzkxMiwiZXhwIjoxNDcwNzc3ODEyLCJhY3IiOiIx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
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [aa327892-5e72-11e6-8325-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27http%3A%2F%2Fazureclitest-graph%27%29&api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"c43e95a0-1bee-4396-9b42-4bf4142eaa10","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"azure-cli-2016-08-09-13-48-46","appId":"b8a5e308-a4a1-4eb4-85e3-c6565248caaa","appOwnerTenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"azure-cli-2016-08-09-13-48-46","errorUrl":null,"homepage":"http://azure-cli-2016-08-09-13-48-46","keyCredentials":[],"logoutUrl":null,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on behalf of the signed-in
user.","adminConsentDisplayName":"Access azure-cli-2016-08-09-13-48-46","id":"54a1d4e7-e5f1-45da-b338-3a6105175581","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on your behalf.","userConsentDisplayName":"Access
azure-cli-2016-08-09-13-48-46","value":"user_impersonation"}],"passwordCredentials":[],"preferredTokenSigningKeyThumbprint":null,"publisherName":"AzureSDKTeam","replyUrls":[],"samlMetadataUrl":null,"servicePrincipalNames":["http://azureclitest-graph","b8a5e308-a4a1-4eb4-85e3-c6565248caaa"],"servicePrincipalType":"Application","tags":[]}]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1502']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Tue, 09 Aug 2016 20:48:47 GMT']
Duration: ['1687216']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [7LgQVKlUfBK53VP1WiSZCXhU4wk6+7Qlho2ebCbpz1w=]
ocp-aad-session-key: [ADVuC_VhsOr09iDi4d6JDc8BHZGG7HoLLHihkMCGpKHJhR8kSfXpNy1pd3u5enatVfObU8Og3XMmvACv7o5bcidjMzIkcdsyr69ZqzWamAY6chNbIdXvD9o3LPz9wOnMwY1yFh_5Mf1QOh2rcwtQSA.9W9E3vr8ejYwewad5SBGkoQxUhdNgw3wHG8PAanKty4]
request-id: [3674d06e-1b83-44ab-af6e-ae7df4a799c1]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA3NzM5MTIsIm5iZiI6MTQ3MDc3MzkxMiwiZXhwIjoxNDcwNzc3OD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: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [aa327892-5e72-11e6-8325-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals/c43e95a0-1bee-4396-9b42-4bf4142eaa10?api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal/@Element","odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"c43e95a0-1bee-4396-9b42-4bf4142eaa10","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"azure-cli-2016-08-09-13-48-46","appId":"b8a5e308-a4a1-4eb4-85e3-c6565248caaa","appOwnerTenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"azure-cli-2016-08-09-13-48-46","errorUrl":null,"homepage":"http://azure-cli-2016-08-09-13-48-46","keyCredentials":[],"logoutUrl":null,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on behalf of the signed-in
user.","adminConsentDisplayName":"Access azure-cli-2016-08-09-13-48-46","id":"54a1d4e7-e5f1-45da-b338-3a6105175581","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on your behalf.","userConsentDisplayName":"Access
azure-cli-2016-08-09-13-48-46","value":"user_impersonation"}],"passwordCredentials":[],"preferredTokenSigningKeyThumbprint":null,"publisherName":"AzureSDKTeam","replyUrls":[],"samlMetadataUrl":null,"servicePrincipalNames":["http://azureclitest-graph","b8a5e308-a4a1-4eb4-85e3-c6565248caaa"],"servicePrincipalType":"Application","tags":[]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1499']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Tue, 09 Aug 2016 20:48:47 GMT']
Duration: ['1373697']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [8PjzTdC7yeHbBNOsma1pchqgXDN6h0hnmlb5IfBBHHY=]
ocp-aad-session-key: [N0I-eNMdSYEymGacQ2fgSWUF6skAZ3wk6Tpg76UwkkI62G6ONvxSw3_XuTrNPUYNFQKCmQ-Y8xZAtj0QQv0a5FVeSQtLYegSoTI3B56VH4wZqq_lteo-wEbXa1QcyQse2kBgrjNb3ZiaPDufG78vOA.5N6kiGU6wDEbeBRmGEdl5Ah7NPRk4nFAEW-Dcrk6zKM]
request-id: [9f6b8c84-abd5-4300-891f-360718bbca85]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA3NzM5MTIsIm5iZiI6MTQ3MDc3MzkxMiwiZXhwIjoxNDcwNzc3ODEyLCJhY3IiOiIx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
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [aa327892-5e72-11e6-8325-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27http%3A%2F%2Fazureclitest-graph%27%29&api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"c43e95a0-1bee-4396-9b42-4bf4142eaa10","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"azure-cli-2016-08-09-13-48-46","appId":"b8a5e308-a4a1-4eb4-85e3-c6565248caaa","appOwnerTenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"azure-cli-2016-08-09-13-48-46","errorUrl":null,"homepage":"http://azure-cli-2016-08-09-13-48-46","keyCredentials":[],"logoutUrl":null,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on behalf of the signed-in
user.","adminConsentDisplayName":"Access azure-cli-2016-08-09-13-48-46","id":"54a1d4e7-e5f1-45da-b338-3a6105175581","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on your behalf.","userConsentDisplayName":"Access
azure-cli-2016-08-09-13-48-46","value":"user_impersonation"}],"passwordCredentials":[],"preferredTokenSigningKeyThumbprint":null,"publisherName":"AzureSDKTeam","replyUrls":[],"samlMetadataUrl":null,"servicePrincipalNames":["http://azureclitest-graph","b8a5e308-a4a1-4eb4-85e3-c6565248caaa"],"servicePrincipalType":"Application","tags":[]}]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1502']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Tue, 09 Aug 2016 20:48:47 GMT']
Duration: ['1318228']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [kAyVw042/2zu9oGzllfqIbPkl7150lhvF+62NQu4XyQ=]
ocp-aad-session-key: [7Wwpc8REcAxXabx-ItWn9ci_RW_Jtjac2WCfllc5ALN56aBeuGBcZ87y4l5yP4Lw82uIBi9EU8-xYVBQMZjgzqoD5ABvgACjogPMUs9z_OGaMc1-CGYS-OjQokjaxgPXCHC1Pa1tRcVXbhDEzOBP3A.J1Tohdf2iOq0x6Rir3_U-KpcVzw_taAEPMwYBEIOQdI]
request-id: [c4dfaf5a-8416-443a-810d-02d76f3a6ba1]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA3NzM5MTIsIm5iZiI6MTQ3MDc3MzkxMiwiZXhwIjoxNDcwNzc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content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [aa327892-5e72-11e6-8325-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27http%3A%2F%2Fazureclitest-graph%27%29&api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"c43e95a0-1bee-4396-9b42-4bf4142eaa10","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":[],"appDisplayName":"azure-cli-2016-08-09-13-48-46","appId":"b8a5e308-a4a1-4eb4-85e3-c6565248caaa","appOwnerTenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","appRoleAssignmentRequired":false,"appRoles":[],"displayName":"azure-cli-2016-08-09-13-48-46","errorUrl":null,"homepage":"http://azure-cli-2016-08-09-13-48-46","keyCredentials":[],"logoutUrl":null,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on behalf of the signed-in
user.","adminConsentDisplayName":"Access azure-cli-2016-08-09-13-48-46","id":"54a1d4e7-e5f1-45da-b338-3a6105175581","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on your behalf.","userConsentDisplayName":"Access
azure-cli-2016-08-09-13-48-46","value":"user_impersonation"}],"passwordCredentials":[],"preferredTokenSigningKeyThumbprint":null,"publisherName":"AzureSDKTeam","replyUrls":[],"samlMetadataUrl":null,"servicePrincipalNames":["http://azureclitest-graph","b8a5e308-a4a1-4eb4-85e3-c6565248caaa"],"servicePrincipalType":"Application","tags":[]}]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1502']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Tue, 09 Aug 2016 20:48:47 GMT']
Duration: ['1299819']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [YG6wBefjVJxqNbGOayHLDHAhQTzCuGyB9rAfmyJHD1U=]
ocp-aad-session-key: [Al6XjvDrjJGE-RoIGTqLoJQgCICb0SFwS3PQvlZFETXVbKH1itBOH4U9V5WRFbWD8m-Hs36f6zsfocxYr-UJn7fcveRBjcMq3n2p_LyyFlb38-1GZrpHRPpPiuHFsp4t7Ht4Gle_hHk3jWbwo4LF4Q.6B7USQ37_F-4tdulE2MLnDcOT6G1TVXvfYSnN4iMRJc]
request-id: [984cdf5d-1190-4e69-9422-fcfb2bd3d8ae]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA3NzM5MTIsIm5iZiI6MTQ3MDc3M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[ad sp delete]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [aa327892-5e72-11e6-8325-64510658e3b3]
method: DELETE
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals/c43e95a0-1bee-4396-9b42-4bf4142eaa10?api-version=1.6
response:
body: {string: ''}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
DataServiceVersion: [1.0;]
Date: ['Tue, 09 Aug 2016 20:48:49 GMT']
Duration: ['2708136']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [dTAsMnhX/l7x7eL2MSUL7fcib4SvrwWG30ggkJW9NYs=]
ocp-aad-session-key: [LWzNhoAeKaPKRakfHwg_cA90ZMkszn__dYbqWIxftftiINqIYD73PLiWyxZ4RY6dPhwgYPPdwv3yArUSVVYPJ9R5mnnc5TGWff3BLux8kWRc_jGsF7PVlDFAj5KT04aGVGN3IVRVA_ont1BS5tR8xA.8YxEf-J0Q9Tc_0dwEeEZPZ7Kx7x4__mrTQcQVePL288]
request-id: [8c369749-a0a3-47de-ac6b-da87264308ac]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 204, message: No Content}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ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A1lZTggs7VPQAhNfFGASFrJIu0RGry_Ll9iwYugsAZqDUHQoeB5nd2VFHCU2e1mmo5JpK4VQxxw40X8L0Ohn3DUmmGr05jsqlbjsmRRHeIJ7pHtPImA18VzuTFmRRQLLVUhzCCeeeC1-53DU6-Uw2he4oAr7nFvx6ad5RGhw4i_KA8vJoPK3u9SnZIhwBg]
CommandName: [ad sp list]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [aa327892-5e72-11e6-8325-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27http%3A%2F%2Fazureclitest-graph%27%29&api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.ServicePrincipal","value":[]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['166']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Tue, 09 Aug 2016 20:48:49 GMT']
Duration: ['1111839']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [wUAYkBKal6oqagFY7aouGCtQCtmejpC9YPiTOfHJ8us=]
ocp-aad-session-key: [bij6B1K2MVlY3E_aa0CgCIXCi3_yKeO3x1kkAIfAUAhXGOS6uja7Ivf91-QFGOjGtdPmRIJE_UyAxWtW3bIJQZB8xD_ov2d-kuAVsMpp3hE_-m5i2xX5EXRm9Bgo7sSeZdzjX190q4yi8Eh5q2aV9Q.4PGvxiv4YY-M4o-Oe1dnQbeKHTlK6OUpew_TXNncBno]
request-id: [46ff8496-427c-464d-862a-611569923984]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA3NzM5MTIsIm5iZiI6MTQ3MDc3MzkxMiwiZXhwIjoxNDcwNzc3ODEyLCJhY3IiOiIxIiwiYW1yIjpbInB3ZCJdLCJhcHBpZCI6IjA0YjA3Nzk1LThkZGItNDYxYS1iYmVlLTAyZjllMWJmN2I0NiIsImFwcGlkYWNyIjoiMCIsImVfZXhwIjo3MjAwLCJmYW1pbHlfbmFtZSI6InNkayIsImdpdmVuX25hbWUiOiJhZG1pbjMiLCJpcGFkZHIiOiIxNjcuMjIwLjEuMTMwIiwibmFtZSI6ImFkbWluMyIsIm9pZCI6ImU3ZTE1OGQzLTdjZGMtNDdjZC04ODI1LTU4NTlkN2FiMmI1NSIsInB1aWQiOiIxMDAzM0ZGRjk1RDQ0RTg0Iiwic2NwIjoiNjJlOTAzOTQtNjlmNS00MjM3LTkxOTAtMDEyMTc3MTQ1ZTEwIiwic3ViIjoiRVFkTzY4azdHRDU1dUZKUC05NE1lamFGckVuU0FOeC1oM3VyX3doZFNFNCIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInVuaXF1ZV9uYW1lIjoiYWRtaW4zQEF6dXJlU0RLVGVhbS5vbm1pY3Jvc29mdC5jb20iLCJ1cG4iOiJhZG1pbjNAQXp1cmVTREtUZWFtLm9ubWljcm9zb2Z0LmNvbSIsInZlciI6IjEuMCJ9.XSKoDy2osCzJmCYpt91F4x22Hx4PBTsZr7TZd9rgMWqpXdAWrGdrcf4OXlxuy_UIZ3eEq5lLoES4qWGYUlp8iICwd8GPLZg5GrnEiKtZ2TQwFP8SHOgz4fNsxh-t7f-3WwC4_oXna_iUawbDE9UgNzrtA1lZTggs7VPQAhNfFGASFrJIu0RGry_Ll9iwYugsAZqDUHQoeB5nd2VFHCU2e1mmo5JpK4VQxxw40X8L0Ohn3DUmmGr05jsqlbjsmRRHeIJ7pHtPImA18VzuTFmRRQLLVUhzCCeeeC1-53DU6-Uw2he4oAr7nFvx6ad5RGhw4i_KA8vJoPK3u9SnZIhwBg]
CommandName: [ad app delete]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [aa327892-5e72-11e6-8325-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=identifierUris%2Fany%28s%3As%20eq%20%27http%3A%2F%2Fazureclitest-graph%27%29&api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application","value":[{"odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"1d8c8a5c-b47d-4beb-9b0a-95eee0f476ae","deletionTimestamp":null,"addIns":[],"appId":"b8a5e308-a4a1-4eb4-85e3-c6565248caaa","appRoles":[],"availableToOtherTenants":false,"displayName":"azure-cli-2016-08-09-13-48-46","errorUrl":null,"groupMembershipClaims":null,"homepage":"http://azure-cli-2016-08-09-13-48-46","identifierUris":["http://azureclitest-graph"],"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on behalf of the signed-in
user.","adminConsentDisplayName":"Access azure-cli-2016-08-09-13-48-46","id":"54a1d4e7-e5f1-45da-b338-3a6105175581","isEnabled":true,"type":"User","userConsentDescription":"Allow
the application to access azure-cli-2016-08-09-13-48-46 on your behalf.","userConsentDisplayName":"Access
azure-cli-2016-08-09-13-48-46","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"passwordCredentials":[{"customKeyIdentifier":null,"endDate":"2017-08-09T13:48:46.671657Z","keyId":"ff39c697-bdcf-406a-9bec-cec2b5cd5787","startDate":"2016-08-09T13:48:46.671657Z","value":null}],"publicClient":null,"recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null}]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['1576']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Tue, 09 Aug 2016 20:48:49 GMT']
Duration: ['1498386']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [0AVMhAfrTlI+fqqedZbHx2kwMj2ND9BLZXbvopf3MpM=]
ocp-aad-session-key: [JRWgPEi3v_BprDPcY324daM8q4Pm8mhYJ4bnK1xQPcUMyx9EtRhjFfIxo5k1kZlVOWk8K0Q6t-mUdMniLX2YR4Ane70XfTEFhXNX2Y3da-FDIafyxB_c3cSW4KtPHgNazlJ2yFVMmVeQNjw5ASUQlw.eYFmBAohZf06y1T6ypGAOh9GtV8f-jCWUhnsxiHCkVs]
request-id: [3c69a6ba-cba9-47c6-8e9f-6a69e8d24cfa]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA3NzM5MTIsIm5iZiI6MTQ3MDc3MzkxMiwiZXhwIjoxNDcwNzc3ODEyLCJhY3IiOiIxIiwiYW1yIjpbInB3ZCJdLCJhcHBpZCI6IjA0YjA3Nzk1LThkZGItNDYxYS1iYmVlLTAyZjllMWJmN2I0NiIsImFwcGlkYWNyIjoiMCIsImVfZXhwIjo3MjAwLCJmYW1pbHlfbmFtZSI6InNkayIsImdpdmVuX25hbWUiOiJhZG1pbjMiLCJpcGFkZHIiOiIxNjcuMjIwLjEuMTMwIiwibmFtZSI6ImFkbWluMyIsIm9pZCI6ImU3ZTE1OGQzLTdjZGMtNDdjZC04ODI1LTU4NTlkN2FiMmI1NSIsInB1aWQiOiIxMDAzM0ZGRjk1RDQ0RTg0Iiwic2NwIjoiNjJlOTAzOTQtNjlmNS00MjM3LTkxOTAtMDEyMTc3MTQ1ZTEwIiwic3ViIjoiRVFkTzY4azdHRDU1dUZKUC05NE1lamFGckVuU0FOeC1oM3VyX3doZFNFNCIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInVuaXF1ZV9uYW1lIjoiYWRtaW4zQEF6dXJlU0RLVGVhbS5vbm1pY3Jvc29mdC5jb20iLCJ1cG4iOiJhZG1pbjNAQXp1cmVTREtUZWFtLm9ubWljcm9zb2Z0LmNvbSIsInZlciI6IjEuMCJ9.XSKoDy2osCzJmCYpt91F4x22Hx4PBTsZr7TZd9rgMWqpXdAWrGdrcf4OXlxuy_UIZ3eEq5lLoES4qWGYUlp8iICwd8GPLZg5GrnEiKtZ2TQwFP8SHOgz4fNsxh-t7f-3WwC4_oXna_iUawbDE9UgNzrtA1lZTggs7VPQAhNfFGASFrJIu0RGry_Ll9iwYugsAZqDUHQoeB5nd2VFHCU2e1mmo5JpK4VQxxw40X8L0Ohn3DUmmGr05jsqlbjsmRRHeIJ7pHtPImA18VzuTFmRRQLLVUhzCCeeeC1-53DU6-Uw2he4oAr7nFvx6ad5RGhw4i_KA8vJoPK3u9SnZIhwBg]
CommandName: [ad app delete]
Connection: [keep-alive]
Content-Length: ['0']
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [aa327892-5e72-11e6-8325-64510658e3b3]
method: DELETE
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications/1d8c8a5c-b47d-4beb-9b0a-95eee0f476ae?api-version=1.6
response:
body: {string: ''}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
DataServiceVersion: [1.0;]
Date: ['Tue, 09 Aug 2016 20:48:51 GMT']
Duration: ['2259231']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [HgtARgICke4TErkqWAfrwO3iRmrkp/C4qeaAT5kWTU8=]
ocp-aad-session-key: [8NYBUYudDov_3kCT9pd1Qj09Ok3-Dv1SEs1yzi2RGy6dhdMpAsEws3GReDd4FvKI4Yf1rxiy-_Fw22q1_pc5eAneMNayUVI_60yvANT-d3Ac2ztaKpVIcfkV76mdjD9jLPCgegKePQLP2hTRRdJGVA.oiIr5gGW2kMKSIlfPTlD-LOQmHHyVRT2PldKFK0gZYU]
request-id: [c765ead5-e1b2-4bf3-a287-ca73130fbd65]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 204, message: No Content}
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyIsImtpZCI6IlliUkFRUlljRV9tb3RXVkpLSHJ3TEJiZF85cyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0LyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YS8iLCJpYXQiOjE0NzA3NzM5MTIsIm5iZiI6MTQ3MDc3MzkxMiwiZXhwIjoxNDcwNzc3ODEyLCJhY3IiOiIxIiwiYW1yIjpbInB3ZCJdLCJhcHBpZCI6IjA0YjA3Nzk1LThkZGItNDYxYS1iYmVlLTAyZjllMWJmN2I0NiIsImFwcGlkYWNyIjoiMCIsImVfZXhwIjo3MjAwLCJmYW1pbHlfbmFtZSI6InNkayIsImdpdmVuX25hbWUiOiJhZG1pbjMiLCJpcGFkZHIiOiIxNjcuMjIwLjEuMTMwIiwibmFtZSI6ImFkbWluMyIsIm9pZCI6ImU3ZTE1OGQzLTdjZGMtNDdjZC04ODI1LTU4NTlkN2FiMmI1NSIsInB1aWQiOiIxMDAzM0ZGRjk1RDQ0RTg0Iiwic2NwIjoiNjJlOTAzOTQtNjlmNS00MjM3LTkxOTAtMDEyMTc3MTQ1ZTEwIiwic3ViIjoiRVFkTzY4azdHRDU1dUZKUC05NE1lamFGckVuU0FOeC1oM3VyX3doZFNFNCIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInVuaXF1ZV9uYW1lIjoiYWRtaW4zQEF6dXJlU0RLVGVhbS5vbm1pY3Jvc29mdC5jb20iLCJ1cG4iOiJhZG1pbjNAQXp1cmVTREtUZWFtLm9ubWljcm9zb2Z0LmNvbSIsInZlciI6IjEuMCJ9.XSKoDy2osCzJmCYpt91F4x22Hx4PBTsZr7TZd9rgMWqpXdAWrGdrcf4OXlxuy_UIZ3eEq5lLoES4qWGYUlp8iICwd8GPLZg5GrnEiKtZ2TQwFP8SHOgz4fNsxh-t7f-3WwC4_oXna_iUawbDE9UgNzrtA1lZTggs7VPQAhNfFGASFrJIu0RGry_Ll9iwYugsAZqDUHQoeB5nd2VFHCU2e1mmo5JpK4VQxxw40X8L0Ohn3DUmmGr05jsqlbjsmRRHeIJ7pHtPImA18VzuTFmRRQLLVUhzCCeeeC1-53DU6-Uw2he4oAr7nFvx6ad5RGhw4i_KA8vJoPK3u9SnZIhwBg]
CommandName: [ad app list]
Connection: [keep-alive]
Content-Type: [application/json; charset=utf-8]
User-Agent: [python/3.5.0 (Windows-10.0.14393) requests/2.9.1 msrest/0.4.0 msrest_azure/0.4.1
graphrbacmanagementclient/0.30.0rc5 Azure-SDK-For-Python AZURECLI/0.0.1.dev0]
accept-language: [en-US]
x-ms-client-request-id: [aa327892-5e72-11e6-8325-64510658e3b3]
method: GET
uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=identifierUris%2Fany%28s%3As%20eq%20%27http%3A%2F%2Fazureclitest-graph%27%29&api-version=1.6
response:
body: {string: '{"odata.metadata":"https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/Microsoft.DirectoryServices.Application","value":[]}'}
headers:
Access-Control-Allow-Origin: ['*']
Cache-Control: [no-cache]
Content-Length: ['161']
Content-Type: [application/json;odata=minimalmetadata;streaming=true;charset=utf-8]
DataServiceVersion: [3.0;]
Date: ['Tue, 09 Aug 2016 20:48:50 GMT']
Duration: ['1115871']
Expires: ['-1']
Pragma: [no-cache]
Server: [Microsoft-IIS/8.5]
Strict-Transport-Security: [max-age=31536000; includeSubDomains]
X-AspNet-Version: [4.0.30319]
X-Content-Type-Options: [nosniff]
X-Powered-By: [ASP.NET, ASP.NET]
ocp-aad-diagnostics-server-name: [+o2epAhVcKnV7Z/zLxo+xnjf/scQ7vJdqTvfutodkNI=]
ocp-aad-session-key: [nHd1_WuS3K9Oq45IUazpoWQcvwYE3_pM-rVwT9UxqEeHp0NUIz6UWSHInOwsQyx_0a9g0VIuWjREbpE6vHPt9CFaDMylNrd5vU4ixu9B1ZNSIhmXMiGbqFtgKhtxFTuuOio_NemwXw19IriQd-1bsQ.pfEmAZsRL38h4wVRpvMKVolt-z3jYegE2Wq8kXuYYg4]
request-id: [f1d9aa2e-c2b8-4679-b9df-b25884383e37]
x-ms-dirapi-data-contract-version: ['1.6']
status: {code: 200, message: OK}
version: 1

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

@ -0,0 +1,80 @@
#---------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#---------------------------------------------------------------------------------------------
from azure.cli.utils.vcr_test_base import VCRTestBase, JMESPathCheck, NoneCheck
class ServicePrincipalExpressCreateScenarioTest(VCRTestBase):
def __init__(self, test_method):
super(ServicePrincipalExpressCreateScenarioTest, self).__init__(__file__, test_method)
def test_sp_create_scenario(self):
self.execute()
def body(self):
app_id_uri = "http://azureclitest-graph"
#crerate app through express option
self.cmd('ad sp create-for-rbac -n {}'.format(app_id_uri), None)
#show/list app
self.cmd('ad app show --id {}'.format(app_id_uri), checks=[
JMESPathCheck('identifierUris[0]', app_id_uri)
])
self.cmd('ad app list --identifier-uri {}'.format(app_id_uri), checks=[
JMESPathCheck('[0].identifierUris[0]', app_id_uri),
JMESPathCheck('length([*])', 1)
])
#show/list sp
self.cmd('ad sp show --id {}'.format(app_id_uri), checks=[
JMESPathCheck('servicePrincipalNames[0]', app_id_uri)
])
self.cmd('ad sp list --spn {}'.format(app_id_uri), checks=[
JMESPathCheck('[0].servicePrincipalNames[0]', app_id_uri),
JMESPathCheck('length([*])', 1),
])
#cleanup
self.cmd('ad sp delete --id {}'.format(app_id_uri), None)
self.cmd('ad sp list --spn {}'.format(app_id_uri), checks=NoneCheck())
self.cmd('ad app delete --id {}'.format(app_id_uri), None)
self.cmd('ad app list --identifier-uri {}'.format(app_id_uri), checks=NoneCheck())
class ApplicationSetScenarioTest(VCRTestBase):
def __init__(self, test_method):
super(ApplicationSetScenarioTest, self).__init__(__file__, test_method)
def test_application_set_scenario(self):
self.execute()
def body(self):
app_id_uri = 'http://azureclitest-graph'
display_name = 'azureclitest'
#crerate app through general option
self.cmd('ad app create --display-name {} --homepage {} --identifier-uris {}'.format(display_name, app_id_uri, app_id_uri),
checks=[JMESPathCheck('identifierUris[0]', app_id_uri)])
#show/list app
self.cmd('ad app show --id {}'.format(app_id_uri), checks=[
JMESPathCheck('identifierUris[0]', app_id_uri)
])
self.cmd('ad app list --display-name {}'.format(display_name), checks=[
JMESPathCheck('[0].identifierUris[0]', app_id_uri),
JMESPathCheck('length([*])', 1)
])
#update app
reply_uri = "http://azureclitest-replyuri"
self.cmd('ad app update --id {} --reply-urls {}'.format(app_id_uri, reply_uri))
self.cmd('ad app show --id {}'.format(app_id_uri), checks=[
JMESPathCheck('replyUrls[0]', reply_uri)
])
#delete app
self.cmd('ad app delete --id {}'.format(app_id_uri))
self.cmd('ad app list --identifier-uri {}'.format(app_id_uri), checks=NoneCheck())