You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($PSCmdlet.ShouldProcess($AppName,'Create API App')) {
63
63
Write-Information'Creating app'
64
+
Write-Information$CreateBody
64
65
$APIApp=New-GraphPOSTRequest-uri 'https://graph.microsoft.com/v1.0/applications'-AsApp $true-NoAuthCheck $true-type POST -body $CreateBody
65
66
Write-Information'Creating password'
66
67
$APIPassword=New-GraphPOSTRequest-uri "https://graph.microsoft.com/v1.0/applications/$($APIApp.id)/addPassword"-AsApp $true-NoAuthCheck $true-type POST -body "{`"passwordCredential`":{`"displayName`":`"Generated by API Setup`"}}"
if (!$CPVRows-or$ENV:ApplicationID-notin$CPVRows.applicationId) {
19
+
if (!$CPVRows-or$env:ApplicationID-notin$CPVRows.applicationId) {
20
20
Write-LogMessage-tenant $Item.defaultDomainName-tenantId $Item.customerId-message 'A New tenant has been added, or a new CIPP-SAM Application is in use'-Sev 'Warn'-API 'NewTenant'
0 commit comments