Skip to content

Commit 5995986

Browse files
committed
Update policies.py
1 parent b8788aa commit 5995986

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/policies.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
# Path to the policies.xml file
1111
policy_file_path = './policies/policies.xml'
1212

13-
# Construct the command to create the product policy in APIM
13+
# Construct the command to update the product policy in APIM
1414
command = [
15-
'az', 'apim', 'product', 'policy', 'create',
15+
'az', 'apim', 'product', 'policy', 'update',
1616
'--resource-group', resourceGroupName,
1717
'--service-name', apimServiceName,
1818
'--product-id', product_id,
1919
'--xml-policy', policy_file_path,
20+
'--set', 'format=xml',
2021
]
2122

2223
# Run the command

0 commit comments

Comments
 (0)