# prefect-community

David Yang

04/12/2022, 8:12 PM
Hi, I tried to create an VM from Prefect Agent in Azure Marketplace. The API key generated in Prefect cloud is 40 characters. But the Prefect Agent template requires the key length should be 1-22 characters. Can Prefect team help me to solve this issue?

Anna Geller

04/12/2022, 8:17 PM
We are aware of this and the fix will follow soon. For now, we actually have something better: this walkthrough will guide you through setting up your VM, agent and adds additional capabilities not available in the Azure marketplace template as of today which are: • how to set up long-lived credentials to ACR • how to ensure your agent automatically starts when the VM gets rebooted
🙌 1