I was trying to follow this guide to learn how to use OpenAI embeddings using Azure AI search. I completed all the steps exactly as instructed but when I tried to create an index using the code below I kept getting HTTP 403 (Forbidden) error, even though all the proxy, firewall etc settings were fine.
@baseUrl = PUT-YOUR-SEARCH-SERVICE-URL-HERE@token = PUT-YOUR-PERSONAL-IDENTITY-TOKEN-HER### Create a new indexPOST {{baseUrl}}/indexes?api-version=2023-11-01 HTTP/1.1 Content-Type: application/json Authorization: Bearer {{token}}{"name": "hotels-vector-quickstart","fields": [ {"name": "HotelId", "type": "Edm.String","searchable": false, "filterable": true, "retrievable": true, "sortable": false, "facetable": false,"key": true }, {"name": "HotelName", "type": "Edm.String","searchable": true, "filterable": false, "retrievable": true, "sortable": true, "facetable": false }, {"name": "HotelNameVector","type": "Collection(Edm.Single)","searchable": true,"retrievable": true,"dimensions": 1536,"vectorSearchProfile": "my-vector-profile" }, {"name": "Description", "type": "Edm.String","searchable": true, "filterable": false, "retrievable": true, "sortable": false, "facetable": false }, {"name": "DescriptionVector","type": "Collection(Edm.Single)","searchable": true,"retrievable": true,"dimensions": 1536,"vectorSearchProfile": "my-vector-profile" }, {"name": "Category", "type": "Edm.String","searchable": true, "filterable": true, "retrievable": true, "sortable": true, "facetable": true }, {"name": "Tags","type": "Collection(Edm.String)","searchable": true,"filterable": true,"retrievable": true,"sortable": false,"facetable": true }, {"name": "Address", "type": "Edm.ComplexType","fields": [ {"name": "City", "type": "Edm.String","searchable": true, "filterable": true, "retrievable": true, "sortable": true, "facetable": true }, {"name": "StateProvince", "type": "Edm.String","searchable": true, "filterable": true, "retrievable": true, "sortable": true, "facetable": true } ] }, {"name": "Location","type": "Edm.GeographyPoint","searchable": false, "filterable": true, "retrievable": true, "sortable": true, "facetable": false } ],"vectorSearch": {"algorithms": [ {"name": "my-hnsw-vector-config-1","kind": "hnsw","hnswParameters": {"m": 4,"efConstruction": 400,"efSearch": 500,"metric": "cosine" } }, {"name": "my-hnsw-vector-config-2","kind": "hnsw","hnswParameters": {"m": 4,"metric": "euclidean" } }, {"name": "my-eknn-vector-config","kind": "exhaustiveKnn","exhaustiveKnnParameters": {"metric": "cosine" } } ],"profiles": [ {"name": "my-vector-profile","algorithm": "my-hnsw-vector-config-1" } ] },"semantic": {"configurations": [ {"name": "my-semantic-config","prioritizedFields": {"titleField": {"fieldName": "HotelName" },"prioritizedContentFields": [ { "fieldName": "Description" } ],"prioritizedKeywordsFields": [ { "fieldName": "Tags" } ] } } ] }}