Hi everyone. I have a simple c# code to deploy a r...
# dotnet
m
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
Are you using JsonDeserialize? Might be empty json text being passed to that.
m
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?
@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
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/