APIManagementARMTemplateCreator icon indicating copy to clipboard operation
APIManagementARMTemplateCreator copied to clipboard

Extract Specific Operation from APIM

Open vikashshaw9595 opened this issue 1 year ago • 0 comments

@MLogdberg Is there any way, we can extract specific operation from APIM ? I can extract either full APIM configuration or till API level which consists of more than one operation.

I am using below powershell script.

$apimName = 'demo-apim'
$rgName = 'RG-Demo'
$subId = 'XXX-XXX-XXX-XXX'
$tenant = 'XXX.com'
$apiName = "path eq 'order'"
$filename = 'C:\Users\Desktop\term\' + $apimName + '.json'
Get-APIManagementTemplate -APIManagement $apimName -ResourceGroup $rgName -SubscriptionId $subId -TenantName $tenant -APIFilters $apiName -ExportPIManagementInstance $false | Out-File $filename

vikashshaw9595 avatar Jun 26 '23 07:06 vikashshaw9595