Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
NikCharlebois committed Sep 12, 2023
1 parent 93e5346 commit c25be51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* AADNamedLocationPolicy
* Set default value for CountryLookupMethod and removed unwanted properties
FIXES [#3656](https://github.com/microsoft/Microsoft365DSC/issues/3656)
* Added support for compliantNetworkNamedLocation.
FIXES [#3422](https://github.com/microsoft/Microsoft365DSC/issues/3422)
* IntuneAppProtectionPolicyAndroid
* Added support for 'RequireClass3Biometrics' parameter
* Added support for 'RequirePinAfterBiometricChange' parameter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-TargetResource
param
(
[Parameter()]
[ValidateSet('#microsoft.graph.countryNamedLocation', '#microsoft.graph.ipNamedLocation')]
[ValidateSet('#microsoft.graph.countryNamedLocation', '#microsoft.graph.ipNamedLocation', '#microsoft.graph.compliantNetworkNamedLocation')]
[System.String]
$OdataType,

Expand Down Expand Up @@ -166,7 +166,7 @@ function Set-TargetResource
param
(
[Parameter()]
[ValidateSet('#microsoft.graph.countryNamedLocation', '#microsoft.graph.ipNamedLocation')]
[ValidateSet('#microsoft.graph.countryNamedLocation', '#microsoft.graph.ipNamedLocation', '#microsoft.graph.compliantNetworkNamedLocation')]
[System.String]
$OdataType,

Expand Down Expand Up @@ -291,7 +291,7 @@ function Set-TargetResource
}
# Named Location should exist and will be configured to desired state
elseif ($Ensure -eq 'Present' -and $CurrentAADNamedLocation.Ensure -eq 'Present')
{
{
$VerboseAttributes = ($desiredValues | Out-String)
Write-Verbose -Message "Updating existing AAD Named Location {$Displayname)} with attributes: $VerboseAttributes"

Expand Down Expand Up @@ -319,7 +319,7 @@ function Test-TargetResource
param
(
[Parameter()]
[ValidateSet('#microsoft.graph.countryNamedLocation', '#microsoft.graph.ipNamedLocation')]
[ValidateSet('#microsoft.graph.countryNamedLocation', '#microsoft.graph.ipNamedLocation', '#microsoft.graph.compliantNetworkNamedLocation')]
[System.String]
$OdataType,

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[ClassVersion("1.0.0.0"), FriendlyName("AADNamedLocationPolicy")]
class MSFT_AADNamedLocationPolicy : OMI_BaseResource
{
[Write, Description("Specifies the Odata Type of a Named Location object in Azure Active Directory"), ValueMap{"#microsoft.graph.countryNamedLocation","#microsoft.graph.ipNamedLocation"}, Values{"#microsoft.graph.countryNamedLocation","#microsoft.graph.ipNamedLocation"}] string OdataType;
[Write, Description("Specifies the Odata Type of a Named Location object in Azure Active Directory"), ValueMap{"#microsoft.graph.countryNamedLocation","#microsoft.graph.ipNamedLocation","#microsoft.graph.compliantNetworkNamedLocation"}, Values{"#microsoft.graph.countryNamedLocation","#microsoft.graph.ipNamedLocation","#microsoft.graph.compliantNetworkNamedLocation"}] string OdataType;
[Write, Description("Specifies the ID of a Named Location in Azure Active Directory.")] String Id;
[Key, Description("Specifies the Display Name of a Named Location in Azure Active Directory")] string DisplayName;
[Write, Description("Specifies the IP ranges of the Named Location in Azure Active Directory")] String IpRanges[];
Expand Down

0 comments on commit c25be51

Please sign in to comment.