sassoftware/viya4-iac-azure

Doc Issue: Incorrect instructions for Creating a SP

canpmh opened this issue · 0 comments

Terraform Version Details

{
"terraform_version": ""1.0.0"",
"terraform_revision": "null",
"terraform_outdated": "true",
"provider_selections": "{}"
}

Terraform Variable File Details

n/a for doc issue

Steps to Reproduce

run the documented commands for creating a Service Principal as shown at AzureHelpTopics.md

Expected Behavior

The 2nd line in the SP creation commands is incorrect. The correct command for fetching the Service Principal's appID is as follows:

TF_VAR_client_id=$(az ad sp list --display-name http://$USER --query [].appId --output tsv)

Actual Behavior

You can't use --id with the display name, so this doesn't work:

TF_VAR_client_id=$(az ad sp show --id http://$USER --query appId --output tsv)

canpmh@cldlgn03:~/viya4$ az ad sp show --id http://JJViyaTest
Service principal 'http://JJViyaTest' doesn't exist

Additional Context

No response

References

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct