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 (299k 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

Automation of user creation based on ServiceNow ticket creation.

asked Jan 24, 2022 by tdetmer (20 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

We have AD groups that manage what VLAN a user's system is associated with based on the user's department. I have custom command to change the PC group membership if the ... business rule. (I cannot select the command) is there a way to work around this?

asked Feb 27 by stevehalvorson (130 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)
3,645 questions
3,333 answers
8,432 comments
548,973 users