cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Cannot create resource group

linhlinh_sarah
Explorer
0 Likes
1,394

hey, i'm currently doing the azure co2-smart-inverter AI Mission and am stuck at the point where i need to "register general Artifacts for Deployment in AI Core", i ex. i'm stuck at point 6 where i need to create a resource group. I always get the error:

AIAPIServerException: Failed to post admin/resourceGroups Resource Group cannot be created for free tier tenant Status Code: 403, Request ID:None

I dont know what to do now. i think the mission should be doable only with the free tier plan.

Accepted Solutions (0)

Answers (2)

Answers (2)

Deepak_sahu
Participant

Hi Sarah,

There might be some restriction for the the free tier.

SOLUTION:

A resource group named `default` exists is all systems. Use that to complete to your mission.

Kindly use the name `default` in all your API calls for resource group (in HEADER).

Optional Info:

Resource group are mere namespaces in the system.

linhlinh_sarah
Explorer
0 Likes

thank you for the help, but where exactly should I change it to default. I'm new to all of this, so still unsure about everything.

here are the code snippets where resource_group is mentioned

# Setupaic_service_key_path = "./resources/aic_service_key.json"git_setup_file_path = "./resources/git_setup.json"docker_secret_file_path = "./resources/docker_secret.json"env_file_path = "./resources/env.json"resource_group = "azure-openai-aicore"serving_workflow_file = "./scenario/proxy.yaml"connection_name = "default"path_prefix = "app"ai_api_client.rest_client.post( path="/admin/resourceGroups", body={ "resourceGroupId": resource_group })
Deepak_sahu
Participant
0 Likes

linhlinh.sarah

1. IGNORE the following API. Its is to create resource group

.. ai_api_client.rest.post(path"/admin/resourceGroups"....

2. For any call that you make ensure you add the parameter `resource_group = 'default' .
Example:

ai_api_client.scenario.query(resource_group='default')

#possible would return empty list, but no error means it works fine

OPTIONAL INFORMATION
You are using `AI API client SDK` library. You may use alternate tools like Postman or AI Launchpad.
Checkout our tutorials: https://developers.sap.com/group.ai-core-get-started-basics.html

In each tutorial, you can click the tab for specific tool you wish to know the instruction.

KarimM
Product and Topic Expert
Product and Topic Expert