Skip to content

Parameter values that have spaces #25042

@dazinator

Description

@dazinator

Its not clear how to handle parameter values that have spaces in.

I am having a hard time trying to deploy a runCommand using bicep - where parameters values don't have spaces it works, however where they do have spaces it seems to throw off my script. So i turned to these docs for guidance, to discover that nothing is mentioned in terms of dealing with spaces - it says parameters should be space seperated but not what to do if a single paramater has spaces itself. I would expect the paramter value would need to be quoted?

protectedScriptParameters: [
      { value: '-a' },  { value: 'foo' }
      { value: '-z' },  { value: 'this fails'  }      
    ]

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotact-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions