Skip to content

fix issue 210: deploy-to-aca.ps1: StateStore connection string trunca…#211

Open
sebastianstephan wants to merge 1 commit intoAzureCosmosDB:mainfrom
sebastianstephan:issue-210-connection-string-on-mac
Open

fix issue 210: deploy-to-aca.ps1: StateStore connection string trunca…#211
sebastianstephan wants to merge 1 commit intoAzureCosmosDB:mainfrom
sebastianstephan:issue-210-connection-string-on-mac

Conversation

@sebastianstephan
Copy link

Fix

Replace PtrToStringAuto with PtrToStringBSTR, which correctly reads the BSTR length prefix and decodes the full UTF-16 string on all platforms.
Free the BSTR pointer via ZeroFreeBSTR in a finally block.
Remove escaped quotes from the stateStoreConnectionString Bicep parameter.

Testing

Verified on macOS with PowerShell Core — full connection string is now correctly passed to the Bicep deployment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant