Skip to content

Commit

Permalink
3.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Micke-K committed Oct 17, 2023
1 parent ea3af64 commit ab7b062
Show file tree
Hide file tree
Showing 33 changed files with 6,540 additions and 4,697 deletions.
2 changes: 1 addition & 1 deletion CS/HttpFactoryWithProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class HttpFactoryWithProxy : IMsalHttpClientFactory
{
private static HttpClient _httpClient;

public public HttpFactoryWithProxy(string proxyURI) : this(proxyURI, null, null)
public HttpFactoryWithProxy(string proxyURI) : this(proxyURI, null, null)
{

}
Expand Down
2 changes: 1 addition & 1 deletion CloudAPIPowerShellManagement.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'CloudAPIPowerShellManagement.psm1'

# Version number of this module.
ModuleVersion = '3.9.1'
ModuleVersion = '3.9.2'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
18 changes: 13 additions & 5 deletions CloudAPIPowerShellManagement.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,20 @@ function Initialize-CloudAPIManagement
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
Add-Type -AssemblyName PresentationFramework

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

$global:hideUI = ($Silent -eq $true)
$global:SilentBatchFile = $SilentBatchFile

if($tenantId)
{
$global:AzureAppId = $appId
$global:ClientSecret = $secret
$global:ClientCert = $certificate
}

if($global:hideUI -ne $true)
{
{
# Run with UI
try
{
Expand Down Expand Up @@ -126,12 +135,11 @@ function Initialize-CloudAPIManagement
Write-Error "Tenant Id is missing. Use -TenantId <Tenant-guid> on the command line to run silent batch jobs"
return
}
$global:TenantId = $tenantId
$global:AzureAppId = $appId
$global:ClientSecret = $secret
$global:ClientCert = $certificate
}

$global:TenantId = $tenantId


if($ShowConsoleWindow -ne $true)
{
Hide-Console
Expand Down
63 changes: 62 additions & 1 deletion Core.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This module handles the WPF UI

function Get-ModuleVersion
{
'3.9.1'
'3.9.2'
}

function Initialize-Window
Expand Down Expand Up @@ -2770,6 +2770,67 @@ function Get-ProxyURI
return $script:proxyURI
}

function Start-DownloadFile
{
param($sourceURL, $targetFile)

Write-Log "Download file from $sourceURL"
if(-not $sourceURL)
{
return
}

if(-not $targetFile)
{
Write-Log "Target file is missing"
return
}

[void][System.Reflection.Assembly]::LoadWithPartialName("System.Web.Extensions")
$wc = New-Object System.Net.WebClient
$wc.Encoding = [System.Text.Encoding]::UTF8
$proxyURI = Get-ProxyURI
if($proxyURI)
{
$wc.Proxy = $proxyURI
}

try
{
Write-Status "Download file: `n$sourceURL"
$wc.DownloadFile($sourceURL, $targetFile)
Write-Log "File downloaded to $targetFile"
}
catch
{
Write-LogError "Failed to download file" $_.Exception
}
finally
{
$wc.Dispose()
}
}

function Get-ASCIIBytes
{
param($String)

$bytes = [System.Text.Encoding]::ASCII.GetBytes($String)

if ($bytes[0] -eq 0x2b -and $bytes[1] -eq 0x2f -and $bytes[2] -eq 0x76)
{ [Text.Encoding]::UTF7.GetBytes($String) }
elseif ($bytes[0] -eq 0xff -and $bytes[1] -eq 0xfe)
{ [Text.Encoding]::Unicode.GetBytes($String) }
elseif ($bytes[0] -eq 0xfe -and $bytes[1] -eq 0xff)
{ [Text.Encoding]::BigEndianUnicode.GetBytes($String) }
elseif ($bytes[0] -eq 0x00 -and $bytes[1] -eq 0x00 -and $bytes[2] -eq 0xfe -and $bytes[3] -eq 0xff)
{ [Text.Encoding]::UTF32.GetBytes($String) }
elseif ($bytes[0] -eq 0xef -and $bytes[1] -eq 0xbb -and $bytes[2] -eq 0xbf)
{ [Text.Encoding]::UTF8.GetBytes($String) }

$bytes
}

New-Alias -Name ?? -value Invoke-Coalesce
New-Alias -Name ?: -value Invoke-IfTrue
Export-ModuleMember -alias * -function *
4 changes: 2 additions & 2 deletions Documentation/ObjectInfo/#Applications.json
Original file line number Diff line number Diff line change
Expand Up @@ -1099,12 +1099,12 @@
"category": "SettingDetails.dependencyCategory"
},
{
"nameResourceKey": "supersedenceCategory",
"nameResourceKey": "AppRelationshipStatus.Tabs.supersedence",
"descriptionResourceKey": "",
"entityKey": "supersededApps",
"dataType": 20,
"booleanActions": 0,
"category": "SettingDetails.supersedenceCategory"
"category": "AppRelationshipStatus.Tabs.supersedence"
}
]
}
Expand Down
506 changes: 281 additions & 225 deletions Documentation/Strings-cs.json

Large diffs are not rendered by default.

506 changes: 281 additions & 225 deletions Documentation/Strings-de.json

Large diffs are not rendered by default.

510 changes: 283 additions & 227 deletions Documentation/Strings-en.json

Large diffs are not rendered by default.

506 changes: 281 additions & 225 deletions Documentation/Strings-es.json

Large diffs are not rendered by default.

506 changes: 281 additions & 225 deletions Documentation/Strings-fr.json

Large diffs are not rendered by default.

506 changes: 281 additions & 225 deletions Documentation/Strings-hu.json

Large diffs are not rendered by default.

506 changes: 281 additions & 225 deletions Documentation/Strings-it.json

Large diffs are not rendered by default.

506 changes: 281 additions & 225 deletions Documentation/Strings-ja.json

Large diffs are not rendered by default.

506 changes: 281 additions & 225 deletions Documentation/Strings-ko.json

Large diffs are not rendered by default.

508 changes: 282 additions & 226 deletions Documentation/Strings-nl.json

Large diffs are not rendered by default.

506 changes: 281 additions & 225 deletions Documentation/Strings-pl.json

Large diffs are not rendered by default.

510 changes: 283 additions & 227 deletions Documentation/Strings-pt.json

Large diffs are not rendered by default.

506 changes: 281 additions & 225 deletions Documentation/Strings-ru.json

Large diffs are not rendered by default.

506 changes: 281 additions & 225 deletions Documentation/Strings-sv.json

Large diffs are not rendered by default.

506 changes: 281 additions & 225 deletions Documentation/Strings-tr.json

Large diffs are not rendered by default.

510 changes: 283 additions & 227 deletions Documentation/Strings-zh-chs.json

Large diffs are not rendered by default.

510 changes: 283 additions & 227 deletions Documentation/Strings-zh-cht.json

Large diffs are not rendered by default.

506 changes: 281 additions & 225 deletions Documentation/Strings-zh-hans.json

Large diffs are not rendered by default.

506 changes: 281 additions & 225 deletions Documentation/Strings-zh-hant.json

Large diffs are not rendered by default.

510 changes: 283 additions & 227 deletions Documentation/Strings-zh.json

Large diffs are not rendered by default.

24 changes: 23 additions & 1 deletion Extensions/DocumentationCustom.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This module will also document some objects based on PowerShell functions

function Get-ModuleVersion
{
'1.6.1'
'1.6.2'
}

function Invoke-InitializeModule
Expand Down Expand Up @@ -2744,6 +2744,28 @@ function Invoke-CDDocumentConditionalAccess
EntityKey = "excludeDevices"
})
}

if($obj.conditions.devices.deviceFilter)
{
if($obj.conditions.devices.deviceFilter.mode -eq "include")
{
$filterMode = "included"
}
else
{
$filterMode = "included"
}

#AzureCA.PolicyBlade.Conditions.DeviceAttributes.AssignmentFilter.Blade
#AzureCA.PolicyBlade.Conditions.DeviceAttributes.Blade.title
Add-CustomSettingObject ([PSCustomObject]@{
Name = Get-LanguageString "AzureCA.PolicyBlade.Conditions.DeviceAttributes.Blade.AppliesTo.$filterMode"
Value = $obj.conditions.devices.deviceFilter.rule
Category = $category
SubCategory = Get-LanguageString "AzureCA.PolicyBlade.Conditions.DeviceAttributes.Blade.title"
EntityKey = "includeDevices"
})
}

###################################################
# Grant
Expand Down
Loading

0 comments on commit ab7b062

Please sign in to comment.