Skip to content

[pull] master from KelvinTegelaar:master #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 59 commits into from
Mar 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
65fb576
adduserbulk go brrr
JohnDuprey Mar 26, 2025
6dcb159
fixes length bug
KelvinTegelaar Mar 26, 2025
7c89917
do it for each type of received item.
KelvinTegelaar Mar 26, 2025
042d5d3
fix extension sync registration
JohnDuprey Mar 26, 2025
8783114
bulk user improvements
JohnDuprey Mar 26, 2025
6d5056c
rename function
JohnDuprey Mar 26, 2025
a5728d5
fix error message in hudu
JohnDuprey Mar 26, 2025
ab83c6a
Update licenses to newest MS list
kris6673 Mar 26, 2025
d357a70
fix schema extension list
JohnDuprey Mar 27, 2025
bfd2218
schema tweaks
JohnDuprey Mar 27, 2025
5305ccf
Merge pull request #1362 from kris6673/chore-licenses
KelvinTegelaar Mar 27, 2025
e7f2a14
test dev
KelvinTegelaar Mar 27, 2025
02b2968
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Mar 27, 2025
2b7ad0c
fixes standards reporting with periods in name.
KelvinTegelaar Mar 27, 2025
1027be5
fixes illegal name
KelvinTegelaar Mar 27, 2025
f8aea6b
support operationtype
JohnDuprey Mar 27, 2025
88061b3
fixes issues with compares
KelvinTegelaar Mar 27, 2025
1ea0f73
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Mar 27, 2025
467e245
update MIcrosoftTeams
JohnDuprey Mar 27, 2025
1292262
fix casing on sentAsAlert
JohnDuprey Mar 27, 2025
332e371
Update Push-SchedulerCIPPNotifications.ps1
JohnDuprey Mar 27, 2025
c76f109
updates to sherweb migration
KelvinTegelaar Mar 27, 2025
549ccec
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Mar 27, 2025
7ff2167
handle standard alert property missing
JohnDuprey Mar 27, 2025
e6aa3f7
Update Add-CIPPAzDataTableEntity.ps1
JohnDuprey Mar 27, 2025
f1489f5
standard tweaks
JohnDuprey Mar 27, 2025
6c43919
fix state check
JohnDuprey Mar 27, 2025
67434b7
fix branding profile
JohnDuprey Mar 27, 2025
22c11c4
fix user submissions
JohnDuprey Mar 27, 2025
05e3238
fix teams federation
JohnDuprey Mar 27, 2025
bebc72e
fix intune compliance settings
JohnDuprey Mar 27, 2025
98eb698
fix contact logic
JohnDuprey Mar 27, 2025
9eda89a
fix sharing domain check
JohnDuprey Mar 27, 2025
5fd8030
fix quarantine
JohnDuprey Mar 27, 2025
30c70e4
Update Invoke-CIPPStandardGlobalQuarantineNotifications.ps1
JohnDuprey Mar 27, 2025
3dbedfb
fix cipp-api integration for secondary subs
JohnDuprey Mar 28, 2025
2f8da33
fixes https://github.com/KelvinTegelaar/CIPP/issues/3873
KelvinTegelaar Mar 28, 2025
62388d5
fix compare for policies
KelvinTegelaar Mar 28, 2025
7f9e992
fix edit group for user actions
JohnDuprey Mar 28, 2025
c278676
fix safelinks reporting
JohnDuprey Mar 28, 2025
acc9f5f
fix application copy
JohnDuprey Mar 28, 2025
44bd89e
Update Invoke-CIPPStandardSpamFilterPolicy.ps1
JohnDuprey Mar 28, 2025
5535303
spam filter fix
JohnDuprey Mar 28, 2025
21dcab1
fiixes issue with cippapi module not connecting
KelvinTegelaar Mar 28, 2025
9fd301f
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
KelvinTegelaar Mar 28, 2025
d0cf944
fix user submissions
JohnDuprey Mar 28, 2025
e06d5e7
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into…
JohnDuprey Mar 28, 2025
4d6dfdb
update report text
JohnDuprey Mar 28, 2025
9d58b49
update oauth consent low sec to report conflicts
JohnDuprey Mar 28, 2025
e636d7f
add conflict detection
JohnDuprey Mar 28, 2025
19eb567
Fix federation config
JohnDuprey Mar 28, 2025
3da2817
fix spelling
JohnDuprey Mar 28, 2025
5dce65b
wording
JohnDuprey Mar 28, 2025
5a94acf
standard tweaks
JohnDuprey Mar 28, 2025
37a2326
fix state is correct logic
JohnDuprey Mar 28, 2025
eb5da4e
fix error handling
JohnDuprey Mar 28, 2025
6c5d8b9
up version
JohnDuprey Mar 28, 2025
b13e376
fix geo check
JohnDuprey Mar 28, 2025
5c91e91
Merge pull request #1366 from KelvinTegelaar/dev
JohnDuprey Mar 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions ConversionTable.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3433,6 +3433,44 @@ Microsoft Copilot for Microsoft 365,Microsoft_365_Copilot,639dec6b-bb19-468b-871
Microsoft Copilot for Microsoft 365,Microsoft_365_Copilot,639dec6b-bb19-468b-871c-c5c441c4b0cb,M365_COPILOT_TEAMS,b95945de-b3bd-46db-8437-f2beb6ea2347,Microsoft 365 Copilot in Microsoft Teams
Microsoft Copilot for Microsoft 365,Microsoft_365_Copilot,639dec6b-bb19-468b-871c-c5c441c4b0cb,M365_COPILOT_APPS,a62f8878-de10-42f3-b68f-6149a25ceb97,Microsoft 365 Copilot in Productivity Apps
Microsoft Copilot for Microsoft 365,Microsoft_365_Copilot,639dec6b-bb19-468b-871c-c5c441c4b0cb,M365_COPILOT_CONNECTORS,89f1c4c8-0878-40f7-804d-869c9128ab5d,Power Platform Connectors in Microsoft 365 Copilot
Microsoft 365 Copilot for Sales,Microsoft_Copilot_for_Sales,15f2e9fc-b782-4f73-bf51-81d8b7fff6f4,COPILOT_STUDIO_IN_COPILOT_FOR_M365,fe6c28b3-d468-44ea-bbd0-a10a5167435c,Copilot Studio in Copilot for M365
Microsoft 365 Copilot for Sales,Microsoft_Copilot_for_Sales,15f2e9fc-b782-4f73-bf51-81d8b7fff6f4,GRAPH_CONNECTORS_COPILOT,82d30987-df9b-4486-b146-198b21d164c7,Graph Connectors in Microsoft 365 Copilot
Microsoft 365 Copilot for Sales,Microsoft_Copilot_for_Sales,15f2e9fc-b782-4f73-bf51-81d8b7fff6f4,M365_COPILOT_INTELLIGENT_SEARCH,931e4a88-a67f-48b5-814f-16a5f1e6028d,Intelligent Search
Microsoft 365 Copilot for Sales,Microsoft_Copilot_for_Sales,15f2e9fc-b782-4f73-bf51-81d8b7fff6f4,M365_COPILOT_SHAREPOINT,0aedf20c-091d-420b-aadf-30c042609612,Microsoft 365 Copilot for SharePoint
Microsoft 365 Copilot for Sales,Microsoft_Copilot_for_Sales,15f2e9fc-b782-4f73-bf51-81d8b7fff6f4,M365_COPILOT_TEAMS,b95945de-b3bd-46db-8437-f2beb6ea2347,Microsoft 365 Copilot in Microsoft Teams
Microsoft 365 Copilot for Sales,Microsoft_Copilot_for_Sales,15f2e9fc-b782-4f73-bf51-81d8b7fff6f4,M365_COPILOT_APPS,a62f8878-de10-42f3-b68f-6149a25ceb97,Microsoft 365 Copilot in Productivity Apps
Microsoft 365 Copilot for Sales,Microsoft_Copilot_for_Sales,15f2e9fc-b782-4f73-bf51-81d8b7fff6f4,Microsoft_Copilot_for_Sales,a2194428-ead1-4fc1-bb81-ab8675125f42,Microsoft Copilot for Sales
Microsoft 365 Copilot for Sales,Microsoft_Copilot_for_Sales,15f2e9fc-b782-4f73-bf51-81d8b7fff6f4,Microsoft_Copilot_for_Sales_PowerAutomate,0c1c2af2-6c51-43c7-9c55-fa487ac147ff,Microsoft Copilot for Sales with Power Automate
Microsoft 365 Copilot for Sales,Microsoft_Copilot_for_Sales,15f2e9fc-b782-4f73-bf51-81d8b7fff6f4,M365_COPILOT_BUSINESS_CHAT,3f30311c-6b1e-48a4-ab79-725b469da960,Microsoft Copilot with Graph-grounded chat
Microsoft 365 Copilot for Sales,Microsoft_Copilot_for_Sales,15f2e9fc-b782-4f73-bf51-81d8b7fff6f4,WORKPLACE_ANALYTICS_INSIGHTS_USER,b622badb-1b45-48d5-920f-4b27a2c0996c,Microsoft Viva Insights
Microsoft 365 Copilot for Sales,Microsoft_Copilot_for_Sales,15f2e9fc-b782-4f73-bf51-81d8b7fff6f4,WORKPLACE_ANALYTICS_INSIGHTS_BACKEND,ff7b261f-d98b-415b-827c-42a3fdf015af,Microsoft Viva Insights Backend
Microsoft 365 Copilot for Sales,Microsoft_Copilot_for_Sales,15f2e9fc-b782-4f73-bf51-81d8b7fff6f4,M365_COPILOT_CONNECTORS,89f1c4c8-0878-40f7-804d-869c9128ab5d,Power Platform Connectors in Microsoft 365 Copilot
Microsoft Copilot Studio,Power_Virtual_Agents,75564b9c-51e8-431c-b8fe-d472d5a545c8,CDS_VIRTUAL_AGENT_BASE_MESSAGES,5dd1819f-0de7-487f-985b-c450a4c9cc1d,Dataverse for Microsoft Copilot Studio
Microsoft Copilot Studio,Power_Virtual_Agents,75564b9c-51e8-431c-b8fe-d472d5a545c8,VIRTUAL_AGENT_BASE_MESSAGES,7b0640f1-63cc-4f83-b8c6-0a4d78b8b988,Microsoft Copilot Studio – Messages
Microsoft Copilot Studio,Power_Virtual_Agents,75564b9c-51e8-431c-b8fe-d472d5a545c8,FLOW_VIRTUAL_AGENT_BASE_MESSAGES,4b9ec373-ed29-4192-8a47-c9ab9048b079,Power Automate for Microsoft Copilot Studio
Microsoft Copilot Studio for GCC,Power_Virtual_Agents_for_GCC_GCC,d7974fa0-ddd7-4899-9589-1ea04273aa26,CDS_VIRTUAL_AGENT_BASE_MESSAGES,5dd1819f-0de7-487f-985b-c450a4c9cc1d,Dataverse for Microsoft Copilot Studio
Microsoft Copilot Studio for GCC,Power_Virtual_Agents_for_GCC_GCC,d7974fa0-ddd7-4899-9589-1ea04273aa26,VIRTUAL_AGENT_BASE_MESSAGES,7b0640f1-63cc-4f83-b8c6-0a4d78b8b988,Microsoft Copilot Studio – Messages
Microsoft Copilot Studio for GCC,Power_Virtual_Agents_for_GCC_GCC,d7974fa0-ddd7-4899-9589-1ea04273aa26,FLOW_VIRTUAL_AGENT_BASE_MESSAGES,4b9ec373-ed29-4192-8a47-c9ab9048b079,Power Automate for Microsoft Copilot Studio
Microsoft Copilot Studio_USGOV_GCCHIGH,Power_Virtual_Agents_USGOV_GCCHIGH,84ed7c30-3738-43a0-aa03-cf6c577d8dbb,CDS_VIRTUAL_AGENT_BASE_MESSAGES,5dd1819f-0de7-487f-985b-c450a4c9cc1d,CDS_VIRTUAL_AGENT_BASE_MESSAGES
Microsoft Copilot Studio_USGOV_GCCHIGH,Power_Virtual_Agents_USGOV_GCCHIGH,84ed7c30-3738-43a0-aa03-cf6c577d8dbb,VIRTUAL_AGENT_BASE_MESSAGES,7b0640f1-63cc-4f83-b8c6-0a4d78b8b988,VIRTUAL_AGENT_BASE_MESSAGES
Microsoft Copilot Studio_USGOV_GCCHIGH,Power_Virtual_Agents_USGOV_GCCHIGH,84ed7c30-3738-43a0-aa03-cf6c577d8dbb,FLOW_VIRTUAL_AGENT_BASE_MESSAGES,4b9ec373-ed29-4192-8a47-c9ab9048b079,FLOW_VIRTUAL_AGENT_BASE_MESSAGES
Microsoft Copilot Studio User License,VIRTUAL_AGENT_USL,4b74a65c-8b4a-4fc8-9f6b-5177ed11ddfa,CDS_VIRTUAL_AGENT_USL,cb867b3c-7f38-4d0d-99ce-e29cd69812c8,Common Data Service
Microsoft Copilot Studio User License,VIRTUAL_AGENT_USL,4b74a65c-8b4a-4fc8-9f6b-5177ed11ddfa,FLOW_VIRTUAL_AGENT_USL,82f141c9-2e87-4f43-8cb2-12d2701dc6b3,Power Automate for Virtual Agent
Microsoft Copilot Studio User License,VIRTUAL_AGENT_USL,4b74a65c-8b4a-4fc8-9f6b-5177ed11ddfa,VIRTUAL_AGENT_USL,1263586c-59a4-4ad0-85e1-d50bc7149501,Virtual Agent
Microsoft Copilot Studio User License for GCC,VIRTUAL_AGENT_USL_GCC,f1de227b-f1bd-4959-bd80-b80547095e6d,CDS_Virtual_Agent_Usl_Gov,bcc0702e-ba97-48d9-ae04-fa8689c53bba,Dataverse for Virtual Agent USL for GCC
Microsoft Copilot Studio User License for GCC,VIRTUAL_AGENT_USL_GCC,f1de227b-f1bd-4959-bd80-b80547095e6d,Virtual_Agent_Usl_Gov,00b6f978-853b-4041-9de0-a233d18669aa,Virtual Agent for GCC
Microsoft Copilot Studio User License for GCC,VIRTUAL_AGENT_USL_GCC,f1de227b-f1bd-4959-bd80-b80547095e6d,CDS_Virtual_Agent_Usl_GCC,95df1203-fee7-4726-b7e1-8037a8e899eb,Dataverse for Virtual Agent USL for GCC
Microsoft Copilot Studio User License for GCC,VIRTUAL_AGENT_USL_GCC,f1de227b-f1bd-4959-bd80-b80547095e6d,Flow_Virtual_Agent_Usl_Gov,0b939472-1861-45f1-ab6d-208f359c05cd,Flow for Virtual Agent for GCC
Microsoft Copilot Studio User License for GCC,VIRTUAL_AGENT_USL_GCC,f1de227b-f1bd-4959-bd80-b80547095e6d,FLOW_Virtual_Agent_Base_Gov,f9f6db16-ace6-4838-b11c-892ee75e810a,Power Automate for Virtual Agent for GCC
Microsoft Copilot Studio User License for GCC,VIRTUAL_AGENT_USL_GCC,f1de227b-f1bd-4959-bd80-b80547095e6d,Power_Virtual_Agent_Usl_GCC,0bdd5466-65c3-470a-9fa6-f679b48286b0,Power Virtual Agent USL for GCC
Microsoft Copilot Studio User License for GCC High_USGOV_GCCHIGH,VIRTUAL_AGENT_USL_AR_USGOV_GCCHIGH,470845c0-6884-47e1-89d0-9d6244a77b44,Virtual_Agent_Usl_Gov_High,7ffee552-ebe8-4725-8678-5c1775c05847,Virtual Agent for GCC High
Microsoft Copilot Studio User License for GCC High_USGOV_GCCHIGH,VIRTUAL_AGENT_USL_AR_USGOV_GCCHIGH,470845c0-6884-47e1-89d0-9d6244a77b44,CDS_VIRTUAL_AGENT_USL,cb867b3c-7f38-4d0d-99ce-e29cd69812c8,Common Data Service
Microsoft Copilot Studio User License for GCC High_USGOV_GCCHIGH,VIRTUAL_AGENT_USL_AR_USGOV_GCCHIGH,470845c0-6884-47e1-89d0-9d6244a77b44,FLOW_Virtual_Agent_Base_Gov_High,225e52e5-7bbf-4793-8fb1-4307a7a1ae8e,Flow for Virtual Agent for GCC High
Microsoft Copilot Studio User License for GCC High_USGOV_GCCHIGH,VIRTUAL_AGENT_USL_AR_USGOV_GCCHIGH,470845c0-6884-47e1-89d0-9d6244a77b44,Flow_Virtual_Agent_Usl_Gov_High,aaae1744-dc7a-4811-9dd0-2bf926ff9d80,Flow for Virtual Agent for GCC High
Microsoft Copilot Studio User License for GCC High_USGOV_GCCHIGH,VIRTUAL_AGENT_USL_AR_USGOV_GCCHIGH,470845c0-6884-47e1-89d0-9d6244a77b44,Power_Virtual_Agent_Usl_GCC_High,3fbe8cdf-c735-44bf-bbfa-646724af4bb4,Power Virtual Agent USL for GCC High
Microsoft Copilot Studio Viral Trial,CCIBOTS_PRIVPREV_VIRAL,606b54a9-78d8-4298-ad8b-df6ef4481c80,DYN365_CDS_CCI_BOTS,cf7034ed-348f-42eb-8bbd-dddeea43ee81,DYN365_CDS_CCI_BOTS
Microsoft Copilot Studio Viral Trial,CCIBOTS_PRIVPREV_VIRAL,606b54a9-78d8-4298-ad8b-df6ef4481c80,CCIBOTS_PRIVPREV_VIRAL,ce312d15-8fdf-44c0-9974-a25a177125ee,CCIBOTS_PRIVPREV_VIRAL
Microsoft Copilot Studio Viral Trial,CCIBOTS_PRIVPREV_VIRAL,606b54a9-78d8-4298-ad8b-df6ef4481c80,FLOW_CCI_BOTS,5d798708-6473-48ad-9776-3acc301c40af,FLOW_CCI_BOTS
Microsoft Cloud App Security,ADALLOM_STANDALONE,df845ce7-05f9-4894-b5f2-11bbfbcfd2b6,EXCHANGE_S_FOUNDATION,113feb6c-3fe4-4440-bddc-54d774bf0318,Exchange Foundation
Microsoft Cloud App Security,ADALLOM_STANDALONE,df845ce7-05f9-4894-b5f2-11bbfbcfd2b6,ADALLOM_S_STANDALONE,2e2ddb96-6af9-4b1d-a3f0-d6ecfd22edb2,Microsoft Cloud App Security
Microsoft Cloud for Sustainability vTrial,Microsoft_Cloud_for_Sustainability_vTrial,556640c0-53ea-4773-907d-29c55332983f,MCS_BizApps_Cloud_for_Sustainability_vTrial,c1c902e3-a956-4273-abdb-c92afcd027ef,MCS - BizApps_Cloud for Sustainability_vTrial
Expand Down
32 changes: 24 additions & 8 deletions Modules/CIPPCore/Public/Add-CIPPAzDataTableEntity.ps1
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
function Add-CIPPAzDataTableEntity {
[CmdletBinding()]
[CmdletBinding(DefaultParameterSetName = 'OperationType')]
param(
$Context,
$Entity,
[switch]$CreateTableIfNotExists,

[Parameter(ParameterSetName = 'Force')]
[switch]$Force,
[switch]$CreateTableIfNotExists

[Parameter(ParameterSetName = 'OperationType')]
[ValidateSet('Add', 'UpsertMerge', 'UpsertReplace')]
[string]$OperationType = 'Add'
)

$Parameters = @{
Context = $Context
CreateTableIfNotExists = $CreateTableIfNotExists
}
if ($PSCmdlet.ParameterSetName -eq 'Force') {
$Parameters.Force = $Force
} else {
$Parameters.OperationType = $OperationType
}

$MaxRowSize = 500000 - 100 # Maximum size of an entity
$MaxSize = 30kb # Maximum size of a property value

Expand All @@ -15,7 +31,7 @@ function Add-CIPPAzDataTableEntity {
if ($null -eq $SingleEnt.PartitionKey -or $null -eq $SingleEnt.RowKey) {
throw 'PartitionKey or RowKey is null'
}
Add-AzDataTableEntity -Context $Context -Force:$Force -CreateTableIfNotExists:$CreateTableIfNotExists -Entity $SingleEnt -ErrorAction Stop
Add-AzDataTableEntity @Parameters -Entity $SingleEnt -ErrorAction Stop
} catch [System.Exception] {
if ($_.Exception.ErrorCode -eq 'PropertyValueTooLarge' -or $_.Exception.ErrorCode -eq 'EntityTooLarge' -or $_.Exception.ErrorCode -eq 'RequestBodyTooLarge') {
try {
Expand Down Expand Up @@ -137,17 +153,17 @@ function Add-CIPPAzDataTableEntity {

foreach ($row in $rows) {
Write-Information "current entity is $($row.RowKey) with $($row.PartitionKey). Our size is $([System.Text.Encoding]::UTF8.GetByteCount($($row | ConvertTo-Json -Compress)))"
$NewRow = [PSCustomObject]$row
Add-AzDataTableEntity -Context $Context -Force:$Force -CreateTableIfNotExists:$CreateTableIfNotExists -Entity $NewRow
$NewRow = ([PSCustomObject]$row) | Select-Object * -ExcludeProperty Timestamp
Add-AzDataTableEntity @Parameters -Entity $NewRow
}
} else {
$NewEnt = [PSCustomObject]$SingleEnt
Add-AzDataTableEntity -Context $Context -Force:$Force -CreateTableIfNotExists:$CreateTableIfNotExists -Entity $NewEnt
$NewEnt = ([PSCustomObject]$SingleEnt) | Select-Object * -ExcludeProperty Timestamp
Add-AzDataTableEntity @Parameters -Entity $NewEnt
}

} catch {
$ErrorMessage = Get-NormalizedError -Message $_.Exception.Message
Write-Warning ("AzBobbyTables Error")
Write-Warning ('AzBobbyTables Error')
Write-Information ($SingleEnt | ConvertTo-Json)
throw "Error processing entity: $ErrorMessage Linenumber: $($_.InvocationInfo.ScriptLineNumber)"
}
Expand Down
8 changes: 4 additions & 4 deletions Modules/CIPPCore/Public/Authentication/Get-CippApiAuth.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
function Get-CippApiAuth {
Param(
param(
[string]$RGName,
[string]$FunctionAppName
)

if ($env:MSI_SECRET) {
Disable-AzContextAutosave -Scope Process | Out-Null
$Context = (Connect-AzAccount -Identity).Context
$null = Connect-AzAccount -Identity
$SubscriptionId = $ENV:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1
} else {
$Context = Get-AzContext
$SubscriptionId = $Context.Subscription.Id
}
# Get subscription id
$SubscriptionId = $Context.Subscription.Id

# Get auth settings
$AuthSettings = Invoke-AzRestMethod -Uri "https://management.azure.com/subscriptions/$SubscriptionId/resourceGroups/$RGName/providers/Microsoft.Web/sites/$($FunctionAppName)/config/authsettingsV2/list?api-version=2020-06-01" -ErrorAction Stop | Select-Object -ExpandProperty Content | ConvertFrom-Json
Expand Down
3 changes: 1 addition & 2 deletions Modules/CIPPCore/Public/Authentication/Set-CippApiAuth.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ function Set-CippApiAuth {
$Context = Set-AzContext -SubscriptionId $SubscriptionId
} else {
$Context = Get-AzContext
$SubscriptionId = $Context.Subscription.Id
}
# Get subscription id
$SubscriptionId = $Context.Subscription.Id

# Get auth settings
$AuthSettings = Invoke-AzRestMethod -Uri "https://management.azure.com/subscriptions/$SubscriptionId/resourceGroups/$RGName/providers/Microsoft.Web/sites/$($FunctionAppName)/config/authsettingsV2/list?api-version=2020-06-01" | Select-Object -ExpandProperty Content | ConvertFrom-Json
Expand Down
Loading