Skip to main content

Autowritesetting

Properties

NameTypeDescriptionNotes
EnabledBooleanWhether auto-write is currently enabled for the tenant[optional] [default to $false]
IncludedSourceIds[]StringSource IDs in the allowlist. Empty array means not in allowlist mode.[optional]
ExcludedSourceIds[]StringSource IDs to exclude from auto-write. Always applied.[optional]

Examples

  • Prepare the resource
$Autowritesetting = Initialize-Autowritesetting  -Enabled true `
-IncludedSourceIds ["2c91808a7813090a017814552e526349","2c91808a7813090a017814552e52634a"] `
-ExcludedSourceIds ["2c91808a7813090a017814552e526350"]
  • Convert the resource to JSON
$Autowritesetting | ConvertTo-JSON

[Back to top]