@@ -42,8 +42,7 @@ def reset_sp_credentials_for_mediaservice(cmd, client, account_name, resource_gr
42
42
sp_oid = aad_sp ['id' ] # pylint: disable=unsubscriptable-object
43
43
44
44
profile = Profile (cli_ctx = cmd .cli_ctx )
45
- _ , _ , tenant_id = profile .get_login_credentials (
46
- resource = cmd .cli_ctx .cloud .endpoints .active_directory_graph_resource_id )
45
+ _ , _ , tenant_id = profile .get_login_credentials ()
47
46
48
47
subscription_id = get_subscription_id (cmd .cli_ctx )
49
48
@@ -84,8 +83,7 @@ def create_or_update_assign_sp_to_mediaservice(cmd, client, account_name, resour
84
83
app_object_id = aad_application ['id' ]
85
84
86
85
profile = Profile (cli_ctx = cmd .cli_ctx )
87
- _ , _ , tenant_id = profile .get_login_credentials (
88
- resource = cmd .cli_ctx .cloud .endpoints .active_directory_graph_resource_id )
86
+ _ , _ , tenant_id = profile .get_login_credentials ()
89
87
created_password = add_sp_password (graph_client , entity_name_string = 'password' , app_id = app_object_id ,
90
88
password_display_name = password_display_name , years = years )
91
89
@@ -104,8 +102,7 @@ def create_or_update_assign_sp_to_mediaservice(cmd, client, account_name, resour
104
102
def _update_sp (cmd , graph_client , aad_sp , ams , account_name , resource_group_name , display_name ,
105
103
new_sp_name , role , years , sp_password , xml ):
106
104
profile = Profile (cli_ctx = cmd .cli_ctx )
107
- _ , _ , tenant_id = profile .get_login_credentials (
108
- resource = cmd .cli_ctx .cloud .endpoints .active_directory_graph_resource_id )
105
+ _ , _ , tenant_id = profile .get_login_credentials ()
109
106
sp_oid = aad_sp ['id' ]
110
107
app_id = aad_sp ['appId' ]
111
108
app_object_id = _get_application_object_id (graph_client , app_id )
0 commit comments