Skip to content

Add support for SPN as alternative for Credentials  #15

@IanB111

Description

@IanB111

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [X] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

With a none Development kit environment setup with ADFS, create data collection tasks against the ADFS Azure Stack.
Run the tasks.

Any log messages given by the failure

Login-AzureRmAccount : MSIS9659: Invalid 'username' or 'password'.: The remote server returned an error: (400) Bad
Request.
At C:\AZSAdminOMSInt\usagesummaryjson.ps1:213 char:1

  • Login-AzureRmAccount -EnvironmentName $cloudName2 -Credential $aadCre ...
  •   + CategoryInfo          : CloseError: (:) [Connect-AzureRmAccount], AadAuthenticationFailedException
      + FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand
    
    

Expected/desired behavior

Able to setup Data Collection for ADFS environments and it works.

OS and Version?

Windows Server 2016 Datacenter

Versions

Mention any other details that might be useful

On a system setup with ADFS, the scripts may fail to run due to Login-AzureRMAccount not supporting credentials except in interactive mode.
Because the command that this relies on will fail, data collection will not function.
If the code is updated to support SPN as an alterative to using credentials this could function.


Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions