-
Couldn't load subscription status.
- Fork 14
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Problem description
When you try to log in with a service principal, this does not work. It will give you the error "Connect-FabricAccount: Cannot process argument transformation on parameter 'ServicePrincipalSecret'. Cannot convert the value of type "System.String" to type "System.Security.SecureString"."
Verbose logs
Connect-FabricAccount: Cannot process argument transformation on parameter 'ServicePrincipalSecret'. Cannot convert the value of type "System.String" to type "System.Security.SecureString".
How to reproduce
Connect-FabricAccount -TenantId $TenantID -ServicePrincipalId $ServicePrincipalId -ServicePrincipalSecret $ServicePrincipalSecret
Expected behavior
Just logging in my Service Principal ;)
Current behavior
Not logging in - giving me an error
Suggested solution
The problem is that the $ServicePrincipalSecret is not converted to a Secure String, so we have to do this.
Operating system you are running FabricTools on
OsName : Microsoft Windows 11 Business
OsOperatingSystemSKU : 48
OsArchitecture : 64-Bit
WindowsVersion : 2009
WindowsBuildLabEx : 26100.1.amd64fre.ge_release.240331-1435
OsLanguage : de-DE
OsMuiLanguages : {de-DE, en-US}
PowerShell version and build the target node is running
Name Value
---- -----
PSVersion 7.5.2
PSEdition Core
GitCommitId 7.5.2
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Module version used
FabricTools 0.30.0 C:\Users\fgeisler\OneDrive - GDS Business Intelligence GmbH\Dokumente\PowerShell\Modules\FabricTools\0.30.0\FabricTools.psd1
FabricTools 0.29.0 C:\Users\fgeisler\OneDrive - GDS Business Intelligence GmbH\Dokumente\PowerShell\Modules\FabricTools\0.29.0\FabricTools.psd1
FabricTools 0.10.0 C:\Users\fgeisler\OneDrive - GDS Business Intelligence GmbH\Dokumente\PowerShell\Modules\FabricTools\0.10.0\FabricTools.psd1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working