Hey there Kevin Sunkwa-Mills
Thats a good question and thanks for using QandA platform.
So if you know that the older version of the "sv" parameter (e.g., "sv=2021-10-04") works reliably and you don't anticipate needing the features of the newer version, you can manually specify the older version in your PowerShell script.
and Alternatively, you can modify your PowerShell script to accommodate different "sv" versions dynamically. "sv" version based on the current date.
$desiredSvVersion = "2021-10-04" # Specify the desired "sv" version here
$sasToken = New-AzStorageBlobSASToken -Container $containerName -Blob $blobName -Permission "rw" -Context $storageContext -ExpiryTime $expiryTime -FullUri -Service Blob -ResourceType Object -Protocol Https -StartTime $startTime -ErrorAction Stop -Version $desiredSvVersion
# Example: Invoke-RestMethod -Uri $sasToken -Method Put -InFile $sourceFilePath -OutFile $destinationFilePath
Kindly accept the answer if this helps thanks much.