You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i go to create a KeyValue object using AzureNative in C# it will not add the KeyValue to the Azure App configuration instead it errors out with a very generic error error: autorest/azure: error response cannot be parsed: {"" '\x00' '\x00'} error: EOF I can provide the same information to AzureClassic and it will create the Key in Azure App Configuration without issue.
Example
new Pulumi.AzureNative.AppConfiguration.KeyValue($"global-{global.Key}",new(){ConfigStoreName="<The real name of the Config Store>",ResourceGroupName="<The real name of the config store's resource group>",KeyValueName="RootUris:Category:Endpoint$dev/Global",Value="https://someurl.com/",});
when I look at the details of the up it looks like this
After I tell it to up I get this error back error: autorest/azure: error response cannot be parsed: {"" '\x00' '\x00'} error: EOF
Output of pulumi about
CLI
Version 3.112.0
Go Version go1.22.1
Go Compiler gc
Plugins
NAME VERSION
dotnet unknown
Host
OS Microsoft Windows 11 Enterprise
Version 10.0.22631 Build 22631
Arch x86_64
This project is written in dotnet: executable='C:\Program Files\dotnet\dotnet.exe' version='8.0.202'
Current Stack: organization/*/dev
TYPE URN
pulumi:pulumi:Stack urn:pulumi:dev::...::pulumi:pulumi:Stack::...-dev
pulumi:providers:azure-native urn:pulumi:dev::...::pulumi:providers:azure-native::default_2_36_0
Found no pending operations associated with dev
Backend
Name aholt-LT
URL azblob://.../Azure/Infrastructure/AppConfiguration?storage_account=...appsdevopssa
User ...\aholt
Organizations
Token type personal
Pulumi locates its logs in C:\Users\aholt\AppData\Local\Temp by default
warning: Failed to get information about the Pulumi program's dependencies: Could not get dependencies because pulumi specifies a binary
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered:
It's the / in the key-value name that trips up the Azure endpoint and makes it respond, confusingly, with 404. The exact same program just with the slash removed works for me.
I verified that we do URL-escape the value, so that's not the problem.
Unfortunately, it seems to be a known issue but users are simply directed to use the data plane SDK instead. That's what Terraform does, too. It's not an option for Pulumi, however, since our SDK is generated from the ARM (control plane) spec.
I think your options at this point are
change your naming convention to avoid slashes, or
use the AppConfiguration data plane SDK in your program to create the key-value, but it won't be managed by Pulumi then.
In #3208 we see a case where an Azure API responds with a non-JSON body
in an error case. We don't expect that and run
`autorest.ByUnmarshallingJSON`, causing a confusing deserialization
error:
```
error: autorest/azure: error response cannot be parsed: {"" '\x00' '\x00'} error: EOF
```
After this change, the same program errors with
```
error: unexpected response from the service: '', HTTP status 404 Not Found
```
What happened?
When i go to create a KeyValue object using AzureNative in C# it will not add the KeyValue to the Azure App configuration instead it errors out with a very generic error
error: autorest/azure: error response cannot be parsed: {"" '\x00' '\x00'} error: EOF
I can provide the same information to AzureClassic and it will create the Key in Azure App Configuration without issue.Example
when I look at the details of the up it looks like this
After I tell it to up I get this error back
error: autorest/azure: error response cannot be parsed: {"" '\x00' '\x00'} error: EOF
Output of
pulumi about
CLI
Version 3.112.0
Go Version go1.22.1
Go Compiler gc
Plugins
NAME VERSION
dotnet unknown
Host
OS Microsoft Windows 11 Enterprise
Version 10.0.22631 Build 22631
Arch x86_64
This project is written in dotnet: executable='C:\Program Files\dotnet\dotnet.exe' version='8.0.202'
Current Stack: organization/*/dev
TYPE URN
pulumi:pulumi:Stack urn:pulumi:dev::...::pulumi:pulumi:Stack::...-dev
pulumi:providers:azure-native urn:pulumi:dev::...::pulumi:providers:azure-native::default_2_36_0
Found no pending operations associated with dev
Backend
Name aholt-LT
URL azblob://.../Azure/Infrastructure/AppConfiguration?storage_account=...appsdevopssa
User ...\aholt
Organizations
Token type personal
Pulumi locates its logs in C:\Users\aholt\AppData\Local\Temp by default
warning: Failed to get information about the Pulumi program's dependencies: Could not get dependencies because pulumi specifies a binary
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: