MLogdberg / APIManagementARMTemplateCreator

Azure API Management Template Extractor, extracts ARM templates for your API's to be used in the CI/CD process.
MIT License
45 stars 43 forks source link

Extract Specific Operation from APIM #129

Open vikashshaw9595 opened 1 year ago

vikashshaw9595 commented 1 year ago

@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