How-to-config-a-CA-certificate-with-API-management-via-PowerShell

$password = ConvertTo-SecureString -String “YourPassword” -Force -AsPlainText

$rootCa = New-AzApiManagementSystemCertificate -StoreName “Root”-PfxPassword $password -PfxPath “C:\YourDirectory\your-cert-file.pfx”

$systemCert = @($rootCa)

New-AzApiManagement -ResourceGroupName “YourResourceGroupName” -Location “YourLocation” -Name “YourAPIMNname” -Organization YourOrg -AdminEmail youremail@jacky.com -SystemCertificateConfiguration $systemCert

This command creates and initializes an instance of PsApiManagementSystemCertificate with a root CA certificate. It then creates and API Management service which installs the CA cert to the Root store.

HTH. By Jacky 2020-Feb.-27