cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tchagan1970
Frequent Visitor

Cannot retrieve Connectors for a non-default environment

Hi,

 

I'm trying to retrieve connectors for a specific environment that is not the Default environment. I've tried the PowerShell Cmdlet Get-AdminPowerAppConnector which will retrieve connectors for the Default environment but returns nothing for other environments. I've tried the same using Power Automate using the "Get Custom Connectors as Admin" Action, this returns nothing also.

 

I've even tried using the Azure management API call which I guess the two above are based on, this also returns correctly for the Default environment but returns nothing for others.

 

I need the connector information as I want to add a custom connector to a DLP for a specific environment and using PowerShell or Power Automate connectors is the only way to do this.

 

Any ideas for how to resolve this would be appreciated.

 

regards


Terry

1 ACCEPTED SOLUTION

Accepted Solutions
tchagan1970
Frequent Visitor

 

I found a work around for this by using the Get-AdminPowerAppConnection  with the -EnvironmentName parameter set to my environment where the custom connector is.

 

This returns a list of the connections, including the custom connector. The ConnectorName and FullConnectorName properties can then be used with the Add-CustomConnectorToPolicy cmdlet, the ConnectorName property is used with the -ConnectorName parameter and the FullConnectorName property is used with the -ConnectorId parameter.

 

My reason for doing this is using the Power Platform CoE Starter Kit specifically setting up the audit log connector https://docs.microsoft.com/en-gb/power-platform/guidance/coe/setup-auditlog

 

The audit log custom connector must be added to the DLP for the environment the CoE starter kit is running on.

 

Hopefully this may help others setting up the kit.

 

regards

Terry

View solution in original post

1 REPLY 1
tchagan1970
Frequent Visitor

 

I found a work around for this by using the Get-AdminPowerAppConnection  with the -EnvironmentName parameter set to my environment where the custom connector is.

 

This returns a list of the connections, including the custom connector. The ConnectorName and FullConnectorName properties can then be used with the Add-CustomConnectorToPolicy cmdlet, the ConnectorName property is used with the -ConnectorName parameter and the FullConnectorName property is used with the -ConnectorId parameter.

 

My reason for doing this is using the Power Platform CoE Starter Kit specifically setting up the audit log connector https://docs.microsoft.com/en-gb/power-platform/guidance/coe/setup-auditlog

 

The audit log custom connector must be added to the DLP for the environment the CoE starter kit is running on.

 

Hopefully this may help others setting up the kit.

 

regards

Terry

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,881)