Skip to content

AppConfig Key Vault reference import causes invalid Content Type for YAML files #30906

@shanmukhsumanth

Description

@shanmukhsumanth

Describe the bug

While we are trying to deploy Key Vault values in yaml files, its not supporting yaml formart. "Support settings with JSON content type" for AppConfig and I suspect this is what is impacting me.

Related command

az appconfig kv import

Errors

Failed to import 'yaml' file format with 'application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8' content type. Please provide JSON file format to match your content type.

Issue script & Debug output

Same error with Debug command as well

cli.azure.cli.core.azclierror: Failed to import 'yaml' file format with 'application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8' content type. Please provide JSON file format to match your content type.
az_command_data_logger:Failed to import 'yaml' file format with 'application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8' content type. Please provide JSON file format to match your content type.

Expected behavior

AppConfig Key Vault data deployment should be successfully to Azure dashboard with yaml format.

Environment Summary

{
"azure-cli": "2.65.0",
"azure-cli-core": "2.65.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"ssh": "1.1.3"
}

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    App ConfigurationAuto-AssignAuto assign by botAuto-ResolveAuto resolve by botPossible-SolutionService AttentionThis issue is responsible by Azure service team.Similar-IssuebugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions