microsoft / vscode-apimanagement

VS Code extension for Azure API Management.
MIT License
60 stars 40 forks source link

Update devops-resource-kit binaries & fix devops-resource-kit issue #510 #233

Closed DeagleGross closed 2 years ago

DeagleGross commented 2 years ago

Tested on sample APIM instance template extraction.

globalServicePolicy.template.json

{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "ApimServiceName": {
      "type": "string"
    },
    "PolicyXMLSasToken": {
      "type": "string"
    },
    "PolicyXMLBaseUrl": {
      "type": "string"
    }
  },
  "resources": [
    {
      "properties": {
        "value": "[concat(parameters('PolicyXMLBaseUrl'), '/globalServicePolicy.xml', parameters('PolicyXMLSasToken'))]",
        "format": "rawxml-link"
      },
      "name": "[concat(parameters('ApimServiceName'), '/policy')]",
      "type": "Microsoft.ApiManagement/service/policies",
      "apiVersion": "2021-01-01-preview"
    }
  ]
}

parameters.json

{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "ApimServiceName": {
      "value": " "
    },
    "LinkedTemplatesBaseUrl": {
      "value": " "
    },
    "LinkedTemplatesUrlQueryString": {
      "value": " "
    },
    "PolicyXMLBaseUrl": {
      "value": " "
    },
    "PolicyXMLSasToken": {
      "value": " "
    }
  },
  "resources": []
}