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

BUG: Azure Marketplace - Unable to create AKS Prefect Agent - Requires API Key #1297

Open
4 tasks
MattMacGillivray opened this issue Jul 13, 2022 · 3 comments
Open
4 tasks
Labels
documentation Improvements or additions to documentation

Comments

@MattMacGillivray
Copy link

Bug Description
Trying to create an AKS prefect agent on Azure from the marketplace app - https://azuremarketplace.microsoft.com/en-us/marketplace/apps/prefecttechnologiesinc1606247647944.prefect_agents?tab=overview

Part of this flow requires an API Key to be entered.
Prefect cloud no longer issues API keys.
I tried creating an API Token from a service account (as per Prefect documentation), but I get an error "The value must be 1-22 characters long" (see screenshot)

Steps To Reproduce

  1. Load - https://azuremarketplace.microsoft.com/en-us/marketplace/apps/prefecttechnologiesinc1606247647944.prefect_agents?tab=overview
  2. Click 'get it now'
  3. Select 'kubernetes agent' and click 'continue'
  4. Select 'kubernetes agent' and select 'create'
  5. In the 'create prefect agents' screen, create a resource group, name the cluster, hit 'Next: Prefect'
  6. Now you are asked for a Prefect API key. API keys are no longer issued as far as i can see. So In prefect cloud, I create an API token for my 'build-user' service account and paste it into the 'API Key' field, which now says 'The value must be 1-22 characters long'.
  7. Stuck here.

Browsers Tested:

  • [ x] Chrome
  • Firefox
  • Safari
  • Edge
  • IE

Notes
Screen Shot 2022-07-13 at 2 14 38 PM

@MattMacGillivray MattMacGillivray added the bug Something isn't working label Jul 13, 2022
@MattMacGillivray
Copy link
Author

If I find an old API key from a previous deployment, I get this error:

{"code":"InvalidTemplateDeployment","details":[{"code":"AgentPoolK8sVersionNotSupported","message":"Provisioning of resource(s) for container service prefect-cluster-small-2022 in resource group prefect-cluster-2022 failed. Message: Category: ClientError; Code: AgentPoolK8sVersionNotSupported; SubCode: ; Message: Version 1.19.11 is not supported in this region. Please use [az aks get-versions] command to get the supported version list in this region. For more information, please check https://aka.ms/supported-version-list; InnerMessage: ; Dependency: ; OrginalError: %!s(<nil>); AKSTeam: . Details: "}],"message":"The template deployment 'prefecttechnologiesinc1606247647944.prefect_agent-20220713142934' is not valid according to the validation procedure. The tracking id is 'f527b2b7-4f9e-4687-a4b1-c3e72d1fd715'. See inner errors for details."}

raw:
{ "code": "InvalidTemplateDeployment", "details": [ { "code": "AgentPoolK8sVersionNotSupported", "message": "Provisioning of resource(s) for container service prefect-cluster-small-2022 in resource group prefect-cluster-2022 failed. Message: Category: ClientError; Code: AgentPoolK8sVersionNotSupported; SubCode: ; Message: Version 1.19.11 is not supported in this region. Please use [az aks get-versions] command to get the supported version list in this region. For more information, please check https://aka.ms/supported-version-list; InnerMessage: ; Dependency: ; OrginalError: %!s(<nil>); AKSTeam: . Details: " } ], "message": "The template deployment 'prefecttechnologiesinc1606247647944.prefect_agent-20220713142934' is not valid according to the validation procedure. The tracking id is 'f527b2b7-4f9e-4687-a4b1-c3e72d1fd715'. See inner errors for details." }

@zhen0
Copy link
Member

zhen0 commented Sep 14, 2022

Hi @qmnonic - apologies for the slow response. This kind of question is probably better asked in the community slack or discourse as our team there can point you to resources to help you figure this out.

@zhen0 zhen0 added documentation Improvements or additions to documentation and removed bug Something isn't working labels Sep 14, 2022
@keshavksingh
Copy link

This is a persisting issue?

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

No branches or pull requests

3 participants