You have mistake in your steps u need next
- open for edit startup.sh (can do it on console) (this file)
and add to this file next (for php8.1)
apt-get update && apt-get install -y libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libwebp-dev \
&& docker-php-ext-configure gd --with-freetype --with-webp --with-jpeg
docker-php-ext-install gd
- restart u azure web app
and after restart, go to console and run command php --ri gd and u can look this
after this u must be happy )