Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to deploy llmops folder python related code #222

Open
dotcom-gosahi opened this issue Dec 30, 2024 · 0 comments
Open

Unable to deploy llmops folder python related code #222

dotcom-gosahi opened this issue Dec 30, 2024 · 0 comments

Comments

@dotcom-gosahi
Copy link

I am using azure devops pipelines to execute the experiments and deploy the prompt flow as an ML endpoint.
When I am facing some issue related to authentication.
I am not sure why it is picking up wrong tenant id.

Adding the logs for reference.

File "C:\hostedtoolcache\windows\Python\3.9.16\x64\lib\site-packages\azure\ai\ml_telemetry\activity.py", line 288, in wrapper
return f(*args, **kwargs)
File "C:\hostedtoolcache\windows\Python\3.9.16\x64\lib\site-packages\azure\ai\ml\operations_data_operations.py", line 424, in create_or_update
raise ex
File "C:\hostedtoolcache\windows\Python\3.9.16\x64\lib\site-packages\azure\ai\ml\operations_data_operations.py", line 366, in create_or_update
data, _ = _check_and_upload_path(
File "C:\hostedtoolcache\windows\Python\3.9.16\x64\lib\site-packages\azure\ai\ml_artifacts_artifact_utilities.py", line 502, in _check_and_upload_path
uploaded_artifact = _upload_to_datastore(
File "C:\hostedtoolcache\windows\Python\3.9.16\x64\lib\site-packages\azure\ai\ml_artifacts_artifact_utilities.py", line 387, in _upload_to_datastore
artifact = upload_artifact(
File "C:\hostedtoolcache\windows\Python\3.9.16\x64\lib\site-packages\azure\ai\ml_artifacts_artifact_utilities.py", line 243, in upload_artifact
datastore_info = get_datastore_info(datastore_operation, datastore_name)
File "C:\hostedtoolcache\windows\Python\3.9.16\x64\lib\site-packages\azure\ai\ml_artifacts_artifact_utilities.py", line 93, in get_datastore_info
datastore = operations.get(name, include_secrets=credential is None)
File "C:\hostedtoolcache\windows\Python\3.9.16\x64\lib\site-packages\azure\ai\ml_telemetry\activity.py", line 288, in wrapper
return f(*args, **kwargs)
File "C:\hostedtoolcache\windows\Python\3.9.16\x64\lib\site-packages\azure\ai\ml\operations_datastore_operations.py", line 150, in get
datastore_resource = self._operation.get(
File "C:\hostedtoolcache\windows\Python\3.9.16\x64\lib\site-packages\azure\core\tracing\decorator.py", line 105, in wrapper_use_tracer
return func(*args, **kwargs)
File "C:\hostedtoolcache\windows\Python\3.9.16\x64\lib\site-packages\azure\ai\ml_restclient\v2023_04_01_preview\operations_datastores_operations.py", line 512, in get
map_error(status_code=response.status_code, response=response, error_map=error_map)
File "C:\hostedtoolcache\windows\Python\3.9.16\x64\lib\site-packages\azure\core\exceptions.py", line 163, in map_error
raise error
azure.core.exceptions.ClientAuthenticationError: (InvalidAuthenticationTokenTenant) The access token is from the wrong issuer 'https://sts.windows.net/975f013f-7f24-47e8-a7d3-abc4752bf346/'. It must match one of the tenants 'https://sts.windows.net/2f4a9838-26b7-47ee-be60-ccc1fdec5953/,https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/' associated with this subscription. Please use any authority (URL) from 'https://login.windows.net/2f4a9838-26b7-47ee-be60-ccc1fdec5953,https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47' to get the token. Note, if the subscription is transferred to another tenant there is no impact to the services, but information about new tenant could take time to propagate (up to an hour). If you just transferred your subscription and see this error message, please try back later.
Code: InvalidAuthenticationTokenTenant
Message: The access token is from the wrong issuer 'https://sts.windows.net/975f013f-7f24-47e8-a7d3-abc4752bf346/'. It must match one of the tenants 'https://sts.windows.net/2f4a9838-26b7-47ee-be60-ccc1fdec5953/,https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/' associated with this subscription. Please use any authority (URL) from 'https://login.windows.net/2f4a9838-26b7-47ee-be60-ccc1fdec5953,https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47' to get the token. Note, if the subscription is transferred to another tenant there is no impact to the services, but information about new tenant could take time to propagate (up to an hour). If you just transferred your subscription and see this error message, please try back later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant