microsoft / PowerApps-Samples

Sample code for Power Apps, including Dataverse, model-driven apps, canvas apps, Power Apps component framework, portals, and AI Builder.

Home Page:https://docs.microsoft.com/powerapps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not able to connect to powerapps env

akshatakalp opened this issue · comments

Login using PowerApps credentials and register a model with AI Builder

from aibuilder.core.environment import Environment
from aibuilder.models.constants import ModelClientResponseStatus

env = Environment.get(environment_name=aib_environment)

response = env.register_model(model_name=aib_model_name, connection=service, override=True)

if response != ModelClientResponseStatus.success:
raise Exception('Model registration failed')

print(f"Registered AI Builder model {aib_model_name}")

can anyone help me with this.

@akshatakalp We do not handle support issues here. Try contact MS Support or post your question in the forums.