You can pass JSON object as a string to the pipeline just need to replace " with "
For example this YAML file:
steps:
- task: AzureResourceManagerTemplateDeployment@3
inputs:
deploymentScope: 'Resource Group' # Change this to 'Subscription' if needed
azureResourceManagerConnection: 'YourAzureServiceConnection' # Replace with your service connection name
subscriptionId: 'YourSubscriptionId'
action: 'Create Or Update Resource Group'
resourceGroupName: 'YourResourceGroupName'
location: 'YourResourceGroupLocation'
templateLocation: 'Linked artifact'
csmFile: 'path/to/your/template.json' # Path to your ARM template file
csmParametersFile: 'path/to/your/parameters.json' # Path to a JSON file containing parameters (if needed)
overrideParameters: '-MyJsonObjectParameter "{\"minutes\":[00],\"hours\":[5],\"weekDays\":[\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\"]}"'