0 votes

Hi, I need to retreive a secret from a Azure Keyvault in a business rule. I have a powershell script that works if i run a external command. But it fails if I run then same script in the "integrated" powershell environment. The start script are as follows

try { import-module az.keyvault

Connect-AzAccount -Identity 

} catch { $context.logmessage($.Exception,"Error") throw $.Exception

}

When running it fails with:

Unable to acquire token for tenant 'organizations' with error 'Entry point was not found.'

Entry point was not found. Stack trace: at <ScriptBlock>, <No file>: line 20

Any sugestion? Kind regards Reidar Dick-Henriksen

by (20 points)

1 Answer

0 votes
by (294k points)

Hello Reidar,

Unfortunately, this is a known issue with the Az.Accounts module and there is currently no workaround. In future releases, Adaxes is planned to support PowerShell 7 (recommended for the module) and it should work fine then. We apologize for the inconvenience.

Related questions

0 votes
1 answer

Hello, I am attempting to configure a business rule that adjusts an adaxes custom property of a user, upon that user being added/removed from a group. I cannot seem to ... (like username, office, description, email, etc.) but not so much on custom attributes.

asked Jul 14, 2023 by NKB#2772 (70 points)
0 votes
1 answer

Is it possible to disable then re-enable a Business Rule from a Scheduled Task? For example, when the Scheduled tasks starts, it disables a Business Rule, runs the Task(s), then re-enables the Business Rule when done.

asked May 11, 2016 by Kikaida (1.1k points)
0 votes
1 answer

Automation of user creation based on ServiceNow ticket creation.

asked Jan 24, 2022 by tdetmer (20 points)
0 votes
1 answer

Is there a way to set a users' UPN Suffix within a business rule (PS script)? I've seen the script to update the suffix based on OU, but our OU structure ... primary email address, or to apply a particular UPN suffix based on department. Either method works.

asked Apr 3, 2017 by steve.newton (50 points)
0 votes
1 answer

We are trying to extend our Adaxes management to O365 / Azure only user objects. Currently we use employee type to add traditional active directory accounts to business units and ... so, can this be used to create dynamic mail enabled security groups in O365?

asked May 3, 2022 by adaxes_user2 (40 points)
3,588 questions
3,277 answers
8,303 comments
548,099 users