Image of an Adaptive Card is not visible in the new Teams

Adaptive Cards can publish a message in Teams with further information and customized actions. In my case, I use an Adaptive Card to publish a message in a Teams channel via Power Automate when a new post is published on a SharePoint page.

In my example, the message includes a link to the post and an image. The image is the banner image of the post, selected via Stock Images. It works perfectly with the new Teams, Teams Classic, Teams on the web, and Teams Mobile.

Adaptive card in Teams
Adaptive card in Teams

Now, I am publishing another post with an uploaded picture.
The Adaptive Card image is displayed correctly in Teams Classic but not in the new Teams and Teams Mobile.

Teams Classic and Teams Classic on the webNew Teams, Teams on the web and Teams Mobile

An analysis of Teams on the web shows that the new Teams adds a “&v=1” at the end of the picture URL. The system does not allow the method and cannot display the image.

"405 Method Not Allowed" with the new Teams
“405 Method Not Allowed” with the new Teams

Another error message with the new Teams can be “302 found”. The image is available at the location. Without “&v=1” or with “?v=1” it could open the image. I saw both responses.

"302 Found" with the new Teams
“302 Found” with the new Teams

Teams Classic performs the same operation, does not add an extension to the end of the Picture URL, is not prevented from doing so, and displays the picture correctly.

Adaptive Card in Teams Classic
Adaptive Card in Teams Classic

Microsoft confirmed in September and November that the issue is a known bug. There is no new status.
Alternatively, you can add the image as a base64 string instead of a URL. I describe a possibility via PowerShell in this post.

Update from January 10, 2024:
A fix has been rolled out, read the latest update on that topic.
I can confirm that it works for newly published posts with the new Teams and version 23335.219.2592.8659 (preview) and also with Teams on the web. In my case posts from the past still do not show the image via the URL.

Share
Avatar photo

Tobias Asböck

Tobias is a Senior System Engineer with around ten years of professional experience with Microsoft 365 products such as SharePoint Online, OneDrive for Business, Teams Collaboration, Entra ID, Information Protection, Universal Print, and Microsoft 365 Licensing. He also has 15+ years of experience planning, administering, and operating SharePoint Server environments. Tobias is a PowerShell Scripter with certifications for Microsoft 365 products. In his spare time, Tobias is busy with updates in the Microsoft 365 world or on the road with his road bike and other sports activities. If you have additional questions, please contact me via LinkedIn or [email protected].

Leave a Reply

Your email address will not be published. Required fields are marked *