We are trying to achieve automated way of policy creation in different scopes as per a developer providing input yaml files . The above task will create a customized policy.xml as per the developer input and the scopes also will be decided from the conditions.
To further automate this process, we couldn't find a way over the MS docs, how we can apply the customized policies idempotently in the scope of API or operation (if policy is applied in API, the same will be over written to operations).
can we apply same policy in API and same policy again in the operation inside the API with a custom range using the generated policy.xml file
How to apply multiple custom policy.xml files in the API or operation level.
There are a few things to keep in mind:
With above in mind you should be able to build a process where single policy document is produced based on declarative settings.