Azure ML quickstart.ipynb sample won't run in free tier

Harry Newton 5 Reputation points
2023-06-28T18:34:54.81+00:00

I'm unable to get the Azure ML sample code to run under an Azure Free Trial subscription. Specifically, the quickstart.ipynb contains this code:

blue_deployment = ManagedOnlineDeployment(
name="blue",
endpoint_name={online_endpoint_name},
model=model,
instance_type="Standard_DS2_v2",
instance_count=1,
) blue_deployment = ml_client.begin_create_or_update(blue_deployment).result()

which for me (without any vCPUs currently running), gives this error:

error detail: {"errors":{"VmSize":["Not enough quota available for Standard_DS2_v2 in SubscriptionId {subscriptionID}. Current usage/limit: 4/6. Additional needed: 4

The Free Tier has a limit of 4 vCPUs (not waiverable), so trying a larger size is not possible. Trying other instance types doesn't work: I tried Standard_DS1_v2, which gives the error: Container terminated due to insufficient memory, as well as, Standard_DS3_v2 which gives an error "not enough quota available in subscription..."

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,603 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Azar 29,520 Reputation points MVP Volunteer Moderator
    2023-07-07T18:21:38.0566667+00:00

    Hi @Harry Newton

    It seems that you are encountering quota limitations with your Azure Free Trial subscription when trying to run the Azure ML sample code. The error messages indicate that you have reached the limit for the specified instance type or that there is insufficient memory available.

    Since the Free Trial subscription has specific resource quotas and limitations, you may encounter restrictions on the number of vCPUs or other resources that you can use. These limitations are in place to prevent abuse and ensure fair usage across the Azure platform.

    If you find this answer useful, kindly accept answer, for any other help comment here.

    0 comments No comments

  2. Konstantinos Passadis 19,586 Reputation points MVP
    2023-07-07T18:33:00.1833333+00:00

    Hello @Harry Newton !

    In case you have oher VMs running you have to delete them

    The quota limit is standard so either delete other VMs or try a Quota Increase

    You have to select the VM Size for the selection to activate :

    User's image

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.