File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -84,18 +84,19 @@ Function Invoke-ExecCreateSAMApp {
84
84
Write-Information ($Secret | ConvertTo-Json - Depth 5 )
85
85
Add-CIPPAzDataTableEntity @DevSecretsTable - Entity $Secret - Force
86
86
} else {
87
- $ConfigTable = Get-CippTable - tablename ' Config'
88
- # update the ConfigTable with the latest appId, for caching compare.
89
- $NewConfig = @ {
90
- PartitionKey = ' AppCache'
91
- RowKey = ' AppCache'
92
- ApplicationId = $AppId.appId
93
- }
94
- Set-CIPPAzDataTableEntity @ConfigTable - Entity $NewConfig - Force | Out-Null
87
+
95
88
Set-AzKeyVaultSecret - VaultName $kv - Name ' tenantid' - SecretValue (ConvertTo-SecureString - String $TenantId - AsPlainText - Force)
96
89
Set-AzKeyVaultSecret - VaultName $kv - Name ' applicationid' - SecretValue (ConvertTo-SecureString - String $Appid.appId - AsPlainText - Force)
97
90
Set-AzKeyVaultSecret - VaultName $kv - Name ' applicationsecret' - SecretValue (ConvertTo-SecureString - String $AppPassword - AsPlainText - Force)
98
91
}
92
+ $ConfigTable = Get-CippTable - tablename ' Config'
93
+ # update the ConfigTable with the latest appId, for caching compare.
94
+ $NewConfig = @ {
95
+ PartitionKey = ' AppCache'
96
+ RowKey = ' AppCache'
97
+ ApplicationId = $AppId.appId
98
+ }
99
+ Set-CIPPAzDataTableEntity @ConfigTable - Entity $NewConfig - Force | Out-Null
99
100
$Results = @ {' message' = " Succesfully $state the application registration. The application ID is $ ( $AppId.appid ) . You may continue to the next step." ; severity = ' success' }
100
101
}
101
102
You can’t perform that action at this time.
0 commit comments