Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Python by databrick ( 6 years ago )
UserErrorException: UserErrorException:
Message: You are currently logged-in to 618beba8-9136-4854-bd7e-49ac25b7f965 tenant. You don't have access to f6f9da8d-fbb4-4cf8-9592-dcbec2e66224 subscription, please check if it is in this tenant. All the subscriptions that you have access to in this tenant are =
[SubscriptionInfo(subscription_name='Mozanta Internal', subscription_id='a6e29106-7def-4376-8ab8-b8a535519d42')].
Please refer to aka.ms/aml-notebook-auth for different authentication mechanisms in azureml-sdk.
InnerException None
ErrorResponse
{
"error": {
"code": "UserError",
"message": "You are currently logged-in to 618beba8-9136-4854-bd7e-49ac25b7f965 tenant. You don't have access to f6f9da8d-fbb4-4cf8-9592-dcbec2e66224 subscription, please check if it is in this tenant. All the subscriptions that you have access to in this tenant are = \n [SubscriptionInfo(subscription_name='Mozanta Internal', subscription_id='a6e29106-7def-4376-8ab8-b8a535519d42')]. \n Please refer to aka.ms/aml-notebook-auth for different authentication mechanisms in azureml-sdk."
}
}
During handling of the above exception, another exception occurred:
UserErrorException Traceback (most recent call last)
<command-1848810335867414> in <module>
1 ws = Workspace(workspace_name = workspace,
2 subscription_id = subscription_id,
----> 3 resource_group = resource_grp)
4
5 ws.get_details()
/databricks/python/lib/python3.7/site-packages/azureml/core/workspace.py in __init__(self, subscription_id, resource_group, workspace_name, auth, _location, _disable_service_check, _workspace_id, sku)
187
188 if not _disable_service_check:
--> 189 auto_rest_workspace = _commands.get_workspace(auth, subscription_id, resource_group, workspace_name)
190 self._workspace_autorest_object = auto_rest_workspace
191
/databricks/python/lib/python3.7/site-packages/azureml/_project/_commands.py in get_workspace(auth, subscription_id, resource_group_name, workspace_name)
358 """
359 try:
--> 360 workspaces = auth._get_service_client(AzureMachineLearningWorkspaces, subscription_id).workspaces
361 return WorkspacesOperations.get(
362 workspaces,
/databricks/python/lib/python3.7/site-packages/azureml/core/authentication.py in _get_service_client(self, client_class, subscription_id, subscription_bound, base_url)
143 if subscription_id:
144 all_subscription_list, tenant_id = self._get_all_subscription_ids()
--> 145 self._check_if_subscription_exists(subscription_id, all_subscription_list, tenant_id)
146
147 if not base_url:
/databricks/python/lib/python3.7/site-packages/azureml/core/authentication.py in wrapper(self, *args, **kwargs)
280 InteractiveLoginAuthentication(force=True, tenant_id=self._tenant_id)
281 # Try one more time
--> 282 return test_function(self, *args, **kwargs)
283 else:
284 raise e
/databricks/python/lib/python3.7/site-packages/azureml/core/authentication.py in _check_if_subscription_exists(self, subscription_id, subscription_id_list, tenant_id)
481 def _check_if_subscription_exists(self, subscription_id, subscription_id_list, tenant_id):
482 super(InteractiveLoginAuthentication, self)._check_if_subscription_exists(subscription_id,
--> 483 subscription_id_list, tenant_id)
484
485 def _get_ambient(self):
/databricks/python/lib/python3.7/site-packages/azureml/core/authentication.py in _check_if_subscription_exists(self, subscription_id, subscription_id_list, tenant_id)
228 "authentication mechanisms in azureml-sdk.".format(tenant_id,
229 subscription_id,
--> 230 subscription_id_list))
231
232 def _login_on_failure_decorator(lock_to_use):
UserErrorException: UserErrorException:
Message: You are currently logged-in to 618beba8-9136-4854-bd7e-49ac25b7f965 tenant. You don't have access to f6f9da8d-fbb4-4cf8-9592-dcbec2e66224 subscription, please check if it is in this tenant. All the subscriptions that you have access to in this tenant are =
[SubscriptionInfo(subscription_name='Mozanta Internal', subscription_id='a6e29106-7def-4376-8ab8-b8a535519d42')].
Please refer to aka.ms/aml-notebook-auth for different authentication mechanisms in azureml-sdk.
InnerException None
ErrorResponse
{
"error": {
"code": "UserError",
"message": "You are currently logged-in to 618beba8-9136-4854-bd7e-49ac25b7f965 tenant. You don't have access to f6f9da8d-fbb4-4cf8-9592-dcbec2e66224 subscription, please check if it is in this tenant. All the subscriptions that you have access to in this tenant are = \n [SubscriptionInfo(subscription_name='Mozanta Internal', subscription_id='a6e29106-7def-4376-8ab8-b8a535519d42')]. \n Please refer to aka.ms/aml-notebook-auth for different authentication mechanisms in azureml-sdk."
}
}
Revise this Paste