on ‎2023 Jun 16 9:50 AM
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.
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 })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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.