Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

After you have completed the procedures described in the previous topics, you need to publish the EmpowerID Exchange Online V2 PowerShell microservice to Azure to manage your Exchange tenant from EmpowerID.

...

Note

Publishing the microservice

...

Log in to EmpowerID as a person with the necessary access to initiate the Publish Azure App Service workflow.

...

On the navbar, expand Azure License Manager and click Configuration.

...

On the Configuration page, select the Tenants tab and then click the Publish Azure App Service action link.

...

...

For Application Type select Microservices and then click Submit.

...

...

For Microservice Application select Exchange Online V2 PowerShell and click Submit.

...

...

requires you to have the appropriate ZIP file for the microservice. Please contact EmpowerID for the file if you do not have it.

Procedure

  1. Copy the below PowerShell script into the text editor of your choice and save it as zipdeploy_appService.ps1.

    Code Block
    languagepowershell
    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

  2. Open an administrative PowerShell session.

  3. Navigate to the directory where you saved the script and execute the script, passing in the values of the pubProfilePath and zipFilePath parameters via the command line, where the value of pubProfilePath is the path to the 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 microservice.

Click OK to close the publish results message.

...

  1. 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.

    Image Added