Azure / caf-terraform-landingzones

Azure Terraform SRE framework

Home Page:https://aka.ms/azure-terraform-sre

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug] Get deployment user object_id

rowbot-99 opened this issue · comments

commented

Describe the bug
A clear and concise description of what the bug is.
az ad signed-in-user show --query objectId -o tsv is no longer supported and doesn't return the object ID of the signed in user

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.
return the object ID of the current signed in user
Screenshots
If applicable, add screenshots to help explain your problem.

Configuration (please complete the following information):

  • OS and version: [e.g. Windows 10 1909]
  • Version of the rover[e.g. 22]
  • Version of the landing zone[e.g. 11]

Additional context
Add any other context about the problem here.
should be replaced with:
az ad signed-in-user show --query id -o tsv