Last active
April 27, 2018 11:00
-
-
Save JanVidarElven/8c3ea34bc0c165b0307db53b8eb358fa to your computer and use it in GitHub Desktop.
AzureADAppProxyConnector
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# AzureAD PowerShell CmdLets to Manage Azure AD App Proxy Connector | |
# Connect to Azure AD | |
Connect-AzureAD | |
# Retrieve Application Proxy Connectors | |
Get-AzureADApplicationProxyConnector | Select-Object Id, MachineName, ExternalIp, Status | |
# Get Application Proxy Connectors by Filter | |
Get-AzureADApplicationProxyConnector -Filter "startswith(MachineName,'ELVEN')" | |
# NOT WORKING Get-AzureADApplicationProxyConnector -Filter "Status eq 'active'" | |
# Get a specific Application Proxy Connector by Id and set to a Variable | |
$aadProxyConnector = Get-AzureADApplicationProxyConnector -Id "d017e323-7378-47e0-8eb7-c4e97aa5c337" | |
# Create a new Application Proxy Connector Group | |
New-AzureADApplicationProxyConnectorGroup -Name "AADPC_NUC" | |
# Retrieve Application Proxy Connector Groups | |
Get-AzureADApplicationProxyConnectorGroup | Select-Object Id, Name, ConnectorGroupType, IsDefault | |
# Get Application Proxy Connector Groups by Filter | |
Get-AzureADApplicationProxyConnectorGroup -Filter "Name eq 'AADPC_NUC'" | |
# NOT WORKING Get-AzureADApplicationProxyConnectorGroup -Filter "ConnectorGroupType eq 'applicationProxy'" | |
# Microsoft.ApplicationProxy.Cloud.ApplicationProxyMsGraphWebRole.Models.connectorGroupType::applicationProxy | |
# Get a specific Application Proxy Connector Group by Id and set to a Variable | |
$aadProxyConnectorGroup = Get-AzureADApplicationProxyConnectorGroup -Id "6bff36ac-6c97-49a2-88cc-2b0dba339a0a" | |
# Get the Application Proxy Connector group an Application Proxy Connector is a member of | |
Get-AzureADApplicationProxyConnectorMemberOf -Id $aadProxyConnector.Id | |
# Reassign Azure AD App Proxy Connector to another Connector Group | |
Set-AzureADApplicationProxyConnector -Id $aadProxyConnector.Id -ConnectorGroupId $aadProxyConnectorGroup.Id | |
# Get All the Application Proxy Connectors associated with the given Connector Group | |
Get-AzureADApplicationProxyConnectorGroupMembers -Id $aadProxyConnectorGroup.Id -All $true | |
# Sets the Connector Group assigned for a specified application, the application must be configured for Application Proxy in Azure Active Directory (AD). | |
Set-AzureADApplicationProxyApplicationConnectorGroup -ObjectId $applicationId -ConnectorGroupId $aadProxyConnectorGroup.Id | |
# The Set-AzureADApplicationProxyConnectorGroup cmdlet allows you to change the name of a given Application Proxy connector group. | |
Set-AzureADApplicationProxyConnectorGroup -Id $aadProxyConnectorGroup.Id -Name "NEW NAME OF GROUP" | |
# Remove an Application Proxy Connector group | |
Remove-AzureADApplicationProxyConnectorGroup -Id $aadProxyConnectorGroup.Id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment