After you configure SCIM App Service Authentication, you need to publish the microservice to Azure to allow the app to make API calls to Azure AD.
Publish the SCIM Microservice to Azure
...
Log in to the EmpowerID Web interface as a person with the necessary access to initiate the SCIM Microservice Publishing workflow.
...
On the navbar, expand Azure License Manager and click Configuration.
...
On the Configuration page, click the Tenants tab and then click the Publish Azure AD SCIM App Service action link.
...
...
For Application Type select Microservices.
...
...
Click Submit.
...
For Microservice Application, select Azure AD SCIM Microservice.
...
...
Click Submit.
...
Note |
---|
Publishing the microservice requires you to have the appropriate ZIP file for the microservice. Please contact EmpowerID for the file if you do not have it. |
Procedure
Copy the below PowerShell script into the text editor of your choice and save it as
zipdeploy_appService.ps1
.Code Block language powershell param( $pubProfileFilePath ,$zipFilePath ) $ErrorActionPreference = "Stop" $pubProfile = [xml](gc $pubProfileFilePath) $zipPubProfile = $pubProfile.publishData.publishProfile | where { $_.publishMethod -eq "zipdeploy" } $userAgent = "powershell/1.0" $base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $zipPubProfile.userName, $zipPubProfile.userPWD))) $zipdeployUrl = "https://$($zipPubProfile.publishUrl)/api/zipdeploy" $deploymentsUrl = "https://$($zipPubProfile.publishUrl)/api/deployments" Invoke-RestMethod -Uri $zipdeployUrl -Headers @{Authorization=("Basic {0}" -f $base64AuthInfo)} -UserAgent $userAgent -Method Post -InFile $zipFilePath Invoke-RestMethod -Uri $deploymentsUrl -Headers @{Authorization=("Basic {0}" -f $base64AuthInfo)} -UserAgent $userAgent -Method Get
Open an administrative PowerShell session.
Navigate to the directory where you saved the script and execute the script, passing in the values of the
pubProfilePath
andzipFilePath
parameters via the command line, where the value ofpubProfilePath
is the path to the SCIM App Service Publisher Profile Settings file you downloaded from Azure.
...
Once you have selected the file, click Submit.
...
...
Click Yes to confirm that you want to publish the SCIM Microservice.
...
The value of
zipFilePath
is the path to the microservice ZIP file you received from EmpowerID.The command to execute the script should look similar to that shown in the below image.
The EmpowerID SCIM Microservice is now published to your App Service.
...