Skip to content

Commit

Permalink
Fix securestring issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDawson committed Dec 20, 2022
1 parent 326a4ad commit ee8ca12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Solutions/Marain.Tenancy.Deployment/Marain-PreDeploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ Function MarainDeployment([MarainServiceDeploymentContext] $ServiceDeploymentCon

$ServiceDeploymentContext.InstanceContext.TenantAdminAppId = $newSp.AppId
$ServiceDeploymentContext.InstanceContext.TenantAdminObjectId = $newSp.Id
Set-AzKeyVaultSecret -VaultName $keyVaultName -Name $tenantAdminSecretName -SecretValue $newSp.PasswordCredentials[0].SecretText | Out-Null
$spSecret = ConvertTo-SecureString $newSp.PasswordCredentials[0].SecretText -AsPlainText
Set-AzKeyVaultSecret -VaultName $keyVaultName -Name $tenantAdminSecretName -SecretValue $spSecret | Out-Null
}
}
else {
Expand Down

0 comments on commit ee8ca12

Please sign in to comment.