Name : foo
Path : /path/foo_DeployIfNotExists.json
PolicyId : guid
However the New-AzPolicyDefinition cmdlet accepts, at minimum, Name and Policy.
This is an easy fix. We just need to change the object property name Path to Policy and the two commands will be organized for one to pipe to the other.
The New-GuestConfigurationPolicy cmdlet outputs:
However the New-AzPolicyDefinition cmdlet accepts, at minimum,
Name
andPolicy
.This is an easy fix. We just need to change the object property name
Path
toPolicy
and the two commands will be organized for one to pipe to the other.