Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

AKS Model Testing | Unauthorized, no Auth Header  #227

Closed

Description

Hi,
I have deployed the Azure ML Model onto ACI and AKS.
I can pass in the inputs in for ACI, and get the scores back.

Screenshot 2020-03-11 at 5 29 41 PM

But for AKS, it says Unauthorized and requires an auth header.

Screenshot 2020-03-11 at 5 27 10 PM

What bearer token do I use? Else suggest a way out.

Activity

  1. dtzar commented on Mar 13, 2020

    @dtzar
    Contributor
  2. dtzar commented on Mar 13, 2020

    @dtzar
    Contributor

    IMO we should disable SSL and authentication by default. Sergii Baidachnyi (@sbaidachni) if you'd like to keep these secure settings we should have it documented how to auth.

  3. gdprtcl commented on Mar 16, 2020

    @gdprtcl
    Author

    Sergii Baidachnyi (@sbaidachni) David Tesar (@dtzar) It will be helpful to everyone if you can add the section to auth securely into the AKS deployment using the necessary keys and how one can retrieve them.

  4. added
    doc
    on Mar 24, 2020
  5. sudivate commented on Mar 24, 2020

    @sudivate
    Contributor

    When deploying to Azure Kubernetes Service, key-based authentication is enabled by default. You can also enable token-based authentication. Token-based authentication requires clients to use an Azure Active Directory account to request an authentication token, which is used to make requests to the deployed service. For more details on how to authenticate against the AKS service please follow the documentation here.

  6. sudivate commented on Mar 24, 2020

    @sudivate
    Contributor

    updated get started doc with AKS auth details

  7. gdprtcl commented on Apr 2, 2020

    @gdprtcl
    Author

    Sushant Divate (@sudivate) David Tesar (@dtzar)
    Thanks for mentioning about the smoke test as a reference on how to use service.get_keys().
    One thing I would add:
    If we do an API call where the request needs the key, we can copy it from "AML Workspace > Deployments > aks-deployment" & paste it as the bearer token.
    Here, we can see the primary and secondary key and regenerate them as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    doc

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions