I am new to Azure , My Vendor has some information in their Azure Storage Account , They have made to so , we cannot access this storage account via SAS Token and we can only access it via Private Endpoint set up in our own Azure RG
We have done the same , Now I’m trying to import the data into my local server , i have enabled my local server to be able to access the private end point i created
I am trying to accomplish this using PowerShell but I’m getting below error when connecting to Azure
Error :
ClientSecretCredential authentication failed: A configuration issue is preventing authentication – check the error message from the server for details
AADSTS7000215: Invalid client secret is provided,Ensure secret being sent is the client secret value
I have confirmed that secret key is correct
Please find my method in PowerShell below :
$SecurePassword = ConvertTo-SecureString -String “Password123!” -AsPlainText -Force
$TenantId = ‘yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy’
$ApplicationId = ‘zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzz’
$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $ApplicationId, $SecurePassword
Connect-AzAccount -ServicePrincipal -TenantId $TenantId -Credential $Credential
Aakash Ravindran is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.