-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New-AzResource -Properties JSON white space removed - Breaking Change #20386
Comments
@duttong13 , thanks for reporting. Could you share the debug log when you execute New-AzResource? You can turn on debug via |
@dingmeng-xue, thanks for your response. I have run the script we use under 6.4.0 and 6.5.0 with the following results. Please note the change in line 2402 to 2400 where a space was removed: Unexpected (under 6.5.0) New-AzResource under Az.Resource 6.5.0 (truncated to fit in commment)`##[section]Starting: Deploy Data Factory ObjectsTask : PowerShell
|
This should be fixed in #20399 |
Hi @duttong13. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “ |
@rachelxj-ms Many thanks for mentioning and raising the fix for this. I believe this will address the issue. When will this fix be merged and the version of Az.Resources be incremented? |
Hi @duttong13, since you haven’t asked that we “ |
Description
New Bug within Az-Resource 6.5 version
When we call the following command whilst passing in ADFv2 Pipeline code in -Properties as JSON, we see the whitespaces are removed, e.g. properties.activities.typeProperties changes from 'file name.py' to 'filename' which breaks the ADFv2 pipeline. This is new in 6.5 and wasn't present in 6.4.1.
New-AzResource -ResourceType "Microsoft.DataFactory/factories/pipelines" -ResourceGroupName $resourceGroupName -Name "$dataFactoryName/$pipelineName" -ApiVersion "2018-06-01" -Properties $pipelineFile -IsFullObject -Force
Where $pipelineFile is below:
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: