microsoft365dsc
Version information
This version is compatible with:
- Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x
- Puppet >= 6.0.0 < 8.0.0
Start using this module
Add this module to your Puppetfile:
mod 'dsc-microsoft365dsc', '1.22.105-1-0'
Learn more about managing modules with a PuppetfileDocumentation
microsoft365dsc
Table of Contents
Description
This is an auto-generated module, using the Puppet DSC Builder to vendor and expose the Microsoft365DSC PowerShell module's DSC resources as Puppet resources. The functionality of this module comes entirely from the vendored PowerShell resources, which are pinned at v1.22.105.1. The PowerShell module describes itself like this:
This DSC module is used to configure and monitor Microsoft tenants, including SharePoint Online, Exchange, Teams, etc.
For information on troubleshooting to determine whether any encountered problems are with the Puppet wrapper or the DSC resource, see the troubleshooting section below.
Requirements
This module, like all auto-generated Puppetized DSC modules, relies on two important technologies in the Puppet stack: the Puppet Resource API and the puppetlabs/pwshlib Puppet module.
The Resource API provides a simplified option for writing types and providers and is responsible for how this module is structured. The Resource API ships inside of Puppet starting with version 6. While it is technically possible to add the Resource API functionality to Puppet 5.5.x, the DSC functionality has not been tested in this setup. For more information on the Resource API, review the documentation.
The module also depends on the pwshlib module. This Puppet module includes two important things: the ruby-pwsh library for running PowerShell code from ruby and the base provider for DSC resources, which this module leverages.
All of the actual work being done to call the DSC resources vendored with this module is in this file from the pwshlib module. This is important for troubleshooting and bug reporting, but doesn't impact your use of the module except that the end result will be that nothing works, as the dependency is not installed alongside this module!
Long File Path Support
Several PowerShell modules with DSC Resources end up with very long file paths once vendored, many of which exceed the 260 character limit for file paths. Luckily in Windows 10 (build 1607+), Windows Server 2016 (build 1607+), and Windows Server 2019 there is now an option for supporting long file paths transparently!
We strongly recommend enabling long file path support on any machines using this module to avoid path length issues.
You can set this value using the Puppet registry_value
resource:
registry_value { 'HKLM\System\CurrentControlSet\Control\FileSystem\LongPathsEnabled':
ensure => 'present',
data => [1],
provider => 'registry',
type => 'dword',
}
You can also set this value outside of Puppet by following the Microsoft documentation.
Usage
You can specify any of the DSC resources from this module like a normal Puppet resource in your manifests. The examples below use DSC resources from from the PowerShellGet repository, regardless of what module you're looking at here; the syntax, not the specifics, is what's important.
For reference documentation about the DSC resources exposed in this module, see the Reference Forge tab, or the REFERENCE.md file.
# Include a meaningful title for your resource declaration
dsc_psrepository { 'Add team module repo':
dsc_name => 'foo',
dsc_ensure => present,
# This location is nonsense, can be any valid folder on your
# machine or in a share, any location the SourceLocation param
# for the DSC resource will accept.
dsc_sourcelocation => 'C:\Program Files',
# You must always pass an enum fully lower-cased;
# Puppet is case sensitive even when PowerShell isn't
dsc_installationpolicy => untrusted,
}
dsc_psrepository { 'Trust public gallery':
dsc_name => 'PSGallery',
dsc_ensure => present,
dsc_installationpolicy => trusted,
}
dsc_psmodule { 'Make Ruby manageable via uru':
dsc_name => 'RubyInstaller',
dsc_ensure => present,
}
Credentials
Credentials are always specified as a hash of the username and password for the account. The password must use the Puppet Sensitive type; this ensures that logs and reports redact the password, displaying it instead as <Sensitive [value redacted]>.
dsc_psrepository { 'PowerShell Gallery':
dsc_name => 'psgAllery',
dsc_installationpolicy => 'Trusted',
dsc_psdscrunascredential => {
user => 'apple',
password => Sensitive('foobar'),
},
}
Class-Based Resources
Class-based DSC Resources can be used like any other DSC Resource in this module, with one important note:
Due to a bug in calling class-based DSC Resources by path instead of module name, each call to Invoke-DscResource
needs to temporarily munge the system-level environment variable for PSModulePath
;
the variable is reset prior to the end of each invocation.
CIM Instances
Because the CIM instances for DSC resources are fully mapped, the types actually explain fairly precisely what the shape of each CIM instance has to be - and, moreover, the type definition means that you get checking at catalog compile time. Puppet parses CIM instances are structured hashes (or arrays of structured hashes) that explicitly declare their keys and the valid types of values for each key.
So, for the dsc_accesscontrolentry
property of the dsc_ntfsaccessentry
type, which has a MOF type of NTFSAccessControlList[]
, Puppet defines the CIM instance as:
Array[Struct[{
accesscontrolentry => Array[Struct[{
accesscontroltype => Enum['Allow', 'Deny'],
inheritance => Enum['This folder only', 'This folder subfolders and files', 'This folder and subfolders', 'This folder and files', 'Subfolders and files only', 'Subfolders only', 'Files only'],
ensure => Enum['Present', 'Absent'],
cim_instance_type => 'NTFSAccessControlEntry',
filesystemrights => Array[Enum['AppendData', 'ChangePermissions', 'CreateDirectories', 'CreateFiles', 'Delete', 'DeleteSubdirectoriesAndFiles', 'ExecuteFile', 'FullControl', 'ListDirectory', 'Modify', 'Read', 'ReadAndExecute', 'ReadAttributes', 'ReadData', 'ReadExtendedAttributes', 'ReadPermissions', 'Synchronize', 'TakeOwnership', 'Traverse', 'Write', 'WriteAttributes', 'WriteData', 'WriteExtendedAttributes']]
}]],
forceprincipal => Optional[Boolean],
principal => Optional[String],
}]]
A valid example of that in a puppet manifest looks like this:
dsc_accesscontrollist => [
{
accesscontrolentry => [
{
accesscontroltype => 'Allow',
inheritance => 'This folder only',
ensure => 'Present',
filesystemrights => 'ChangePermissions',
cim_instance_type => 'NTFSAccessControlEntry',
},
],
principal => 'veryRealUserName',
},
]
For more information about using a built module, check out our narrative documentation.
Properties
Note that the only properties specified in a resource declaration which are passed to Invoke-Dsc are all prepended with dsc.
If a property does _not start with dsc_ it is used to control how Puppet interacts with DSC/other Puppet resources - for example,
specifying a unique name for the resource for Puppet to distinguish between declarations or Puppet metaparameters (notifies,
before, etc).
Validation Mode
By default, these resources use the property validation mode, which checks whether or not the resource is in the desired state the same way most Puppet resources are validated;
by comparing the properties returned from the system with those specified in the manifest.
Sometimes, however, this is insufficient;
many DSC Resources return data that does not compare properly to the desired state (some are missing properties, others are malformed, some simply cannot be strictly compared).
In these cases, you can set the validation mode to resource
, which falls back on calling Invoke-DscResource
with the Test
method and trusts that result.
When using the resource
validation mode, the resource is tested once and will then treat all properties of that resource as in sync (if the result returned true
) or not in sync.
This loses the granularity of change reporting for the resource but prevents flapping and unexpected behavior.
# This will flap because the DSC resource never returns name in SecurityPolicyDsc v2.10.0.0
dsc_securityoption { 'Enforce Anonoymous SID Translation':
dsc_name => 'Enforce Anonymous SID Translation',
dsc_network_access_allow_anonymous_sid_name_translation => 'Disabled',
}
# This will idempotently apply
dsc_psrepository { 'PowerShell Gallery':
validation_mode => 'resource',
dsc_name => 'Enforce Anonymous SID Translation',
dsc_network_access_allow_anonymous_sid_name_translation => 'Disabled',
}
It is important to note that this feature is only supported with a version of puppetlabs-pwshlib
equal to or higher than 0.9.0
, in which the supporting code for the DSC Base Provider to implement custom insync was shipped.
Finally, while this module's metadata says that the supported Puppet versions are 6.0.0 and up, the implementation of the validation_mode
parameter relies on the custom_insync
feature of the Puppet Resource API.
The custom_insync
feature first shipped in the puppet-resource_api
version 1.8.14
, which itself is only included in Puppet versions equal to or newer than 6.23.0
and 7.8.0
for the 6x and 7x platforms respectively.
Using this module against older Puppet versions will result in a warning (example below) and only use the default property-by-property change reporting, regardless of the setting of validation_mode
.
Warning: Unknown feature detected: ["custom_insync"]
Troubleshooting
In general, there are three broad categories of problems:
- Problems with the way the underlying DSC resource works.
- Problems with the type definition, where you can't specify a valid set of properties for the DSC resource
- Problems with calling the underlying DSC resource - the parameters aren't being passed correctly or the resource can't be found
Unfortunately, problems with the way the underlying DSC resource works are something we can't help directly with. You'll need to file an issue with the upstream maintainers for the PowerShell module.
Problems with the type definition are when a value that should be valid according to the DSC resource's documentation and code is not accepted by the Puppet wrapper. If and when you run across one of these, please file an issue with the Puppet DSC Builder; this is where the conversion happens and once we know of a problem we can fix it and regenerate the Puppet modules. To help us identify the issue, please specify the DSC module, version, resource, property and values that are giving you issues. Once a fix is available we will regenerate and release updated versions of this Puppet wrapper.
Problems with calling the underlying DSC resource become apparent by comparing <value passed in in puppet>
with <value received by DSC>
.
In this case, please file an issue with the puppetlabs/pwshlib module, which is where the DSC base provider actually lives.
We'll investigate and prioritize a fix and update the puppetlabs/pwshlib module.
Updating to the pwshlib version with the fix will immediately take advantage of the improved functionality without waiting for this module to be reconverted and published.
For specific information on troubleshooting a generated module, check the troubleshooting guide for the puppet.dsc module.
Known Limitations
Currently, because of the way Puppet caches files on agents, use of the legacy puppetlabs-dsc
module is not compatible with this or any auto-generated DSC module.
Inclusion of both will lead to pluginsync conflicts.
Right now, if you have the same version of a PowerShell module with class-based DSC Resources in your PSModulePath as vendored in a Puppetized DSC Module, you cannot use those class-based DSC Resources from inside of Puppet due to a bug in DSC which prevents using a module by path reference instead of name. Instead, DSC will see that there are two DSC Resources for the same module and version and then error out.
Configuring the LCM
In order for a Puppetized DSC module to function, the DSC Local Configuration Manager (LCM) RefreshMode
must be set to either Push
or Disabled
.
The default value for RefreshMode
in WMF 5.0 and WMF 5.1 is Push
- so if it has not been set to anything else then there is no action needed on your part.
However if the value of the LCM has been set to anything other than Push
then the module will not function and so the value must either be changed back or disabled.
The Puppetized DSC modules use the Invoke-DscResource
cmdlet to invoke DSC Resources of the target machine.
If the RefreshMode
is set to Pull
, DSC Resources will only run from a DSC Pull Server - in this setting DSC does not allow any DSC Resources to be run interactively on the host.
Module Installation
If you're using this module with Puppet Enterprise and Code Manager, everything should "just work" - no errors or issues acquiring and deploying this or any Puppetized DSC module to nodes.
Unfortunately, due a bug in minitar which prevents it from unpacking archives with long file paths, both r10k
and serverless Puppet (via puppet module install
) methods of installing modules with long path names will fail.
In short, minitar is unable to unpack modules that contain long file paths (though it can create them).
As a workaround, you can retrieve DSC modules from the forge via PowerShell and 7zip:
$ModuleAuthor = 'dsc'
$ModuleName = 'xremotedesktopsessionhost'
$ModuleVersion = '2.0.0-0-1'
$ArchiveFileName = "$ModuleAuthor-$ModuleName-$ModuleVersion.tar.gz"
$DownloadUri = "https://forge.puppet.com/v3/files/$ArchiveFileName"
# Download the module tar.gz to the current directory
Invoke-WebRequest -Uri $DownloadUri -OutFile ./$ArchiveFileName
# Use 7zip to extract the module to the current directory
& 7z x $ArchiveFileName -so | & 7z x -aoa -si -ttar
Reference
Table of Contents
Resource types
dsc_aadapplication
: The DSC AADApplication resource type. Automatically generated from version 1.22.105.1dsc_aadconditionalaccesspolicy
: The DSC AADConditionalAccessPolicy resource type. Automatically generated from version 1.22.105.1dsc_aadgroup
: The DSC AADGroup resource type. Automatically generated from version 1.22.105.1dsc_aadgrouplifecyclepolicy
: The DSC AADGroupLifecyclePolicy resource type. Automatically generated from version 1.22.105.1dsc_aadgroupsnamingpolicy
: The DSC AADGroupsNamingPolicy resource type. Automatically generated from version 1.22.105.1dsc_aadgroupssettings
: The DSC AADGroupsSettings resource type. Automatically generated from version 1.22.105.1dsc_aadnamedlocationpolicy
: The DSC AADNamedLocationPolicy resource type. Automatically generated from version 1.22.105.1dsc_aadroledefinition
: The DSC AADRoleDefinition resource type. Automatically generated from version 1.22.105.1dsc_aadserviceprincipal
: The DSC AADServicePrincipal resource type. Automatically generated from version 1.22.105.1dsc_aadtenantdetails
: The DSC AADTenantDetails resource type. Automatically generated from version 1.22.105.1dsc_aadtokenlifetimepolicy
: The DSC AADTokenLifetimePolicy resource type. Automatically generated from version 1.22.105.1dsc_exoaccepteddomain
: The DSC EXOAcceptedDomain resource type. Automatically generated from version 1.22.105.1dsc_exoactivesyncdeviceaccessrule
: The DSC EXOActiveSyncDeviceAccessRule resource type. Automatically generated from version 1.22.105.1dsc_exoaddressbookpolicy
: The DSC EXOAddressBookPolicy resource type. Automatically generated from version 1.22.105.1dsc_exoaddresslist
: The DSC EXOAddressList resource type. Automatically generated from version 1.22.105.1dsc_exoantiphishpolicy
: The DSC EXOAntiPhishPolicy resource type. Automatically generated from version 1.22.105.1dsc_exoantiphishrule
: The DSC EXOAntiPhishRule resource type. Automatically generated from version 1.22.105.1dsc_exoapplicationaccesspolicy
: The DSC EXOApplicationAccessPolicy resource type. Automatically generated from version 1.22.105.1dsc_exoatppolicyforo365
: The DSC EXOAtpPolicyForO365 resource type. Automatically generated from version 1.22.105.1dsc_exoavailabilityaddressspace
: The DSC EXOAvailabilityAddressSpace resource type. Automatically generated from version 1.22.105.1dsc_exoavailabilityconfig
: The DSC EXOAvailabilityConfig resource type. Automatically generated from version 1.22.105.1dsc_exocasmailboxplan
: The DSC EXOCASMailboxPlan resource type. Automatically generated from version 1.22.105.1dsc_exoclientaccessrule
: The DSC EXOClientAccessRule resource type. Automatically generated from version 1.22.105.1dsc_exodkimsigningconfig
: The DSC EXODkimSigningConfig resource type. Automatically generated from version 1.22.105.1dsc_exoemailaddresspolicy
: The DSC EXOEmailAddressPolicy resource type. Automatically generated from version 1.22.105.1dsc_exoglobaladdresslist
: The DSC EXOGlobalAddressList resource type. Automatically generated from version 1.22.105.1dsc_exohostedconnectionfilterpolicy
: The DSC EXOHostedConnectionFilterPolicy resource type. Automatically generated from version 1.22.105.1dsc_exohostedcontentfilterpolicy
: The DSC EXOHostedContentFilterPolicy resource type. Automatically generated from version 1.22.105.1dsc_exohostedcontentfilterrule
: The DSC EXOHostedContentFilterRule resource type. Automatically generated from version 1.22.105.1dsc_exohostedoutboundspamfilterpolicy
: The DSC EXOHostedOutboundSpamFilterPolicy resource type. Automatically generated from version 1.22.105.1dsc_exohostedoutboundspamfilterrule
: The DSC EXOHostedOutboundSpamFilterRule resource type. Automatically generated from version 1.22.105.1dsc_exoinboundconnector
: The DSC EXOInboundConnector resource type. Automatically generated from version 1.22.105.1dsc_exointraorganizationconnector
: The DSC EXOIntraOrganizationConnector resource type. Automatically generated from version 1.22.105.1dsc_exojournalrule
: The DSC EXOJournalRule resource type. Automatically generated from version 1.22.105.1dsc_exomailboxsettings
: The DSC EXOMailboxSettings resource type. Automatically generated from version 1.22.105.1dsc_exomailtips
: The DSC EXOMailTips resource type. Automatically generated from version 1.22.105.1dsc_exomalwarefilterpolicy
: The DSC EXOMalwareFilterPolicy resource type. Automatically generated from version 1.22.105.1dsc_exomalwarefilterrule
: The DSC EXOMalwareFilterRule resource type. Automatically generated from version 1.22.105.1dsc_exomanagementrole
: The DSC EXOManagementRole resource type. Automatically generated from version 1.22.105.1dsc_exomobiledevicemailboxpolicy
: The DSC EXOMobileDeviceMailboxPolicy resource type. Automatically generated from version 1.22.105.1dsc_exoofflineaddressbook
: The DSC EXOOfflineAddressBook resource type. Automatically generated from version 1.22.105.1dsc_exoonpremisesorganization
: The DSC EXOOnPremisesOrganization resource type. Automatically generated from version 1.22.105.1dsc_exoorganizationconfig
: The DSC EXOOrganizationConfig resource type. Automatically generated from version 1.22.105.1dsc_exoorganizationrelationship
: The DSC EXOOrganizationRelationship resource type. Automatically generated from version 1.22.105.1dsc_exooutboundconnector
: The DSC EXOOutboundConnector resource type. Automatically generated from version 1.22.105.1dsc_exoowamailboxpolicy
: The DSC EXOOwaMailboxPolicy resource type. Automatically generated from version 1.22.105.1dsc_exopartnerapplication
: The DSC EXOPartnerApplication resource type. Automatically generated from version 1.22.105.1dsc_exopolicytipconfig
: The DSC EXOPolicyTipConfig resource type. Automatically generated from version 1.22.105.1dsc_exoremotedomain
: The DSC EXORemoteDomain resource type. Automatically generated from version 1.22.105.1dsc_exoroleassignmentpolicy
: The DSC EXORoleAssignmentPolicy resource type. Automatically generated from version 1.22.105.1dsc_exosafeattachmentpolicy
: The DSC EXOSafeAttachmentPolicy resource type. Automatically generated from version 1.22.105.1dsc_exosafeattachmentrule
: The DSC EXOSafeAttachmentRule resource type. Automatically generated from version 1.22.105.1dsc_exosafelinkspolicy
: The DSC EXOSafeLinksPolicy resource type. Automatically generated from version 1.22.105.1dsc_exosafelinksrule
: The DSC EXOSafeLinksRule resource type. Automatically generated from version 1.22.105.1dsc_exosharedmailbox
: The DSC EXOSharedMailbox resource type. Automatically generated from version 1.22.105.1dsc_exosharingpolicy
: The DSC EXOSharingPolicy resource type. Automatically generated from version 1.22.105.1dsc_exotransportrule
: The DSC EXOTransportRule resource type. Automatically generated from version 1.22.105.1dsc_intuneappconfigurationpolicy
: The DSC IntuneAppConfigurationPolicy resource type. Automatically generated from version 1.22.105.1dsc_intuneappprotectionpolicyios
: The DSC IntuneAppProtectionPolicyiOS resource type. Automatically generated from version 1.22.105.1dsc_intunedevicecategory
: The DSC IntuneDeviceCategory resource type. Automatically generated from version 1.22.105.1dsc_intunedevicecompliancepolicyandroid
: The DSC IntuneDeviceCompliancePolicyAndroid resource type. Automatically generated from version 1.22.105.1dsc_intunedevicecompliancepolicyandroiddeviceowner
: The DSC IntuneDeviceCompliancePolicyAndroidDeviceOwner resource type. Automatically generated from version 1.22.105.1dsc_intunedevicecompliancepolicyandroidworkprofile
: The DSC IntuneDeviceCompliancePolicyAndroidWorkProfile resource type. Automatically generated from version 1.22.105.1dsc_intunedevicecompliancepolicyios
: The DSC IntuneDeviceCompliancePolicyiOs resource type. Automatically generated from version 1.22.105.1dsc_intunedevicecompliancepolicymacos
: The DSC IntuneDeviceCompliancePolicyMacOS resource type. Automatically generated from version 1.22.105.1dsc_intunedevicecompliancepolicywindows10
: The DSC IntuneDeviceCompliancePolicyWindows10 resource type. Automatically generated from version 1.22.105.1dsc_intunedeviceconfigurationpolicyandroidworkprofile
: The DSC IntuneDeviceConfigurationPolicyAndroidWorkProfile resource type. Automatically generated from version 1.22.105.1dsc_intunedeviceconfigurationpolicyios
: The DSC IntuneDeviceConfigurationPolicyiOS resource type. Automatically generated from version 1.22.105.1dsc_intunedeviceconfigurationpolicywindows10
: The DSC IntuneDeviceConfigurationPolicyWindows10 resource type. Automatically generated from version 1.22.105.1dsc_intunedeviceenrollmentlimitrestriction
: The DSC IntuneDeviceEnrollmentLimitRestriction resource type. Automatically generated from version 1.22.105.1dsc_intunedeviceenrollmentplatformrestriction
: The DSC IntuneDeviceEnrollmentPlatformRestriction resource type. Automatically generated from version 1.22.105.1dsc_o365adminauditlogconfig
: The DSC O365AdminAuditLogConfig resource type. Automatically generated from version 1.22.105.1dsc_o365group
: The DSC O365Group resource type. Automatically generated from version 1.22.105.1dsc_o365orgcustomizationsetting
: The DSC O365OrgCustomizationSetting resource type. Automatically generated from version 1.22.105.1dsc_o365user
: The DSC O365User resource type. Automatically generated from version 1.22.105.1dsc_odsettings
: The DSC ODSettings resource type. Automatically generated from version 1.22.105.1dsc_plannerbucket
: The DSC PlannerBucket resource type. Automatically generated from version 1.22.105.1dsc_plannerplan
: The DSC PlannerPlan resource type. Automatically generated from version 1.22.105.1dsc_plannertask
: The DSC PlannerTask resource type. Automatically generated from version 1.22.105.1dsc_pppowerappsenvironment
: The DSC PPPowerAppsEnvironment resource type. Automatically generated from version 1.22.105.1dsc_pptenantsettings
: The DSC PPTenantSettings resource type. Automatically generated from version 1.22.105.1dsc_scauditconfigurationpolicy
: The DSC SCAuditConfigurationPolicy resource type. Automatically generated from version 1.22.105.1dsc_sccaseholdpolicy
: The DSC SCCaseHoldPolicy resource type. Automatically generated from version 1.22.105.1dsc_sccaseholdrule
: The DSC SCCaseHoldRule resource type. Automatically generated from version 1.22.105.1dsc_sccompliancecase
: The DSC SCComplianceCase resource type. Automatically generated from version 1.22.105.1dsc_sccompliancesearch
: The DSC SCComplianceSearch resource type. Automatically generated from version 1.22.105.1dsc_sccompliancesearchaction
: The DSC SCComplianceSearchAction resource type. Automatically generated from version 1.22.105.1dsc_sccompliancetag
: The DSC SCComplianceTag resource type. Automatically generated from version 1.22.105.1dsc_scdeviceconditionalaccesspolicy
: The DSC SCDeviceConditionalAccessPolicy resource type. Automatically generated from version 1.22.105.1dsc_scdeviceconfigurationpolicy
: The DSC SCDeviceConfigurationPolicy resource type. Automatically generated from version 1.22.105.1dsc_scdlpcompliancepolicy
: The DSC SCDLPCompliancePolicy resource type. Automatically generated from version 1.22.105.1dsc_scdlpcompliancerule
: The DSC SCDLPComplianceRule resource type. Automatically generated from version 1.22.105.1dsc_scfileplanpropertyauthority
: The DSC SCFilePlanPropertyAuthority resource type. Automatically generated from version 1.22.105.1dsc_scfileplanpropertycategory
: The DSC SCFilePlanPropertyCategory resource type. Automatically generated from version 1.22.105.1dsc_scfileplanpropertycitation
: The DSC SCFilePlanPropertyCitation resource type. Automatically generated from version 1.22.105.1dsc_scfileplanpropertydepartment
: The DSC SCFilePlanPropertyDepartment resource type. Automatically generated from version 1.22.105.1dsc_scfileplanpropertyreferenceid
: The DSC SCFilePlanPropertyReferenceId resource type. Automatically generated from version 1.22.105.1dsc_scfileplanpropertysubcategory
: The DSC SCFilePlanPropertySubCategory resource type. Automatically generated from version 1.22.105.1dsc_sclabelpolicy
: The DSC SCLabelPolicy resource type. Automatically generated from version 1.22.105.1dsc_scretentioncompliancepolicy
: The DSC SCRetentionCompliancePolicy resource type. Automatically generated from version 1.22.105.1dsc_scretentioncompliancerule
: The DSC SCRetentionComplianceRule resource type. Automatically generated from version 1.22.105.1dsc_scretentioneventtype
: The DSC SCRetentionEventType resource type. Automatically generated from version 1.22.105.1dsc_scsensitivitylabel
: The DSC SCSensitivityLabel resource type. Automatically generated from version 1.22.105.1dsc_scsupervisoryreviewpolicy
: The DSC SCSupervisoryReviewPolicy resource type. Automatically generated from version 1.22.105.1dsc_scsupervisoryreviewrule
: The DSC SCSupervisoryReviewRule resource type. Automatically generated from version 1.22.105.1dsc_spoaccesscontrolsettings
: The DSC SPOAccessControlSettings resource type. Automatically generated from version 1.22.105.1dsc_spoapp
: The DSC SPOApp resource type. Automatically generated from version 1.22.105.1dsc_spobrowseridlesignout
: The DSC SPOBrowserIdleSignout resource type. Automatically generated from version 1.22.105.1dsc_spohomesite
: The DSC SPOHomeSite resource type. Automatically generated from version 1.22.105.1dsc_spohubsite
: The DSC SPOHubSite resource type. Automatically generated from version 1.22.105.1dsc_spoorgassetslibrary
: The DSC SPOOrgAssetsLibrary resource type. Automatically generated from version 1.22.105.1dsc_spopropertybag
: The DSC SPOPropertyBag resource type. Automatically generated from version 1.22.105.1dsc_sposearchmanagedproperty
: The DSC SPOSearchManagedProperty resource type. Automatically generated from version 1.22.105.1dsc_sposearchresultsource
: The DSC SPOSearchResultSource resource type. Automatically generated from version 1.22.105.1dsc_sposharingsettings
: The DSC SPOSharingSettings resource type. Automatically generated from version 1.22.105.1dsc_sposite
: The DSC SPOSite resource type. Automatically generated from version 1.22.105.1dsc_spositeauditsettings
: The DSC SPOSiteAuditSettings resource type. Automatically generated from version 1.22.105.1dsc_spositedesign
: The DSC SPOSiteDesign resource type. Automatically generated from version 1.22.105.1dsc_spositedesignrights
: The DSC SPOSiteDesignRights resource type. Automatically generated from version 1.22.105.1dsc_spositegroup
: The DSC SPOSiteGroup resource type. Automatically generated from version 1.22.105.1dsc_spositescript
: The DSC SPOSiteScript resource type. Automatically generated from version 1.22.105.1dsc_spostorageentity
: The DSC SPOStorageEntity resource type. Automatically generated from version 1.22.105.1dsc_spotenantcdnenabled
: The DSC SPOTenantCdnEnabled resource type. Automatically generated from version 1.22.105.1dsc_spotenantcdnpolicy
: The DSC SPOTenantCDNPolicy resource type. Automatically generated from version 1.22.105.1dsc_spotenantsettings
: The DSC SPOTenantSettings resource type. Automatically generated from version 1.22.105.1dsc_spotheme
: The DSC SPOTheme resource type. Automatically generated from version 1.22.105.1dsc_spouserprofileproperty
: The DSC SPOUserProfileProperty resource type. Automatically generated from version 1.22.105.1dsc_teamscallingpolicy
: The DSC TeamsCallingPolicy resource type. Automatically generated from version 1.22.105.1dsc_teamschannel
: The DSC TeamsChannel resource type. Automatically generated from version 1.22.105.1dsc_teamschannelspolicy
: The DSC TeamsChannelsPolicy resource type. Automatically generated from version 1.22.105.1dsc_teamschanneltab
: The DSC TeamsChannelTab resource type. Automatically generated from version 1.22.105.1dsc_teamsclientconfiguration
: The DSC TeamsClientConfiguration resource type. Automatically generated from version 1.22.105.1dsc_teamsemergencycallingpolicy
: The DSC TeamsEmergencyCallingPolicy resource type. Automatically generated from version 1.22.105.1dsc_teamsemergencycallroutingpolicy
: The DSC TeamsEmergencyCallRoutingPolicy resource type. Automatically generated from version 1.22.105.1dsc_teamsguestcallingconfiguration
: The DSC TeamsGuestCallingConfiguration resource type. Automatically generated from version 1.22.105.1dsc_teamsguestmeetingconfiguration
: The DSC TeamsGuestMeetingConfiguration resource type. Automatically generated from version 1.22.105.1dsc_teamsguestmessagingconfiguration
: The DSC TeamsGuestMessagingConfiguration resource type. Automatically generated from version 1.22.105.1dsc_teamsmeetingbroadcastconfiguration
: The DSC TeamsMeetingBroadcastConfiguration resource type. Automatically generated from version 1.22.105.1dsc_teamsmeetingbroadcastpolicy
: The DSC TeamsMeetingBroadcastPolicy resource type. Automatically generated from version 1.22.105.1dsc_teamsmeetingconfiguration
: The DSC TeamsMeetingConfiguration resource type. Automatically generated from version 1.22.105.1dsc_teamsmeetingpolicy
: The DSC TeamsMeetingPolicy resource type. Automatically generated from version 1.22.105.1dsc_teamsmessagingpolicy
: The DSC TeamsMessagingPolicy resource type. Automatically generated from version 1.22.105.1dsc_teamspstnusage
: The DSC TeamsPstnUsage resource type. Automatically generated from version 1.22.105.1dsc_teamsteam
: The DSC TeamsTeam resource type. Automatically generated from version 1.22.105.1dsc_teamstenantdialplan
: The DSC TeamsTenantDialPlan resource type. Automatically generated from version 1.22.105.1dsc_teamsupgradeconfiguration
: The DSC TeamsUpgradeConfiguration resource type. Automatically generated from version 1.22.105.1dsc_teamsupgradepolicy
: The DSC TeamsUpgradePolicy resource type. Automatically generated from version 1.22.105.1dsc_teamsuser
: The DSC TeamsUser resource type. Automatically generated from version 1.22.105.1dsc_teamsvoiceroute
: The DSC TeamsVoiceRoute resource type. Automatically generated from version 1.22.105.1dsc_teamsvoiceroutingpolicy
: The DSC TeamsVoiceRoutingPolicy resource type. Automatically generated from version 1.22.105.1
Resource types
dsc_aadapplication
The DSC AADApplication resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_aadapplication
type.
dsc_appid
Data type: Optional[String]
AppId for the app.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_applicationsecret
Data type: Optional[String]
Secret of the Azure Active Directory application to authenticate with.
dsc_availabletoothertenants
Data type: Optional[Boolean]
Indicates whether this application is available in other tenants.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if the Azure AD App should exist or not.
dsc_groupmembershipclaims
Data type: Optional[String]
A bitmask that configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. The bitmask values are: 0: None, 1: Security groups and Azure AD roles, 2: Reserved, and 4: Reserved. Setting the bitmask to 7 will get all of the security groups, distribution groups, and Azure AD directory roles that the signed-in user is a member of.
dsc_homepage
Data type: Optional[String]
The URL to the application's homepage.
dsc_identifieruris
Data type: Optional[Array[String]]
User-defined URI(s) that uniquely identify a Web application within its Azure AD tenant, or within a verified custom domain.
dsc_knownclientapplications
Data type: Optional[Array[String]]
Client applications that are tied to this resource application.
dsc_logouturl
Data type: Optional[String]
The logout url for this application.
dsc_oauth2requirepostresponse
Data type: Optional[Boolean]
Set this to true if an Oauth2 psot response is required.
dsc_objectid
Data type: Optional[String]
ObjectID of the app.
dsc_permissions
Data type: Optional[Array[Struct[{ adminconsentgranted => Optional[Boolean], sourceapi => Optional[String], name => Optional[String], type => Optional[Enum['AppOnly', 'Delegated']] }]]]
API permissions for the Azure Active Directory Application.
dsc_publicclient
Data type: Optional[Boolean]
Specifies whether this application is a public client (such as an installed application running on a mobile device). Default is false.
dsc_replyurls
Data type: Optional[Array[String]]
Specifies the URLs that user tokens are sent to for sign in, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
Parameters
The following parameters are available in the dsc_aadapplication
type.
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials for the Microsoft Graph delegated permissions.
dsc_displayname
namevar
Data type: String
DisplayName of the app
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_aadconditionalaccesspolicy
The DSC AADConditionalAccessPolicy resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_aadconditionalaccesspolicy
type.
dsc_applicationenforcedrestrictionsisenabled
Data type: Optional[Boolean]
Specifies, whether Application Enforced Restrictions are enabled in the Policy.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_applicationsecret
Data type: Optional[String]
Secret of the Azure Active Directory application to authenticate with.
dsc_builtincontrols
Data type: Optional[Array[String]]
List of built-in Grant Controls to be applied by the Policy.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_clientapptypes
Data type: Optional[Array[String]]
Client App types in scope of the Policy.
dsc_cloudappsecurityisenabled
Data type: Optional[Boolean]
Specifies, whether Cloud App Security is enforced by the Policy.
dsc_cloudappsecuritytype
Data type: Optional[String]
Specifies, what Cloud App Security control is enforced by the Policy.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if the Azure AD CA Policy should exist or not.
dsc_excludeapplications
Data type: Optional[Array[String]]
Cloud Apps out of scope of the Policy.
dsc_excludedevices
Data type: Optional[Array[String]]
Client Device Compliance states out of scope of the Policy.
dsc_excludegroups
Data type: Optional[Array[String]]
Groups out of scope of the Policy.
dsc_excludelocations
Data type: Optional[Array[String]]
AAD Named Locations out of scope of the Policy.
dsc_excludeplatforms
Data type: Optional[Array[String]]
Client Device Platforms out of scope of the Policy.
dsc_excluderoles
Data type: Optional[Array[String]]
AAD Admin Roles out of scope of the Policy.
dsc_excludeusers
Data type: Optional[Array[String]]
Users out of scope of the Policy.
dsc_grantcontroloperator
Data type: Optional[Enum['AND', 'OR']]
Operator to be used for Grant Controls.
dsc_id
Data type: Optional[String]
Specifies the GUID for the Policy.
dsc_includeapplications
Data type: Optional[Array[String]]
Cloud Apps in scope of the Policy.
dsc_includedevices
Data type: Optional[Array[String]]
Client Device Compliance states in scope of the Policy.
dsc_includegroups
Data type: Optional[Array[String]]
Groups in scope of the Policy.
dsc_includelocations
Data type: Optional[Array[String]]
AAD Named Locations in scope of the Policy.
dsc_includeplatforms
Data type: Optional[Array[String]]
Client Device Platforms in scope of the Policy.
dsc_includeroles
Data type: Optional[Array[String]]
AAD Admin Roles in scope of the Policy.
dsc_includeuseractions
Data type: Optional[Array[String]]
User Actions in scope of the Policy.
dsc_includeusers
Data type: Optional[Array[String]]
Users in scope of the Policy.
dsc_persistentbrowserisenabled
Data type: Optional[Boolean]
Specifies, whether Browser Persistence is controlled by the Policy.
dsc_persistentbrowsermode
Data type: Optional[Enum['Always', 'Never', '']]
Specifies, what Browser Persistence control is enforced by the Policy.
dsc_signinfrequencyisenabled
Data type: Optional[Boolean]
Specifies, whether sign-in frequency is enforced by the Policy.
dsc_signinfrequencytype
Data type: Optional[Enum['Days', 'Hours', '']]
Sign in frequency unit (days/hours) to be interpreted by the policy.
dsc_signinfrequencyvalue
Data type: Optional[Integer[0, 4294967295]]
Sign in frequency time in the given unit to be enforced by the policy.
dsc_signinrisklevels
Data type: Optional[Array[String]]
AAD Identity Protection Sign-in Risk Levels in scope of the Policy.
dsc_state
Data type: Optional[Enum['disabled', 'enabled', 'enabledForReportingButNotEnforced']]
Specifies the State of the Policy.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
dsc_termsofuse
Data type: Optional[String]
Display name of the terms of use to assign.
dsc_userrisklevels
Data type: Optional[Array[String]]
AAD Identity Protection User Risk Levels in scope of the Policy.
Parameters
The following parameters are available in the dsc_aadconditionalaccesspolicy
type.
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials for the Microsoft Graph delegated permissions.
dsc_displayname
namevar
Data type: String
DisplayName of the AAD CA Policy
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_aadgroup
The DSC AADGroup resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_aadgroup
type.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_applicationsecret
Data type: Optional[String]
Secret of the Azure Active Directory application to authenticate with.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_description
Data type: Optional[String]
Specifies a description for the group.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if the Azure AD Group should exist or not.
dsc_grouptypes
Data type: Optional[Array[String]]
Specifies that the group is a dynamic group. To create a dynamic group, specify a value of DynamicMembership.
dsc_id
Data type: Optional[String]
Specifies an ID for the group.
dsc_isassignabletorole
Data type: Optional[Boolean]
Specifies whether this group can be assigned a role. Only available when creating a group and can't be modified after group is created.
dsc_mailenabled
Data type: Optional[Boolean]
Specifies whether this group is mail enabled. Currently, you cannot create mail enabled groups in Azure AD.
dsc_membershiprule
Data type: Optional[String]
Specifies the membership rule for a dynamic group.
dsc_membershipruleprocessingstate
Data type: Optional[Enum['On', 'Paused']]
Specifies the rule processing state. The acceptable values for this parameter are: On. Process the group rule or Paused. Stop processing the group rule.
dsc_securityenabled
Data type: Optional[Boolean]
Specifies whether the group is security enabled. For security groups, this value must be $True.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
dsc_visibility
Data type: Optional[Enum['Public', 'Private', 'HiddenMembership']]
This parameter determines the visibility of the group's content and members list.
Parameters
The following parameters are available in the dsc_aadgroup
type.
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials for the Microsoft Graph delegated permissions.
dsc_displayname
namevar
Data type: String
DisplayName of the Azure Active Directory Group
dsc_mailnickname
namevar
Data type: String
Specifies a mail nickname for the group.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_aadgrouplifecyclepolicy
The DSC AADGroupLifecyclePolicy resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_aadgrouplifecyclepolicy
type.
dsc_alternatenotificationemails
Data type: Array[String]
Notification emails for groups that have no owners will be sent to these email addresses.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_applicationsecret
Data type: Optional[String]
Secret of the Azure Active Directory application to authenticate with.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if the Azure AD Groups Lifecycle Policy should exist or not.
dsc_grouplifetimeindays
Data type: Integer[0, 4294967295]
The number of days a group can exist before it needs to be renewed.
dsc_managedgrouptypes
Data type: Enum['All', 'None', 'Selected']
This parameter allows the admin to select which office 365 groups the policy will apply to. 'None' will create the policy in a disabled state. 'All' will apply the policy to every Office 365 group in the tenant. 'Selected' will allow the admin to choose specific Office 365 groups that the policy will apply to.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
Parameters
The following parameters are available in the dsc_aadgrouplifecyclepolicy
type.
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials for the Microsoft Graph delegated permissions.
dsc_issingleinstance
namevar
Data type: Enum['Yes']
Only valid value is 'Yes'.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_aadgroupsnamingpolicy
The DSC AADGroupsNamingPolicy resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_aadgroupsnamingpolicy
type.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_applicationsecret
Data type: Optional[String]
Secret of the Azure Active Directory application to authenticate with.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_customblockedwordslist
Data type: Optional[Array[String]]
Comma delimited list of words that should be blocked from being included in groups' names.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if the Azure AD Groups Naming Policy should exist or not.
dsc_prefixsuffixnamingrequirement
Data type: Optional[String]
Prefixes and suffixes to add to the group name.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
Parameters
The following parameters are available in the dsc_aadgroupsnamingpolicy
type.
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials for the Microsoft Graph delegated permissions.
dsc_issingleinstance
namevar
Data type: Enum['Yes']
Only valid value is 'Yes'.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_aadgroupssettings
The DSC AADGroupsSettings resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_aadgroupssettings
type.
dsc_allowgueststoaccessgroups
Data type: Optional[Boolean]
Boolean indicating whether or not a guest user can have access to Office 365 groups content. This setting does not require an Azure Active Directory Premium P1 license.
dsc_allowgueststobegroupowner
Data type: Optional[Boolean]
Boolean indicating whether or not a guest user can be an owner of groups.
dsc_allowtoaddguests
Data type: Optional[Boolean]
A boolean indicating whether or not is allowed to add guests to this directory.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_applicationsecret
Data type: Optional[String]
Secret of the Azure Active Directory application to authenticate with.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_enablegroupcreation
Data type: Optional[Boolean]
The flag indicating whether Office 365 group creation is allowed in the directory by non-admin users. This setting does not require an Azure Active Directory Premium P1 license.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if the Azure AD Groups Naming Policy should exist or not.
dsc_groupcreationallowedgroupname
Data type: Optional[String]
Name of the security group for which the members are allowed to create Office 365 groups even when EnableGroupCreation == false.
dsc_guestusageguidelinesurl
Data type: Optional[String]
The url of a link to the guest usage guidelines.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
dsc_usageguidelinesurl
Data type: Optional[String]
A link to the Group Usage Guidelines.
Parameters
The following parameters are available in the dsc_aadgroupssettings
type.
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials for the Microsoft Graph delegated permissions.
dsc_issingleinstance
namevar
Data type: Enum['Yes']
Only valid value is 'Yes'.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_aadnamedlocationpolicy
The DSC AADNamedLocationPolicy resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_aadnamedlocationpolicy
type.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_applicationsecret
Data type: Optional[String]
Secret of the Azure Active Directory application to authenticate with.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_countriesandregions
Data type: Optional[Array[String]]
Specifies the countries and regions for the Named Location in Azure Active Directory
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if the Azure AD Named Location should exist or not.
dsc_id
Data type: Optional[String]
Specifies the ID of a Named Location in Azure Active Directory.
dsc_includeunknowncountriesandregions
Data type: Optional[Boolean]
Specifies the includeUnknownCountriesAndRegions value for the Named Location in Azure Active Directory
dsc_ipranges
Data type: Optional[Array[String]]
Specifies the IP ranges of the Named Location in Azure Active Directory
dsc_istrusted
Data type: Optional[Boolean]
Specifies the isTrusted value for the Named Location in Azure Active Directory
dsc_odatatype
Data type: Optional[Enum['#microsoft.graph.countryNamedLocation', '#microsoft.graph.ipNamedLocation']]
Specifies the Odata Type of a Named Location object in Azure Active Directory
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
Parameters
The following parameters are available in the dsc_aadnamedlocationpolicy
type.
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials for the Microsoft Graph delegated permissions.
dsc_displayname
namevar
Data type: String
Specifies the Display Name of a Named Location in Azure Active Directory
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_aadroledefinition
The DSC AADRoleDefinition resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_aadroledefinition
type.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_applicationsecret
Data type: Optional[String]
Secret of the Azure Active Directory application to authenticate with.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_description
Data type: Optional[String]
Specifies a description for the role definition.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if the Azure AD Role definition should exist or not.
dsc_id
Data type: Optional[String]
Specifies Id for the role definition.
dsc_isenabled
Data type: Boolean
Specifies whether the role definition is enabled.
dsc_resourcescopes
Data type: Optional[Array[String]]
Specifies the resource scopes for the role definition.
dsc_rolepermissions
Data type: Array[String]
Specifies permissions for the role definition.
dsc_templateid
Data type: Optional[String]
Specifies template id for the role definition.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
dsc_version
Data type: Optional[String]
Specifies version for the role definition.
Parameters
The following parameters are available in the dsc_aadroledefinition
type.
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials of the Azure AD Admin
dsc_displayname
namevar
Data type: String
Specifies a display name for the role definition.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_aadserviceprincipal
The DSC AADServicePrincipal resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_aadserviceprincipal
type.
dsc_accountenabled
Data type: Optional[Boolean]
True if the service principal account is enabled; otherwise, false.
dsc_alternativenames
Data type: Optional[Array[String]]
The alternative names for this service principal
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_applicationsecret
Data type: Optional[String]
Secret of the Azure Active Directory application to authenticate with.
dsc_approleassignmentrequired
Data type: Optional[Boolean]
Indicates whether an application role assignment is required.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_displayname
Data type: Optional[String]
Displayname of the ServicePrincipal.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if the Azure AD App should exist or not.
dsc_errorurl
Data type: Optional[String]
Specifies the error URL of the ServicePrincipal.
dsc_homepage
Data type: Optional[String]
Specifies the homepage of the ServicePrincipal.
dsc_logouturl
Data type: Optional[String]
Specifies the LogoutURL of the ServicePrincipal.
dsc_objectid
Data type: Optional[String]
The ObjectID of the ServicePrincipal
dsc_publishername
Data type: Optional[String]
Specifies the PublisherName of the ServicePrincipal.
dsc_replyurls
Data type: Optional[Array[String]]
The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application.
dsc_samlmetadataurl
Data type: Optional[String]
The URL for the SAML metadata of the ServicePrincipal.
dsc_serviceprincipalnames
Data type: Optional[Array[String]]
Specifies an array of service principal names. Based on the identifierURIs collection, plus the application's appId property, these URIs are used to reference an application's service principal.
dsc_serviceprincipaltype
Data type: Optional[String]
The type of the service principal.
dsc_tags
Data type: Optional[Array[String]]
Tags linked to this service principal.Note that if you intend for this service principal to show up in the All Applications list in the admin portal, you need to set this value to {WindowsAzureActiveDirectoryIntegratedApp}
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
Parameters
The following parameters are available in the dsc_aadserviceprincipal
type.
dsc_appid
namevar
Data type: String
The unique identifier for the associated application.
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials of the Azure AD Admin
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_aadtenantdetails
The DSC AADTenantDetails resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_aadtenantdetails
type.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_applicationsecret
Data type: Optional[String]
Secret of the Azure Active Directory application to authenticate with.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_marketingnotificationemails
Data type: Optional[Array[String]]
Email-addresses from the people who should receive Marketing Notifications
dsc_securitycompliancenotificationmails
Data type: Optional[Array[String]]
Email-addresses from the people who should receive Security Compliance Notifications
dsc_securitycompliancenotificationphones
Data type: Optional[Array[String]]
Phone Numbers from the people who should receive Security Notifications
dsc_technicalnotificationmails
Data type: Optional[Array[String]]
Email-addresses from the people who should receive Technical Notifications
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
Parameters
The following parameters are available in the dsc_aadtenantdetails
type.
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials of the Azure Active Directory Admin
dsc_issingleinstance
namevar
Data type: Enum['Yes']
Only valid value is 'Yes'.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_aadtokenlifetimepolicy
The DSC AADTokenLifetimePolicy resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_aadtokenlifetimepolicy
type.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_applicationsecret
Data type: Optional[String]
Secret of the Azure Active Directory application to authenticate with.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_definition
Data type: Optional[Array[String]]
Definition of the Policy.
dsc_description
Data type: Optional[String]
Description of the Policy.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if the Azure AD Policy should exist or not.
dsc_id
Data type: Optional[String]
ObjectID of the Policy.
dsc_isorganizationdefault
Data type: Optional[Boolean]
IsOrganizationDefault of the Policy.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
Parameters
The following parameters are available in the dsc_aadtokenlifetimepolicy
type.
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials for the Microsoft Graph delegated permissions.
dsc_displayname
namevar
Data type: String
DisplayName of the Policy
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_exoaccepteddomain
The DSC EXOAcceptedDomain resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_exoaccepteddomain
type.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_certificatepath
Data type: Optional[String]
Path to certificate used in service principal usually a PFX file.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_domaintype
Data type: Optional[Enum['Authoritative', 'InternalRelay']]
The type of AcceptedDomain. Currently the EXOAcceptedDomain DSC Resource accepts a value of 'Authoritative' and 'InternalRelay'.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if the AcceptedDomain should exist or not.
dsc_matchsubdomains
Data type: Optional[Boolean]
The MatchSubDomains parameter must be false on Authoritative domains. The default value is false.
dsc_outboundonly
Data type: Optional[Boolean]
The OutboundOnly must be false on Authoritative domains. The default value is false.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
Parameters
The following parameters are available in the dsc_exoaccepteddomain
type.
dsc_certificatepassword
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Username can be made up to anything but password will be used for CertificatePassword
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials of the Exchange Global Admin
dsc_identity
namevar
Data type: String
Specify the Fully Qualified Domain Name for the AcceptedDomain.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_exoactivesyncdeviceaccessrule
The DSC EXOActiveSyncDeviceAccessRule resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_exoactivesyncdeviceaccessrule
type.
dsc_accesslevel
Data type: Optional[Enum['Allow', 'Block', 'Quarantine']]
The AccessLevel parameter specifies whether the devices are allowed, blocked or quarantined.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_certificatepath
Data type: Optional[String]
Path to certificate used in service principal usually a PFX file.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_characteristic
Data type: Optional[Enum['DeviceModel', 'DeviceType', 'DeviceOS', 'UserAgent', 'XMSWLHeader']]
The Characteristic parameter specifies the device characteristic or category that's used by the rule.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if the Active Sync Device Access Rule should exist or not.
dsc_querystring
Data type: Optional[String]
The QueryString parameter specifies the device identifier that's used by the rule. This parameter uses a text value that's used with Characteristic parameter value to define the device.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
Parameters
The following parameters are available in the dsc_exoactivesyncdeviceaccessrule
type.
dsc_certificatepassword
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Username can be made up to anything but password will be used for CertificatePassword
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials of the Exchange Global Admin
dsc_identity
namevar
Data type: String
The Identity parameter specifies the identity of the device access rule.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_exoaddressbookpolicy
The DSC EXOAddressBookPolicy resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_exoaddressbookpolicy
type.
dsc_addresslists
Data type: Optional[Array[String]]
The AddressLists parameter specifies the address lists that will be used by mailbox users who are assigned this address book policy. This parameter accepts multiple values.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_certificatepath
Data type: Optional[String]
Path to certificate used in service principal usually a PFX file.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if the Address Book Policy should exist or not.
dsc_globaladdresslist
Data type: Optional[String]
The GlobalAddressList parameter specifies the identity of the global address list (GAL) that will be used by mailbox users who are assigned this address book policy. You can specify only one GAL for each address book policy.
dsc_offlineaddressbook
Data type: Optional[String]
The OfflineAddressBook parameter specifies the identity of the offline address book (OAB) that will be used by mailbox users who are assigned this address book policy. You can specify only one OAB for each address book policy.
dsc_roomlist
Data type: Optional[String]
The RoomList parameter specifies the name of the room address list.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
Parameters
The following parameters are available in the dsc_exoaddressbookpolicy
type.
dsc_certificatepassword
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Username can be made up to anything but password will be used for CertificatePassword
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials of the Exchange Global Admin
dsc_name
namevar
Data type: String
The Name parameter specifies the name that you want this address book policy to be called.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_exoaddresslist
The DSC EXOAddressList resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_exoaddresslist
type.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_certificatepath
Data type: Optional[String]
Path to certificate used in service principal usually a PFX file.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_conditionalcompany
Data type: Optional[Array[String]]
The ConditionalCompany parameter specifies a precanned filter that's based on the value of the recipient's Company property.
dsc_conditionalcustomattribute1
Data type: Optional[Array[String]]
The ConditionalCustomAttribute1 parameter specifies a precanned filter that's based on the value of the recipient's CustomAttribute1 property.
dsc_conditionalcustomattribute10
Data type: Optional[Array[String]]
The ConditionalCustomAttribute10 parameter specifies a precanned filter that's based on the value of the recipient's CustomAttribute10 property.
dsc_conditionalcustomattribute11
Data type: Optional[Array[String]]
The ConditionalCustomAttribute11 parameter specifies a precanned filter that's based on the value of the recipient's CustomAttribute11 property.
dsc_conditionalcustomattribute12
Data type: Optional[Array[String]]
The ConditionalCustomAttribute12 parameter specifies a precanned filter that's based on the value of the recipient's CustomAttribute12 property.
dsc_conditionalcustomattribute13
Data type: Optional[Array[String]]
The ConditionalCustomAttribute13 parameter specifies a precanned filter that's based on the value of the recipient's CustomAttribute13 property.
dsc_conditionalcustomattribute14
Data type: Optional[Array[String]]
The ConditionalCustomAttribute14 parameter specifies a precanned filter that's based on the value of the recipient's CustomAttribute14 property.
dsc_conditionalcustomattribute15
Data type: Optional[Array[String]]
The ConditionalCustomAttribute15 parameter specifies a precanned filter that's based on the value of the recipient's CustomAttribute15 property.
dsc_conditionalcustomattribute2
Data type: Optional[Array[String]]
The ConditionalCustomAttribute2 parameter specifies a precanned filter that's based on the value of the recipient's CustomAttribute2 property.
dsc_conditionalcustomattribute3
Data type: Optional[Array[String]]
The ConditionalCustomAttribute3 parameter specifies a precanned filter that's based on the value of the recipient's CustomAttribute3 property.
dsc_conditionalcustomattribute4
Data type: Optional[Array[String]]
The ConditionalCustomAttribute4 parameter specifies a precanned filter that's based on the value of the recipient's CustomAttribute4 property.
dsc_conditionalcustomattribute5
Data type: Optional[Array[String]]
The ConditionalCustomAttribute5 parameter specifies a precanned filter that's based on the value of the recipient's CustomAttribute5 property.
dsc_conditionalcustomattribute6
Data type: Optional[Array[String]]
The ConditionalCustomAttribute6 parameter specifies a precanned filter that's based on the value of the recipient's CustomAttribute6 property.
dsc_conditionalcustomattribute7
Data type: Optional[Array[String]]
The ConditionalCustomAttribute7 parameter specifies a precanned filter that's based on the value of the recipient's CustomAttribute7 property.
dsc_conditionalcustomattribute8
Data type: Optional[Array[String]]
The ConditionalCustomAttribute8 parameter specifies a precanned filter that's based on the value of the recipient's CustomAttribute8 property.
dsc_conditionalcustomattribute9
Data type: Optional[Array[String]]
The ConditionalCustomAttribute9 parameter specifies a precanned filter that's based on the value of the recipient's CustomAttribute9 property.
dsc_conditionaldepartment
Data type: Optional[Array[String]]
The ConditionalDepartment parameter specifies a precanned filter that's based on the value of the recipient's Department property.
dsc_conditionalstateorprovince
Data type: Optional[Array[String]]
The ConditionalStateOrProvince parameter specifies a precanned filter that's based on the value of the recipient's StateOrProvince property.
dsc_displayname
Data type: Optional[String]
The DisplayName parameter specifies the display name of the address list.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specifies if this AddressList should exist.
dsc_includedrecipients
Data type: Optional[Array[Enum['AllRecipients', 'MailboxUsers', 'MailContacts', 'MailGroups', 'MailUsers', 'Resources']]]
The IncludedRecipients parameter specifies a precanned filter that's based on the recipient type.
dsc_recipientfilter
Data type: Optional[String]
The RecipientFilter parameter specifies a custom OPath filter that's based on the value of any available recipient property.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
Parameters
The following parameters are available in the dsc_exoaddresslist
type.
dsc_certificatepassword
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Username can be made up to anything but password will be used for CertificatePassword
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials of the Exchange Global Admin
dsc_name
namevar
Data type: String
The Name parameter specifies a unique name for the address list.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_exoantiphishpolicy
The DSC EXOAntiPhishPolicy resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_exoantiphishpolicy
type.
dsc_admindisplayname
Data type: Optional[String]
The AdminDisplayName parameter specifies a description for the policy.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_authenticationfailaction
Data type: Optional[Enum['MoveToJmf', 'Quarantine']]
The AuthenticationFailAction parameter specifies the action to take when the message fails composite authentication.
dsc_certificatepath
Data type: Optional[String]
Path to certificate used in service principal usually a PFX file.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_enableantispoofenforcement
Data type: Optional[Boolean]
The EnableAntispoofEnforcement parameter specifies whether to enable or disable antispoofing protection for the policy.
dsc_enabled
Data type: Optional[Boolean]
Specify if this policy should be enabled. Default is $true.
dsc_enablefirstcontactsafetytips
Data type: Optional[Boolean]
The EnableFirstContactSafetyTips parameter specifies whether to enable or disable the safety tip that's shown when recipients first receive an email from a sender or do not often receive email from a sender.
dsc_enablemailboxintelligence
Data type: Optional[Boolean]
The EnableMailboxIntelligence parameter specifies whether to enable or disable mailbox intelligence (the first contact graph) in domain and user impersonation protection.
dsc_enablemailboxintelligenceprotection
Data type: Optional[Boolean]
The EnableMailboxIntelligenceProtection specifies whether to enable or disable enhanced impersonation results based on each user's individual sender map. This intelligence allows Microsoft 365 to customize user impersonation detection and better handle false positives.
dsc_enableorganizationdomainsprotection
Data type: Optional[Boolean]
Theâ?¯EnableOrganizationDomainsProtection parameter specifies whether to enable domain impersonation protection for all registered domains in the Office 365 organization.
dsc_enablesimilardomainssafetytips
Data type: Optional[Boolean]
Theâ?¯EnableSimilarDomainsSafetyTipsâ?¯parameter specifies whether to enable safety tips that are shown to recipients in messages for domain impersonation detections.
dsc_enablesimilaruserssafetytips
Data type: Optional[Boolean]
Theâ?¯EnableSimilarUsersSafetyTipsâ?¯parameter specifies whether to enable safety tips that are shown to recipients in messages for user impersonation detections.
dsc_enablespoofintelligence
Data type: Optional[Boolean]
The EnableSpoofIntelligence parameter specifies whether to enable or disable antispoofing protection for the policy.
dsc_enabletargeteddomainsprotection
Data type: Optional[Boolean]
Theâ?¯EnableTargetedDomainsProtection parameter specifies whether to enable domain impersonation protection for a list of specified domains.
dsc_enabletargeteduserprotection
Data type: Optional[Boolean]
Theâ?¯EnableTargetedUserProtection parameter specifies whether to enable user impersonation protection for the users specified by the TargetedUsersToProtect parameter
dsc_enableunauthenticatedsender
Data type: Optional[Boolean]
Theâ?¯EnableUnauthenticatedSenderâ?¯parameter enables or disables unauthenticated sender identification in Outlook.
dsc_enableunusualcharacterssafetytips
Data type: Optional[Boolean]
Theâ?¯EnableUnusualCharactersSafetyTipsâ?¯parameter specifies whether to enable safety tips that are shown to recipients in messages for unusual characters in domain and user impersonation detections.
dsc_enableviatag
Data type: Optional[Boolean]
This setting is part of spoof protection. Theâ?¯EnableViaTagâ?¯parameter enables or disables adding the via tag to the From address in Outlook.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if this policy should exist or not.
dsc_excludeddomains
Data type: Optional[Array[String]]
Theâ?¯ExcludedDomainsâ?¯parameter specifies trusted domains that are excluded from scanning by antiphishing protection. You can specify multiple domains separated by commas.
dsc_excludedsenders
Data type: Optional[Array[String]]
Theâ?¯ExcludedSendersâ?¯parameter specifies a list of trusted sender email addresses that are excluded from scanning by antiphishing protection. You can specify multiple email addresses separated by commas.
dsc_impersonationprotectionstate
Data type: Optional[String]
The ImpersonationProtectionState parameter specifies the configuration of impersonation protection.
dsc_mailboxintelligenceprotectionaction
Data type: Optional[String]
The MailboxIntelligenceProtectionAction parameter specifies what to do with messages that fail mailbox intelligence protection.
dsc_mailboxintelligenceprotectionactionrecipients
Data type: Optional[Array[String]]
Theâ?¯MailboxIntelligenceProtectionActionRecipients parameter specifies the recipients to add to detected messages when the MailboxIntelligenceProtectionAction parameter is set to the valueâ?¯Redirect or BccMessage.
dsc_makedefault
Data type: Optional[Boolean]
Make this the default antiphishing policy
dsc_phishthresholdlevel
Data type: Optional[Enum['1', '2', '3', '4']]
The PhishThresholdLevel parameter specifies the tolerance level that's used by machine learning in the handling of phishing messages.
dsc_targeteddomainactionrecipients
Data type: Optional[Array[String]]
Theâ?¯TargetedDomainActionRecipients parameter specifies the recipients to add to detected domain impersonation messages when the TargetedDomainProtectionAction parameter is set to the valueâ?¯Redirect or BccMessage. A valid value for this parameter is an email address. You can specify multiple email addresses separated by commas.
dsc_targeteddomainprotectionaction
Data type: Optional[Enum['BccMessage', 'Delete', 'MoveToJmf', 'NoAction', 'Quarantine', 'Redirect']]
The TargetedDomainProtectionActionâ?¯parameter specifies the action to take on detected domain impersonation messages for the domains specified by the TargetedDomainsToProtect parameter.
dsc_targeteddomainstoprotect
Data type: Optional[Array[String]]
The TargetedDomainsToProtect parameter specifies the domains that are included in domain impersonation protection when the EnableTargetedDomainsProtection parameter is set to $true.
dsc_targeteduseractionrecipients
Data type: Optional[Array[String]]
Theâ?¯TargetedUserActionRecipients parameter specifies the replacement or additional recipients for detected user impersonation messages when the TargetedUserProtectionAction parameter is set to the valueâ?¯Redirect or BccMessage. A valid value for this parameter is an email address. You can specify multiple email addresses separated by commas.
dsc_targeteduserprotectionaction
Data type: Optional[Enum['BccMessage', 'Delete', 'MoveToJmf', 'NoAction', 'Quarantine', 'Redirect']]
The TargetedUserProtectionActionâ?¯parameter specifies the action to take on detected user impersonation messages for the users specified by the TargetedUsersToProtect parameter.
dsc_targeteduserstoprotect
Data type: Optional[Array[String]]
The TargetedUsersToProtect parameter specifies the users that are included in user impersonation protection when the EnableTargetedUserProtection parameter is set to $true.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
Parameters
The following parameters are available in the dsc_exoantiphishpolicy
type.
dsc_certificatepassword
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Username can be made up to anything but password will be used for CertificatePassword
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials of the Exchange Global Admin
dsc_identity
namevar
Data type: String
The Identity parameter specifies the name of the antiphishing policy that you want to modify.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_exoantiphishrule
The DSC EXOAntiPhishRule resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_exoantiphishrule
type.
dsc_antiphishpolicy
Data type: String
The AntiPhishPolicy parameter specifies the name of the antiphishing policy that's associated with the antiphishing rule.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_certificatepath
Data type: Optional[String]
Path to certificate used in service principal usually a PFX file.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_comments
Data type: Optional[String]
The Comments parameter specifies informative comments for the rule, such as what the rule is used for or how it has changed over time. The length of the comment can't exceed 1024 characters.
dsc_enabled
Data type: Optional[Boolean]
Specify if this rule should be enabled. Default is $true.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if this rule should exist or not.
dsc_exceptifrecipientdomainis
Data type: Optional[Array[String]]
The ExceptIfRecipientDomainIs parameter specifies an exception that looks for recipients with email address in the specified domains. You can specify multiple domains separated by commas.
dsc_exceptifsentto
Data type: Optional[Array[String]]
The ExceptIfSentTo parameter specifies an exception that looks for recipients in messages. You can use any value that uniquely identifies the recipient.
dsc_exceptifsenttomemberof
Data type: Optional[Array[String]]
The ExceptIfSentToMemberOf parameter specifies an exception that looks for messages sent to members of groups. You can use any value that uniquely identifies the group.
dsc_priority
Data type: Optional[Integer[0, 4294967295]]
The Priority parameter specifies a priority value for the rule that determines the order of rule processing. A lower integer value indicates a higher priority, the value 0 is the highest priority, and rules can't have the same priority value.
dsc_recipientdomainis
Data type: Optional[Array[String]]
The RecipientDomainIs parameter specifies a condition that looks for recipients with email address in the specified domains. You can specify multiple domains separated by commas.
dsc_sentto
Data type: Optional[Array[String]]
The SentTo parameter specifies a condition that looks for recipients in messages. You can use any value that uniquely identifies the recipient.
dsc_senttomemberof
Data type: Optional[Array[String]]
The SentToMemberOf parameter looks for messages sent to members of groups. You can use any value that uniquely identifies the group.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
Parameters
The following parameters are available in the dsc_exoantiphishrule
type.
dsc_certificatepassword
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Username can be made up to anything but password will be used for CertificatePassword
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials of the Exchange Global Admin
dsc_identity
namevar
Data type: String
The Identity parameter specifies the name of the antiphishing rule that you want to modify.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_exoapplicationaccesspolicy
The DSC EXOApplicationAccessPolicy resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_exoapplicationaccesspolicy
type.
dsc_accessright
Data type: Optional[Enum['RestrictAccess', 'DenyAccess']]
The AccessRight parameter specifies the permission that you want to assign in the application access policy.
dsc_appid
Data type: Optional[Array[String]]
The AppID parameter specifies the GUID of the apps to include in the policy.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_certificatepath
Data type: Optional[String]
Path to certificate used in service principal usually a PFX file.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_description
Data type: Optional[String]
The Description parameter specifies a description for the policy.
dsc_ensure
Data type: Optional[Enum['Present', 'Absent']]
Specify if the Application Access Policy should exist or not.
dsc_policyscopegroupid
Data type: Optional[String]
The PolicyScopeGroupID parameter specifies the recipient to define in the policy. You can use any value that uniquely identifies the recipient.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
Parameters
The following parameters are available in the dsc_exoapplicationaccesspolicy
type.
dsc_certificatepassword
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Username can be made up to anything but password will be used for CertificatePassword
dsc_credential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
Credentials of the Exchange Global Admin
dsc_identity
namevar
Data type: String
The Identity parameter specifies the application access policy that you want to modify.
dsc_psdscrunascredential
Data type: Optional[Struct[{ user => String[1], password => Sensitive[String[1]] }]]
name
namevar
Data type: String
Description of the purpose for this resource declaration.
validation_mode
Data type: Enum[property, resource]
Whether to check if the resource is in the desired state by property (default) or using Invoke-DscResource in Test mode (resource).
Default value: property
dsc_exoatppolicyforo365
The DSC EXOAtpPolicyForO365 resource type. Automatically generated from version 1.22.105.1
Properties
The following properties are available in the dsc_exoatppolicyforo365
type.
dsc_allowclickthrough
Data type: Optional[Boolean]
The AllowClickThrough parameter specifies whether to allow users to click through to the original blocked URL in Office 365 ProPlus. Default is $true.
dsc_allowsafedocsopen
Data type: Optional[Boolean]
The AllowSafeDocsOpen parameter specifies whether users can click through and bypass the Protected View container even when Safe Documents identifies a file as malicious.
dsc_applicationid
Data type: Optional[String]
Id of the Azure Active Directory application to authenticate with.
dsc_blockurls
Data type: Optional[Array[String]]
The BlockUrls parameter specifies the URLs that are always blocked by Safe Links scanning. You can specify multiple values separated by commas.
dsc_certificatepath
Data type: Optional[String]
Path to certificate used in service principal usually a PFX file.
dsc_certificatethumbprint
Data type: Optional[String]
Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
dsc_enableatpforspoteamsodb
Data type: Optional[Boolean]
The EnableATPForSPOTeamsODB parameter specifies whether ATP is enabled for SharePoint Online, OneDrive for Business and Microsoft Teams. Default is $false.
dsc_enablesafedocs
Data type: Optional[Boolean]
The EnableSafeDocs parameter specifies whether to enable the Safe Documents feature in the organization. Default is $false.
dsc_enablesafelinksforo365clients
Data type: Optional[Boolean]
The EnableSafeLinksForO365Clients parameter specifies whether Safe Links scanning is enabled for supported Office 365 desktop, mobile, and web apps. Default is $true.
dsc_ensure
Data type: Optional[Enum['Present']]
Since there is only one policy, the default policy, this must be set to 'Present'
dsc_identity
Data type: Optional[String]
The Identity parameter specifies the ATP policy that you want to modify. There's only one policy named Default.
dsc_tenantid
Data type: Optional[String]
Id of the Azure Active Directory tenant used for authentication.
dsc_trackclicks
Data type: Optional[Boolean]
The TrackClicks parameter specifies whether to track user clicks related to blocked URLs. Default is $true.
Parameters
The following parameters are available in the dsc_exoatppolicyforo365
type.
- AADNamedLocationPolicy
* Throw meaningful error if multiple policies with the same name were retrieved. * EXOMalwareFilterPolicy * Fix for the MakeDefault property where it wasn't properly setting existing policies to default. FIXES #1648 * IntuneDeviceConfigurationPolicyWindows10 * Fixed mismatch in property types between the PasswordBlockSimple and PasswordSignInFailureCountBeforeFactoryReset properties. FIXES #1525 * O365Group * Removed support for invalid CertificatePassword and CertificatePath parameters and added support for ApplicationSecret; * O365User * Removed support for invalid CertificatePassword and CertificatePath parameters and added support for ApplicationSecret; * TeamsChannel * Fixed an issue where special symbols in Teams names would cause the Get-TeamByName cmdlet to fail. ISSUE #1578 * MISC * Error Handling in Delta Report and removal of Authentication mechanism comparison; FIXES #1548, #1541
Dependencies
- puppetlabs/pwshlib (>= 0.9.0 < 2.0.0)