Hello @Roberto Araujo Filho , Thanks for using Microsoft Q&A Platform.
The API version 2024-02-29-preview is currently only available in some Azure regions, the available regions can be found from here *East US, West US2 and West Europe
Try to create Document intelligence resource in the above supported regions and install the SDK version 1.0.0b2
python -m pip install azure-ai-documentintelligence
Also, Python 3.8 or later is required to use this package.
Then retry the sample code as given here it should work: https://learn.microsoft.com/en-us/python/api/overview/azure/ai-documentintelligence-readme?view=azure-python-preview&preserve-view=true#extract-layout
I hope this helps.
Regards,
Vasavi
-Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.