DEV Community

Discussion on: Connecting to Azure with Ansible

Collapse
 
putica2010 profile image
Shan Gao

Thank you Josh for such a good series about ansible with Azure!

Followed along, found a small mistake, I believe you meant the below assignment in the 'roleAssignmentSplat' hashtable instead of '$spId'

Scope = "/subscriptions/$subId"

Collapse
 
joshduffney profile image
Josh Duffney

Hey Shan,

You're very welcome and thank you for taking the time to read and walk through the tutorials! You're correct with the mistake you identified. I've updated the code for the roleAssignmentSplat hashtable. I really appreciate you taking the time to point this out. Thank you!

$roleAssignmentSplat = @{
    ObjectId = $sp.id
    RoleDefinitionName = 'Contributor'
    Scope = "/subscriptions/$subId"
}
Collapse
 
jerppuliz profile image
Jere Vekka

For some reason, the error still exists in the code :|

Thread Thread
 
joshduffney profile image
Josh Duffney

Not sure if it just didn't save or got reverted but it's been fixed! Thanks for the comment.