This repository was archived by the owner on Feb 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -295,17 +295,12 @@ public async Task<Template> GenerateAPIsARMTemplate(string apimname, string reso
295
295
Console . WriteLine ( "'{0}' Product association found" , apiProductName ) ;
296
296
297
297
// convert returned api product associations to template resource class
298
- ProductAPITemplateResource productAPIResource = JsonConvert . DeserializeObject < ProductAPITemplateResource > ( apiProducts ) ;
298
+ ProductAPITemplateResource productAPIResource = JsonConvert . DeserializeObject < ProductAPITemplateResource > ( item . ToString ( ) ) ;
299
299
productAPIResource . type = ResourceTypeConstants . ProductAPI ;
300
300
productAPIResource . name = $ "[concat(parameters('ApimServiceName'), '/{ apiProductName } /{ oApiName } ')]";
301
301
productAPIResource . apiVersion = GlobalConstants . APIVersion ;
302
302
productAPIResource . scale = null ;
303
303
productAPIResource . dependsOn = new string [ ] { $ "[resourceId('Microsoft.ApiManagement/service/apis', parameters('ApimServiceName'), '{ oApiName } ')]" } ;
304
- // deployment throws errors if resource does not have a properties object
305
- if ( productAPIResource . properties == null )
306
- {
307
- productAPIResource . properties = new ProductAPITemplateProperties ( ) ;
308
- }
309
304
310
305
templateResources . Add ( productAPIResource ) ;
311
306
}
You can’t perform that action at this time.
0 commit comments