Tag Archives: microsoft
Application linked to Sharepoint
How do companies, or developers in general, create apps on their employees devices that when launched, directly link you on a Sharepoint site?
How do companies, or developers in general, create apps on their employees devices that when launched, directly link you on a Sharepoint site? Read More
Error adding Exchange account to Outlook Application
I am now getting an error message in adding my Exchange account to Outlook Application. The error is couldn’t setup your account. Contact Email Admin. We have tried Autodiscovery in registry already HKEY_CURRENT_USERSoftwareMicrosoftOfficex.0OutlookAutoDiscover , no luck. Also check with these keys HKEY_USERSDEFAULTSoftwareMicrosoftOffice16.0CommonIdentity. We have tried new profile, tried Microsoft 365, Exchange, and Outlook.com but all of them shows same error. I can login with my phone, tablet and https://mail.premium.exchange/owa/auth/logon.aspx website. The issue is just adding in Outlook Application using computer. I am using Microsoft 365 subscription. Please advise for the steps we could still perform. My account is not managed by an Admin , so there’s no way we could enable Modern authentication.
I am now getting an error message in adding my Exchange account to Outlook Application. The error is couldn’t setup your account. Contact Email Admin. We have tried Autodiscovery in registry already HKEY_CURRENT_USERSoftwareMicrosoftOfficex.0OutlookAutoDiscover , no luck. Also check with these keys HKEY_USERSDEFAULTSoftwareMicrosoftOffice16.0CommonIdentity. We have tried new profile, tried Microsoft 365, Exchange, and Outlook.com but all of them shows same error. I can login with my phone, tablet and https://mail.premium.exchange/owa/auth/logon.aspx website. The issue is just adding in Outlook Application using computer. I am using Microsoft 365 subscription. Please advise for the steps we could still perform. My account is not managed by an Admin , so there’s no way we could enable Modern authentication. Read More
On Outlook with iOS birthdays, why are there duplicate entries, and also no contact name?
This is starting to piss me off.
I get that Microsoft and Apple don’t like to play nice together, but they make it impossible for users to self-remedy these issues. I don’t know who to b*tch to, so I’m b*tching to both.
First, there are duplicate birthday entries, even though in my contact list there are no duplicates, and I only have iCloud contacts.
Second, none of the birthday entries in Outlook show contact names.
Does anyone have a solution/workaround?
This is starting to piss me off. I get that Microsoft and Apple don’t like to play nice together, but they make it impossible for users to self-remedy these issues. I don’t know who to b*tch to, so I’m b*tching to both. First, there are duplicate birthday entries, even though in my contact list there are no duplicates, and I only have iCloud contacts.Second, none of the birthday entries in Outlook show contact names.Does anyone have a solution/workaround? Read More
‘Identity Pass’ Unable to request new ‘TAP code’ returns Error Code: 203 Information does not match
Issue:
BLOCKED: Disaster Recovery Fails: Unable to request new ‘TAP code’ from ‘Identity Pass’ app.
Resetting Authenticator App on replacement Corp Laptop & Android
Repo steps:
– Received new MSFT imaged Laptop & Android phone
– On Android, go to aka.ms/knockknock
– ‘Identity Pass’ launches successfully and requests Employee ID & Corp email
– Enter Employee ID ‘000477476’ & Corp Alias ’email address removed for privacy reasons’
– Click ‘Submit’ – Returns Error Code: 203 ‘Information does not match’.
– Retry with Birthdate 9/22/1977 & Corp Alias ’email address removed for privacy reasons’
– Click ‘Submit’ – Returns Error Code: 203 ‘Information does not match’.
– BLOCKED: Resubmitting a new ‘TAP code’ request Fails with Error Code: 203 ‘Information does not match’.
As the result, we can no longer sign-in to https://client.wvd.microsoft.com/arm/webclient/index.html to configure our Authenticator Apps.
Please let us know if there’s anything else we can do or provide the help get this issue resolved ASAP.
Thanks & Best Regards,
Gary
Issue:BLOCKED: Disaster Recovery Fails: Unable to request new ‘TAP code’ from ‘Identity Pass’ app.Resetting Authenticator App on replacement Corp Laptop & Android Repo steps:- Received new MSFT imaged Laptop & Android phone- On Android, go to aka.ms/knockknock- ‘Identity Pass’ launches successfully and requests Employee ID & Corp email- Enter Employee ID ‘000477476’ & Corp Alias ’email address removed for privacy reasons’- Click ‘Submit’ – Returns Error Code: 203 ‘Information does not match’.- Retry with Birthdate 9/22/1977 & Corp Alias ’email address removed for privacy reasons’- Click ‘Submit’ – Returns Error Code: 203 ‘Information does not match’.- BLOCKED: Resubmitting a new ‘TAP code’ request Fails with Error Code: 203 ‘Information does not match’. As the result, we can no longer sign-in to https://client.wvd.microsoft.com/arm/webclient/index.html to configure our Authenticator Apps.Please let us know if there’s anything else we can do or provide the help get this issue resolved ASAP.Thanks & Best Regards,Gary Read More
split or create a funtion
hello everyone, i have a problem to put automaticaly range of daily works, and that is slowly to me
So that I want to create a function or have help how to do it.
like in semaine 53 = I want to that equals to 02/09/24-10/10/24 without describing all the words
@sana
hello everyone, i have a problem to put automaticaly range of daily works, and that is slowly to meSo that I want to create a function or have help how to do it.like in semaine 53 = I want to that equals to 02/09/24-10/10/24 without describing all the words@sana Read More
Mastering the Shorthand Syntax in your daily workflow
Introduction
In this tech blog, we’ll unravel the magic behind Azure CLI shorthand syntax and discover how it can elevate your command-line experience.
By unlocking the potential of Azure CLI Shorthand Syntax, we want to make your command-line experience as smooth as possible.
Quick walkthrough
Full Value Format: JSON without the quotes, making complex objects a breeze.
az some-command –contact “{name:Bill,age:20,paid:true,emails:[Bill@microsoft.com,Bill@outlook.com],address:{country:USA,company:Microsoft,details:{line1:’15590 NE 31st St’,line2:’Redmond, WA’}}}”
Partial Value Format: Simplifying commands with key-value simplicity.
az some-command –contact name=Bill
az some-command –contact age=20 paid=true
az some-command –contact emails[1]=”Bill@outlook.com”
az some-command –contact address.details=”{line1:’15590 NE 31st St’,line2:’Redmond, WA’}”
az some-command –contact address.details=./address_details.json
Combine Full Value and Partial Value for ultimate flexibility.
az some-command –contact “{name:Bill,age:20,paid:true,emails:[Bill@microsoft.com,Bill@outlook.com]}” motto=”One man’s bug is another man’s lesson.”
az some-command –contact “{name:Bill,??”
az some-command –contact “{name:Bill,address:??”
az some-command –contact “{name:Bill,address:{country:??”
az some-command –contact “{name:Bill,address:{country:USA},emails:??”
az some-command –contact “{name:Bill,address:{country:USA},emails:[??”
az some-command –contact name=”‘Bill RP'” data=”‘{a: [1, 2]}'”
az some-command –contact name=”‘null'”
az some-command –contact name=”‘bill’/s'”
?? for Help: Use ?? to reveal helpful hints, making your life easier.
az some-command –contact “??”
az some-command –contact “{??”
az some-command –contact “{name:Bill,??”
az some-command –contact “{name:Bill,address:??”
az some-command –contact “{name:Bill,address:{country:??”
az some-command –contact “{name:Bill,address:{country:USA},emails:??”
az some-command –contact “{name:Bill,address:{country:USA},emails:[??”
az some-command –contact address=”??”
az some-command –contact emails=”??”
az some-command –contact emails[0]=”??”
Passing null Values: Effortlessly handle null values in both Full Value and Partial Value formats.
Pass null in Full Value:
az some-command –contact “{name:Bill,age:20,paid:true,emails:[Bill@microsoft.com,Bill@outlook.com],address:null}”
Pass null in Partial Value:
az some-command –contact name=Bill address=null
Single Quotes String is used to pass a string value with special characters: `:`, `,`, `{`, `}`, `[`, `]`, `null`, `??` and space. Because those characters usually have other meanings when parsing shorthand syntax. So with single quotes, it tells parser to parse as a string only.
Pass a String Value with Space and Special Characters
Crafting commands with spaces or special characters? No worries! Single Quotes String ensures your strings stay intact:
az some-command –contact “{name:’Bill RP’,age:20,paid:true,data:'{a: [1, 2]}’}”
az some-command –contact name=”‘Bill RP'” data=”‘{a: [1, 2]}'”
Pass a “null” String Value
Need to pass a string with the value “null”? Single Quotes String to the rescue:
az some-command –contact “{name:’null’,age:20,paid:true}”
az some-command –contact name=”‘null'”
Use ‘/ to Pass ‘: Handling the tricky single quote within a Single Quotes String? Use ‘/ to navigate smoothly:
az some-command –contact “{name:’bill’/s’,age:20,paid:true}”
az some-command –contact name=”‘bill’/s'”
az some-command –contact name=”bill’s”
Overall, our shorthand syntax is designed to streamline command creation, making it more concise and intuitive for day-to-day development around Azure CLI. By condensing commonly used parameters, it not only saves keystrokes but also enhances readability which will greatly beneficial to our codebase and CLI developer community.
Microsoft Tech Community – Latest Blogs –Read More
Where to manage Microsoft Loop Workspace
Hi mates
currently using loop in teams,
i’m facing issue with managing workspaces and adding ext stakeholders
it seems there is an authorization issue
could you tell me more please
Thanks
Amaury
Hi matescurrently using loop in teams,i’m facing issue with managing workspaces and adding ext stakeholdersit seems there is an authorization issuecould you tell me more pleaseThanksAmaury Read More
Sticky Keys Taskbar icon
I am running Windows 11.
I recently had occasion to re-discover “Sticky Keys”. I had to make multiple selections in a row of data and it allowed me to lock the CTRL key and select individual items.
As I looked to find out more about this feature, there were many mentions of a sticky key icon on the taskbar.
I have not been able to see an icon when Sticky Keys is activated.
Please advise how I can have a Sticky Keys icon in the taskbar when the feature is activated.
thanks
I am running Windows 11. I recently had occasion to re-discover “Sticky Keys”. I had to make multiple selections in a row of data and it allowed me to lock the CTRL key and select individual items. As I looked to find out more about this feature, there were many mentions of a sticky key icon on the taskbar. I have not been able to see an icon when Sticky Keys is activated. Please advise how I can have a Sticky Keys icon in the taskbar when the feature is activated. thanks Read More
Change email address this website
I need to change the email address that I use to log into this website. However, the two spaces to change the email address are greyed out.
Question: What do I need to do to “un-grey” the email change spaces?
Thanks for any assistance you can offer.
I need to change the email address that I use to log into this website. However, the two spaces to change the email address are greyed out. Question: What do I need to do to “un-grey” the email change spaces? Thanks for any assistance you can offer. Read More
Trouble Debugging AI Agent Bot in Teams Using Teams Toolkit in VS Code
I am trying to build an AI agent bot in Teams using the Teams Toolkit in the VS Code plugin, following the instructions in this LINK.
I was able to successfully complete it until step G, where I updated the Azure OpenAI key, endpoint and deployment name.
However, when I try to debug in the Test Tool, it does not open the bot, and it doesn’t get connected. I get the following error:
Please help me unblock myself. I also need help on how to finally test this in teams or a web app. Currently in the custom bot I created (in python), the config.py file requires bot ID and password (where do I get those?) but the link only instructs updating the Azure openAI credentials in .env.testtool.user. What am I missing?
I am trying to build an AI agent bot in Teams using the Teams Toolkit in the VS Code plugin, following the instructions in this LINK. I was able to successfully complete it until step G, where I updated the Azure OpenAI key, endpoint and deployment name. However, when I try to debug in the Test Tool, it does not open the bot, and it doesn’t get connected. I get the following error:Please help me unblock myself. I also need help on how to finally test this in teams or a web app. Currently in the custom bot I created (in python), the config.py file requires bot ID and password (where do I get those?) but the link only instructs updating the Azure openAI credentials in .env.testtool.user. What am I missing? Read More
windows update
Hola a alguien se le ha presentado este problema con respecto a esta actualización Actualización acumulativa para Windows 11 Insider Preview (10.0.26120.1330) (KB5040543) que al llegar a 73% dice el siguiente error: Error de Windows Update 0x80070003
Hola a alguien se le ha presentado este problema con respecto a esta actualización Actualización acumulativa para Windows 11 Insider Preview (10.0.26120.1330) (KB5040543) que al llegar a 73% dice el siguiente error: Error de Windows Update 0x80070003 Read More
Column Folder Proprierts Sharepoint
I created a flow in Power Automate that, among other things, creates a folder in a document repository containing a ‘Due Date’ column. When creating the folder using Automate, I can set a date for this column, but when I try to edit this column directly in SharePoint, the field does not appear for editing. How can I manually edit this field?”
I created a flow in Power Automate that, among other things, creates a folder in a document repository containing a ‘Due Date’ column. When creating the folder using Automate, I can set a date for this column, but when I try to edit this column directly in SharePoint, the field does not appear for editing. How can I manually edit this field?” Read More
To Do syncs the iOS updates with Mac but not vice versa
Anything I input on To Do on my Mac never shows up on my iPhone, but once I include an update on the iPhone, it syncs with Mac & overrides all the updates I had input on the Mac. That is, the iPhone invokes a true sync, but the Mac doesn’t. Any clues please?
Anything I input on To Do on my Mac never shows up on my iPhone, but once I include an update on the iPhone, it syncs with Mac & overrides all the updates I had input on the Mac. That is, the iPhone invokes a true sync, but the Mac doesn’t. Any clues please? Read More
How to find out the weight context of all Managed Properties
Hi there
I have a situation where I need to get the Context weight group of each managed property in our SPO tenant. I was hoping there was a way to get this with a Powershell script or some sort of hidden download option but I am not seeing anything.
Does anyone know if there is a way to get this information without having to go into each Managed property?
This is all related to search results that are showing up in a weird order and we are thinking that someone changed the weight group on something but I am at a loss as to where they changed it. So just trying to find a way to figure that out.
Thanks in advance.
Hi thereI have a situation where I need to get the Context weight group of each managed property in our SPO tenant. I was hoping there was a way to get this with a Powershell script or some sort of hidden download option but I am not seeing anything. Does anyone know if there is a way to get this information without having to go into each Managed property? This is all related to search results that are showing up in a weird order and we are thinking that someone changed the weight group on something but I am at a loss as to where they changed it. So just trying to find a way to figure that out. Thanks in advance. Read More
LAPS Creation using Intune
Hi All
I am trying to get Intune to create a Local Admin Account and I am using the method of adding
Hi All I am trying to get Intune to create a Local Admin Account and I am using the method of adding OMA-URI Settings but for some reason the account is created but it’s not adding to the administrator local group on the machine. Under OMA-URI the following settings was added ./Device/Vendor/MSFT/Accounts/Users/apexadmin/LocalUserGroup Would anyone know its not adding to the local admin group on the machine? Read More
Edge Bar still is there in new Stable version for Windows 10, but auto-start is disabled
We’re aware that the Edge Bar isn’t auto-starting and opening automatically for Windows 10 users after starting your desktop device. This functionality is temporarily disabled. We’re working on bringing back the ability for Edge Bar to start automatically when you start your device. In the meantime, you can still launch Edge Bar from within the Edge sidebar via the gear icon (found in the bottom right corner).
If you can’t see your sidebar in Edge, head to Settings->Sidebar->Always show sidebar to on.
We appreciate your patience. Feel free to leave us feedback in Edge Bar or here on how we can improve your experience. To learn more about Edge Bar, see: Move the Microsoft Edge sidebar to your Windows 10 desktop – Microsoft Support.
We’re aware that the Edge Bar isn’t auto-starting and opening automatically for Windows 10 users after starting your desktop device. This functionality is temporarily disabled. We’re working on bringing back the ability for Edge Bar to start automatically when you start your device. In the meantime, you can still launch Edge Bar from within the Edge sidebar via the gear icon (found in the bottom right corner).
If you can’t see your sidebar in Edge, head to Settings->Sidebar->Always show sidebar to on.
We appreciate your patience. Feel free to leave us feedback in Edge Bar or here on how we can improve your experience. To learn more about Edge Bar, see: Move the Microsoft Edge sidebar to your Windows 10 desktop – Microsoft Support. Read More
How to post Teams Channel post to Sharepoint as news
Hello,
Let’s call my Sharepoint Team Sites A and B. We have a Teams Channel called ITAG that’s using a connector to Site A. I want the messages from ITAG Channel to post as a news post in Sharepoint Site B. I tried to use power automate to do this but I keep it keeps on doing a timeout with “Bad Gateway”.
Is this posisible? Attached is my flow. Should be pretty simple but I keep getting an error.
Hello,Let’s call my Sharepoint Team Sites A and B. We have a Teams Channel called ITAG that’s using a connector to Site A. I want the messages from ITAG Channel to post as a news post in Sharepoint Site B. I tried to use power automate to do this but I keep it keeps on doing a timeout with “Bad Gateway”. Is this posisible? Attached is my flow. Should be pretty simple but I keep getting an error. Read More
Siteground Email Calendar Missing
Hello,
I was originally a Microsoft 365 customer with GoDaddy Subscription.
Recently, I have switched my hosting from GoDaddy to SiteGround, including the domain and the email server and cancelled my service with Microsoft 365. All the email addresses used previously with GoDaddy under the domain was recreated in the new Email server.
For example, I had an email named email address removed for privacy reasons under Microsoft 365, a same email address email address removed for privacy reasons was recreated in my Siteground email server. Same as other email addresses.
After switching over, I am experiencing a few problems.
1. I cannot use the Outlook Calendar feature using the new email account when I log in using Mac Devices. However, if i login the email address using a Windows PC, I can find the calendar in the calendar app. Since I use Mac more often then windows, is there a way to configure the Mac Outlook setting to display the calendar on mac?
2. In Windows Outlook, I am able to switch the display name of my email address when I send out, but in Mac, that option is greyed out. Is that a bug issue or is there a way to fix it? (I figured out a way to edit the name by choose “Sync directly with IMAP”, but that will cost me the deliverability of the email address, which the mailbox has issue with receiving and delivering emails after using this method)
Here are the ways I have tried before:
1. Switching back to Legacy Outlook to do the change and switch back (No result)
2. Using Apple Mail (built-in APP) in mac to login, nothing wrong with the deliverability even if I login using sync with IMAP
3. Windows Outlook can do everything I mentioned in this discussion, the only issue is with Mac Outlook.
Please advise me with a possible solution that can fix this issue. I’ve read many threads about the same issue but none of them has a solution to it.
Thanks,
Ryan
Hello, I was originally a Microsoft 365 customer with GoDaddy Subscription. Recently, I have switched my hosting from GoDaddy to SiteGround, including the domain and the email server and cancelled my service with Microsoft 365. All the email addresses used previously with GoDaddy under the domain was recreated in the new Email server. For example, I had an email named email address removed for privacy reasons under Microsoft 365, a same email address email address removed for privacy reasons was recreated in my Siteground email server. Same as other email addresses. After switching over, I am experiencing a few problems. 1. I cannot use the Outlook Calendar feature using the new email account when I log in using Mac Devices. However, if i login the email address using a Windows PC, I can find the calendar in the calendar app. Since I use Mac more often then windows, is there a way to configure the Mac Outlook setting to display the calendar on mac? 2. In Windows Outlook, I am able to switch the display name of my email address when I send out, but in Mac, that option is greyed out. Is that a bug issue or is there a way to fix it? (I figured out a way to edit the name by choose “Sync directly with IMAP”, but that will cost me the deliverability of the email address, which the mailbox has issue with receiving and delivering emails after using this method) Here are the ways I have tried before: 1. Switching back to Legacy Outlook to do the change and switch back (No result)2. Using Apple Mail (built-in APP) in mac to login, nothing wrong with the deliverability even if I login using sync with IMAP3. Windows Outlook can do everything I mentioned in this discussion, the only issue is with Mac Outlook. Please advise me with a possible solution that can fix this issue. I’ve read many threads about the same issue but none of them has a solution to it. Thanks,Ryan Read More
Will there be a Loop Community Hub?
Hey guys, I’m pretty new to the community so apologies if I’m posting this is the wrong place.
I see a lot of Microsoft Loop questions under the Teams Hub, but it seems like Loop quickly becoming it’s on product. Will there be a separate Loop Community Hub coming soon? Is this needed yet? Would love your thoughts.
Hey guys, I’m pretty new to the community so apologies if I’m posting this is the wrong place. I see a lot of Microsoft Loop questions under the Teams Hub, but it seems like Loop quickly becoming it’s on product. Will there be a separate Loop Community Hub coming soon? Is this needed yet? Would love your thoughts. Read More
Vector Image Search using Azure OpenAI & AI Search: A Technical Guide
GitHub Repository: azure-ai-vision-search
Introduction
Vector image search uses AI to revolutionize how we find and retrieve images. This article explains how to combine Azure OpenAI and Azure AI Search for an efficient solution. We’ll cover setup, deployment, and usage to guide AI developers and engineers. We’ll focus on the search and vectorize methods in the function_app.py Python file, crucial for integrating Azure’s AI services for vector image searches. This technology is ideal for applications like e-commerce and digital asset management.
We dive into the core functionalities of the Azure AI Search service, focusing on the search and vectorize methods in the function_app.py python file. These methods are pivotal in integrating Azure’s AI services to perform vector image searches.
Prerequisites
An Azure account with an active subscription. Create an account for free.
An Azure Storage account for storing images. Create a storage account.
An Azure AI Search service for any tier and any region Create a service or find an existing service under your current subscription.
An Azure OpenAI service for any tier and any region. Create a service.
Azure Functions setup for processing Create python function.
Tools: Azure CLI, Visual Studio Code, and Postman for API testing.
AI Search Setup
Below are Azure AI Search schema files that define the index, indexer, and skillset used to store and process image data for efficient search and retrieval. These files are used to configure the Azure AI Search service to work with the vector image search solution.
> Action: Open the Azure AI Search service in the Azure portal and navigate to each section below to upload the corresponding JSON file.
1. Add Index
This defines the structure and schema of the search index, including specifying fields, data types, and attributes.
> Action: Go to the Indexes blade and create a new index using the JSON definition file vector-image-index-db.json.
2. Add Indexer
Set up an indexer to manage data ingestion from a source like Azure Storage to the search index.
> Action: Use the vector-image-indexer.json file in the Indexers blade to create a new indexer.
3. Add Skillset
Create a skillset to define the AI enrichment pipeline for image processing before indexing.
> Action: Use the JSON definition file vector-image-skillset.json to create a new skillset in the Skillsets blade.
These components work together to enable the ingestion, transformation, and indexing of image data, allowing efficient search and retrieval using Azure AI Search service, with the indexer triggering the vectorize Azure Function for handling image embeddings.
Azure Function Setup
Variables
Configuration variables are stored in the local.settings.json file and should be set as part of the Azure Function Environment variables blade. Key variables to configure include:
export AZURE_OPENAI_API_KEY=<Your Azure OpenAI API Key>
export AZURE_OPENAI_ENDPOINT=<Your Azure OpenAI Endpoint>
export OPEN_AI_MODEL=gpt-35-turbo
export API_VERSION=2024-02-01
export AI_VISION_ENDPOINT=<Your Azure Vision Endpoint>
export AI_VISION_API_KEY=<Your Azure Vision API Key>
export AI_SEARCH_SERVICE_ENDPOINT=<Your Azure Search Service Endpoint>
export AZURE_SEARCH_ADMIN_KEY=<Your Azure Search Admin Key>
export AI_SEARCH_INDEX_NAME=<Your Azure Search Index Name>
export ACCOUNT_KEY=<Your Account Key>
> Action: Set these variables in the Azure Function App Configuration blade.
GitHub Action Workflow
The function is being deployed automatically using a GitHub Action workflow. The function app is responsible for processing image data and performing similarity searches using Azure AI Search. The function app consists of two main methods: vectorize and search.
The main-premium.yml GitHub Action workflow file automates the deployment of the function app. It triggers the deployment process whenever changes are pushed to the main branch. The workflow uses the Azure Functions action to deploy the function app to Azure.
> Action: For the workflow to work, you need to set up the following secrets in your GitHub repository:
AZURE_RBAC_CREDENTIALS: Azure service principal credentials with access to the Azure subscription. more details here.
AZURE_FUNCTIONAPP_PUBLISH_PROFILE_PREMIUM: Publish profile for the Azure Function app. more details here.
Testing the Solution
vectorize
Uploading Files to the storage and then running the Azure AI search Indexer for embedding generation.
Use Azure Storage Explorer or Azure CLI for uploading images to the container.
Goto your AI Search service, run the indexer to process and vectorize images.
Monitor the indexing process via Azure Portal.
search
Using the Search API to Vector Search for Images, Leverage the Azure Search API to perform vector searches.
Construct the search query with the image vector {query: “blue sky”}.
Execute the query using Postman or code.
Interpret the search results to find similar images.
Azure Function Explained
The below sections explain the core functionalities of the Azure Function app, focusing on the vectorize and search methods in the function_app.py Python file. These methods are pivotal in integrating Azure’s AI services to perform vector image searches.
The vectorize Method
The vectorize method is responsible for converting images into vector embeddings. This process involves several steps:
1. HTTP Request Handling
The method is triggered by a POST request containing image URLs and other metadata.
The request body is parsed to extract the values needed for processing.
2. Image Embedding Generation
The vectorize_images function is called with the extracted values. This function processes each image URL by invoking the vectorize_image helper function.
Within vectorize_image, a SAS token is created for secure access to the image stored in Azure Blob Storage.
The get_image_embeddings function from the helper module generates the embeddings using Azure’s Computer Vision API. The embeddings are numerical representations capturing the semantic content of the images.
3. Response Construction
The embeddings are assembled into a response payload.
The response is returned as a JSON object, making the embeddings available for downstream tasks such as indexing and searching.
By leveraging Azure’s Computer Vision API, the vectorize method transforms images into vectors. These vectors are numeric representations that encapsulate the images’ visual features, making them suitable for similarity searches.
Usage
# Example usage
image_urls = [“https://example.com/image1.jpg”, “https://example.com/image2.jpg”]
embeddings = vectorize_images(image_urls)
print(embeddings)
The search Method
The search method facilitates image similarity searches using vectors generated by the vectorize method. Here’s how it works:
1. HTTP Request Handling
The method is triggered by a POST request containing a query string and optional parameters like max_images.
2. Query Processing with OpenAI
The provided query is refined using the ask_openai function, which interacts with Azure OpenAI. This function rephrases the query to improve search accuracy.
The refined query is then converted into vector embeddings using the generate_embeddings_text function. This function utilizes Azure’s Computer Vision API to generate text embeddings.
3. Vector Search Execution
A VectorizedQuery object is created, containing the query embeddings and parameters for the search.
The search_client performs a vector search on the image vectors stored in the Azure AI Search index. This search identifies images whose vector embeddings are most similar to the query embeddings.
4. Result Compilation
The search results are compiled into a response payload. For each result, a SAS token is generated for secure access to the image.
The response is returned as a JSON object, containing the image URLs, titles, and search scores.
The search method integrates Azure OpenAI and Azure AI Search to perform efficient and accurate image similarity searches. By converting textual queries into vector embeddings, it ensures that the search results are relevant and precise.
Usage
# Example usage
query = “Find images of mountains”
search_results = search_images(query, max_images=5)
print(search_results)
Azure Resources
The azure-ai-vision-search repository leverages several Azure services to enable vector image searches:
Conclusion
Combining Azure OpenAI with Azure AI Search provides a powerful solution for vector image search. By following this guide, you can set up and deploy a robust search system to meet various business needs. Explore further possibilities by integrating more advanced AI models and expanding your search capabilities.
Microsoft Tech Community – Latest Blogs –Read More