Skip to content
Discussion options

You must be logged in to vote

I tried out this concept again and in my standalone tenant, it works fine, takes 2 minutes for the log to show up.

  • I would avoid using this workaround if possible, since it's not following a declarative model for maintaining external state.
param deployment string = newGuid()
param uaiName string = 'AEU1-PE-CTL-D1-uaiReader'

module getid '../y.getDeployObjectID2.bicep' = {
  name: deployment
  params: {
    deployment: deployment
    userAssignedIdentityName: uaiName
  }
}

output objectId string = getid.outputs.deployUserObjectID

use get-azlog to look up who is running the deployment and return the objectid

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@brwilkinson
Comment options

Answer selected by brwilkinson
@brwilkinson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants