Hi everyone. I have a simple c# code to deploy a resource group to azure. When I run it locally it works fine (I login to azure locally beforehand). When I run it in the pipeline, azure login, pulumi login finishes successfully. but at the pulumi up step I get this error:
"Unhandled exception. System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0."
This is my pulumi action in the workflow:
Copy code
- name: Pulumi Up
uses: pulumi/actions@v3
with:
command: up
stack-name: value
cloud-url: value
env:
PULUMI_CONFIG_PASSPHRASE: value
AZURE_STORAGE_ACCOUNT: value
AZURE_STORAGE_KEY: value
AZURE_CLIENT_ID: value
AZURE_SUBSCRIPTION_ID: value
AZURE_TENANT_ID: value
I couldn't find anything about that error on pulumi website or on the internet. (edited)
e
echoing-dinner-19531
09/16/2024, 8:25 PM
Are you using JsonDeserialize? Might be empty json text being passed to that.
m
melodic-tailor-66495
09/19/2024, 12:30 AM
Thx for taking the time to answer my question. I don't use JsonDeserialize. What should I use it for exactly? And which Json text are u referring to and who is it passed to?
melodic-tailor-66495
09/19/2024, 12:51 AM
@echoing-dinner-19531 Now that u are here, it seems there is no import option for
pulumi.docker.image
! So am I forced to build the image every-time that I run Pulumi up?
e
echoing-dinner-19531
09/19/2024, 6:10 AM
image is a normal custom resource so it will have an import option, you need to look at the extra CustomResourceOptions parameter to it's constructor, it won't be in the ImageArgs.
https://www.pulumi.com/docs/iac/concepts/options/import/
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.