Failing to deploy CosmosDB in MS Learn Sandbox

Alessandro Vincenzi 36 Reputation points
2020-04-13T11:36:44.633+00:00

Hello
following the learning path on server less applications, there is a section where you have to deploy an Azure App service to run functions and then a CosmosDB for further binding.

After activating the sandbox, the deployment of the CosmosDB fails with the following message:

{
"code":"DeploymentFailed",
"message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
"details":[{"code":"BadRequest","message":"{\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Free tier has already been applied to another Azure Cosmos DB account in this subscription. To apply free tier to this account, you can select another subscription for this account or delete the existing free tier account. You can have up to one free tier account per subscription.\\r\\nActivityId: dc28344f-d509-488e-95f9-a9d89a8155ac, Microsoft.Azure.Documents.Common/2.10.0\"\r\n}"}]
}

The deployment fails with the error:

  • Free tier has already been applied to another Azure Cosmos DB account in this subscription.
  • To apply free tier to this account, you can select another subscription for this account or delete the existing free tier account.
  • You can have up to one free tier account per subscription.

The sandbox is brand new and there is nothing in the resource group except for the storage for the console provisioned by default.

Is there any workaround to get it deployed?

Sorry for the wrong tab. There is no way to use a new one. Only those predefined are usable.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,967 questions
{count} votes

Accepted answer
  1. Monalla-MSFT 11,636 Reputation points
    2020-04-13T16:14:09.703+00:00

    Hello @Alessandro Vincenzi ,

    Thanks for providing the issue resolution.

    Yes, you are correct. Due to high demand of resources, there is an ongoing issue going on with the capacity allotment.

    I hope this information helps. Please feel free to reach back out for any questions or concerns you may have in the future.

    5 people found this answer helpful.

10 additional answers

Sort by: Most helpful
  1. Kannan.Unnikrishnan 31 Reputation points
    2020-05-25T16:09:49.697+00:00

    Try selecting Apply Free Tier Discount to Do Not Apply.
    After changing this option in my sandbox account, the deployment error was gone for me

    6 people found this answer helpful.

  2. Alessandro Vincenzi 36 Reputation points
    2020-04-13T14:53:23.093+00:00

    Hello Monika.

    Just came back to my desk and found your answer.
    The sandboxes stay open for 4 hours and the one I used was gone. I repeated the process enabling a new sandbox and logged into the portal. Now the deployment worked and the CosmosDB is there. Miracle.

    Anyway, I had this problem many times before and there is another thread about this same same error. I'm not the only one. I had to go through this deployment many many times in the last four days and this last one mentioned above has been the only one that worked. The only workaround that i found was waiting for the sandbox to expire, logging out from the portal and the doc pages and repeat the same deployment.

    I would add that most of the deployments that I tried in the last four days were failing because of the low availability of resources these days. The error message in this case asked to wait and try again. But every time i begun with a new sandbox I had the error about the "free tier already applied". New sandbox, new deployment, failure because of low resources, new deployment, failure on free tier and so on ...

    My educated guess is that deployments of a Cosmos failing for the "lack of resources" leaves some traces.
    The following deployment that you try sees the free tier already applied and fails, maybe because of something left dandling from the previous one.

    Ok, issue solved.

    1 person found this answer helpful.

  3. Madhoolika Siruvuri 1 Reputation point
    2020-05-10T05:18:14.053+00:00

    Hi @Alessandro Vincenzi , Based on your suggestion i tried to wait till the sanbox expired and re logged in , but still i am getting the same error. I have been trying out exercises for quiet sometime now, but its just now that i am experiencing this isuue.

    @MonikaReddyNalla-0080 would you be able to help me out with the issue. ?


  4. Slava Lovkiy 1 Reputation point
    2020-05-22T13:13:39.15+00:00

    Also stuck in training session being unable to create free tier CosmosDB account.
    {"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"BadRequest","message":"{\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Free tier has already been applied to another Azure Cosmos DB account in this subscription. To apply free tier to this account, you can select another subscription for this account or delete the existing free tier account. You can have up to one free tier account per subscription.\r\nActivityId: f802b167-be01-4163-8354-07e948f8cc85, Microsoft.Azure.Documents.Common/2.11.0\"\r\n}"}]}

    0 comments No comments