From 55fe1c48a5c34d48b6a0b1a649433fe0104f8ed1 Mon Sep 17 00:00:00 2001 From: Chris Stackhouse Date: Tue, 26 Aug 2025 12:01:09 -0700 Subject: [PATCH] CLI command model for Azure Policy CRUD commands. These were used in this PR: https://github.com/Azure/azure-cli/pull/31496 to onboard the policy CLI commands to auto-generation. --- Commands/policy/assignment/_create.md | 43 + Commands/policy/assignment/_delete.md | 23 + Commands/policy/assignment/_list.md | 30 + Commands/policy/assignment/_show.md | 18 + Commands/policy/assignment/_update.md | 18 + .../policy/assignment/identity/_assign.md | 28 + .../policy/assignment/identity/_remove.md | 18 + Commands/policy/assignment/identity/_show.md | 18 + Commands/policy/assignment/identity/readme.md | 16 + .../non-compliance-message/_create.md | 23 + .../non-compliance-message/_delete.md | 23 + .../non-compliance-message/_list.md | 18 + .../non-compliance-message/_show.md | 18 + .../non-compliance-message/_update.md | 18 + .../non-compliance-message/readme.md | 22 + Commands/policy/assignment/readme.md | 30 + Commands/policy/definition/_create.md | 34 + Commands/policy/definition/_delete.md | 19 + Commands/policy/definition/_list.md | 30 + Commands/policy/definition/_show.md | 24 + Commands/policy/definition/_update.md | 19 + Commands/policy/definition/readme.md | 22 + Commands/policy/exemption/_create.md | 28 + Commands/policy/exemption/_delete.md | 18 + Commands/policy/exemption/_list.md | 30 + Commands/policy/exemption/_show.md | 18 + Commands/policy/exemption/_update.md | 28 + Commands/policy/exemption/readme.md | 22 + Commands/policy/readme.md | 19 + Commands/policy/set-definition/_create.md | 34 + Commands/policy/set-definition/_delete.md | 19 + Commands/policy/set-definition/_list.md | 25 + Commands/policy/set-definition/_show.md | 24 + Commands/policy/set-definition/_update.md | 24 + Commands/policy/set-definition/readme.md | 22 + Commands/readme.md | 3 + .../2024-05-01.json | 1 + .../2024-05-01.xml | 442 +++ .../2024-05-01.json | 1 + .../2024-05-01.xml | 508 +++ .../2024-05-01.json | 1 + .../2024-05-01.xml | 528 +++ .../2024-05-01.md | 1 + .../2024-05-01.json | 1 + .../2024-05-01.xml | 1331 ++++++++ .../2022-07-01-preview.json | 1 + .../2022-07-01-preview.xml | 386 +++ .../2024-05-01.md | 1 + .../2024-05-01.json | 1 + .../2024-05-01.xml | 1567 +++++++++ .../2024-05-01.md | 1 + .../2024-05-01.md | 1 + .../2024-05-01.md | 1 + .../2022-07-01-preview.md | 1 + .../2024-05-01.md | 1 + .../2024-05-01.md | 1 + .../2024-05-01.md | 1 + .../2022-07-01-preview.md | 1 + .../2024-05-01.json | 1 + .../2024-05-01.xml | 2936 +++++++++++++++++ .../2022-07-01-preview.json | 1 + .../2022-07-01-preview.xml | 681 ++++ 62 files changed, 9223 insertions(+) create mode 100644 Commands/policy/assignment/_create.md create mode 100644 Commands/policy/assignment/_delete.md create mode 100644 Commands/policy/assignment/_list.md create mode 100644 Commands/policy/assignment/_show.md create mode 100644 Commands/policy/assignment/_update.md create mode 100644 Commands/policy/assignment/identity/_assign.md create mode 100644 Commands/policy/assignment/identity/_remove.md create mode 100644 Commands/policy/assignment/identity/_show.md create mode 100644 Commands/policy/assignment/identity/readme.md create mode 100644 Commands/policy/assignment/non-compliance-message/_create.md create mode 100644 Commands/policy/assignment/non-compliance-message/_delete.md create mode 100644 Commands/policy/assignment/non-compliance-message/_list.md create mode 100644 Commands/policy/assignment/non-compliance-message/_show.md create mode 100644 Commands/policy/assignment/non-compliance-message/_update.md create mode 100644 Commands/policy/assignment/non-compliance-message/readme.md create mode 100644 Commands/policy/assignment/readme.md create mode 100644 Commands/policy/definition/_create.md create mode 100644 Commands/policy/definition/_delete.md create mode 100644 Commands/policy/definition/_list.md create mode 100644 Commands/policy/definition/_show.md create mode 100644 Commands/policy/definition/_update.md create mode 100644 Commands/policy/definition/readme.md create mode 100644 Commands/policy/exemption/_create.md create mode 100644 Commands/policy/exemption/_delete.md create mode 100644 Commands/policy/exemption/_list.md create mode 100644 Commands/policy/exemption/_show.md create mode 100644 Commands/policy/exemption/_update.md create mode 100644 Commands/policy/exemption/readme.md create mode 100644 Commands/policy/readme.md create mode 100644 Commands/policy/set-definition/_create.md create mode 100644 Commands/policy/set-definition/_delete.md create mode 100644 Commands/policy/set-definition/_list.md create mode 100644 Commands/policy/set-definition/_show.md create mode 100644 Commands/policy/set-definition/_update.md create mode 100644 Commands/policy/set-definition/readme.md create mode 100644 Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucw==/2024-05-01.json create mode 100644 Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucw==/2024-05-01.xml create mode 100644 Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucw==/2024-05-01.json create mode 100644 Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucw==/2024-05-01.xml create mode 100644 Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lhc3NpZ25tZW50cw==/2024-05-01.json create mode 100644 Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lhc3NpZ25tZW50cw==/2024-05-01.xml create mode 100644 Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucw==/2024-05-01.md create mode 100644 Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucy97fQ==/2024-05-01.json create mode 100644 Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucy97fQ==/2024-05-01.xml create mode 100644 Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lleGVtcHRpb25z/2022-07-01-preview.json create mode 100644 Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lleGVtcHRpb25z/2022-07-01-preview.xml create mode 100644 Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucw==/2024-05-01.md create mode 100644 Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucy97fQ==/2024-05-01.json create mode 100644 Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucy97fQ==/2024-05-01.xml create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRz/2024-05-01.md create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWRlZmluaXRpb25z/2024-05-01.md create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWRlZmluaXRpb25zL3t9/2024-05-01.md create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnM=/2022-07-01-preview.md create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeXNldGRlZmluaXRpb25z/2024-05-01.md create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeXNldGRlZmluaXRpb25zL3t9/2024-05-01.md create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRz/2024-05-01.md create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnM=/2022-07-01-preview.md create mode 100644 Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.json create mode 100644 Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml create mode 100644 Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnMve30=/2022-07-01-preview.json create mode 100644 Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnMve30=/2022-07-01-preview.xml diff --git a/Commands/policy/assignment/_create.md b/Commands/policy/assignment/_create.md new file mode 100644 index 000000000..ad69df0d2 --- /dev/null +++ b/Commands/policy/assignment/_create.md @@ -0,0 +1,43 @@ +# [Command] _policy assignment create_ + +Create a policy assignment. + +Create a policy assignment with the given scope and name. Policy assignments apply to all resources contained within their scope. For example, when you assign a policy at resource group scope, that policy applies to all resources in the group. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml) **Stable** + + + +#### examples + +- Create a resource policy assignment at scope + ```bash + policy assignment create --scope "/providers/Microsoft.Management/managementGroups/{managementGroupName}" --policy {policyName} -p "{ 'allowedLocations': { 'value': [ 'australiaeast', 'eastus', 'japaneast' ] } }" + ``` + +- Create a resource policy assignment and provide rule parameter values + ```bash + Create a resource policy assignment and provide rule parameter values policy assignment create --policy {policyName} -p "{ 'allowedLocations': { 'value': [ 'australiaeast', 'eastus', 'japaneast' ] } }" + ``` + +- Create a resource policy assignment with a system assigned identity + ```bash + policy assignment create --name myPolicy --policy {policyName} --mi-system-assigned --location eastus + ``` + +- Create a resource policy assignment with a system assigned identity with Contributor role access to the subscription + ```bash + policy assignment create --name myPolicy --policy {policyName} --mi-system-assigned --identity-scope /subscriptions/{subscriptionId} --role Contributor --location eastus + ``` + +- Create a resource policy assignment with a user assigned identity + ```bash + policy assignment create --name myPolicy --policy {policyName} -g MyResourceGroup --mi-user-assigned myAssignedId --location westus + ``` + +- Create a resource policy assignment with an enforcement mode + ```bash + policy assignment create --name myPolicy --policy {policyName} --enforcement-mode DoNotEnforce + ``` diff --git a/Commands/policy/assignment/_delete.md b/Commands/policy/assignment/_delete.md new file mode 100644 index 000000000..977c837e3 --- /dev/null +++ b/Commands/policy/assignment/_delete.md @@ -0,0 +1,23 @@ +# [Command] _policy assignment delete_ + +Delete a policy assignment. + +Delete the policy assignment with the given name and scope. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml) **Stable** + + + +#### examples + +- Delete a policy assignment at scope + ```bash + policy assignment delete --scope subscriptions/{subscriptionId} --name EnforceNaming + ``` + +- Delete a policy assignment + ```bash + policy assignment delete --name MyPolicyAssignment + ``` diff --git a/Commands/policy/assignment/_list.md b/Commands/policy/assignment/_list.md new file mode 100644 index 000000000..a578f12b1 --- /dev/null +++ b/Commands/policy/assignment/_list.md @@ -0,0 +1,30 @@ +# [Command] _policy assignment list_ + +Retrieve all applicable policy assignments. + +Retrieve the list of all policy assignments applicable to the given subscription or management group. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lhc3NpZ25tZW50cw==/2024-05-01.xml) **Stable** + + + + + +#### examples + +- List policy assignments that apply to a resource group + ```bash + policy assignment list --resource-group TestResourceGroup --filter atScope() --expand LatestDefinitionVersion, EffectiveDefinitionVersion + ``` + +- List policy assignments that apply to a management group + ```bash + policy assignment list --management-group TestManagementGroup --filter atScope() + ``` + +- List policy assignments that apply to a subscription + ```bash + policy assignment list --filter atScope() + ``` diff --git a/Commands/policy/assignment/_show.md b/Commands/policy/assignment/_show.md new file mode 100644 index 000000000..a460cae31 --- /dev/null +++ b/Commands/policy/assignment/_show.md @@ -0,0 +1,18 @@ +# [Command] _policy assignment show_ + +Retrieve a policy assignment. + +Retrieve and show the details of a single policy assignment with the given name and scope. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml) **Stable** + + + +#### examples + +- Show a resource policy assignment + ```bash + policy assignment show --name MyPolicyAssignment + ``` diff --git a/Commands/policy/assignment/_update.md b/Commands/policy/assignment/_update.md new file mode 100644 index 000000000..0f6eb2e88 --- /dev/null +++ b/Commands/policy/assignment/_update.md @@ -0,0 +1,18 @@ +# [Command] _policy assignment update_ + +Update a policy assignment. + +Update the policy assignment with the given name and scope by applying the given property values. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml) **Stable** + + + +#### examples + +- Update a resource policy assignment's description + ```bash + policy assignment update --name myPolicy --description 'My policy description' + ``` diff --git a/Commands/policy/assignment/identity/_assign.md b/Commands/policy/assignment/identity/_assign.md new file mode 100644 index 000000000..6258f35c8 --- /dev/null +++ b/Commands/policy/assignment/identity/_assign.md @@ -0,0 +1,28 @@ +# [Command] _policy assignment identity assign_ + +Assign a managed identity. + +Assign the system or user assigned managed identity to the policy assignment matching the given name and scope. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml) **Stable** + + + +#### examples + +- Add a system assigned managed identity to a policy assignment + ```bash + policy assignment identity assign --system-assigned -g MyResourceGroup -n MyPolicyAssignment + ``` + +- Add a system assigned managed identity to a policy assignment and grant it the Contributor role for a resource group + ```bash + policy assignment identity assign --system-assigned -g MyResourceGroup -n MyPolicyAssignment --role Contributor --identity-scope /subscriptions/{subscriptionId}/resourceGroups/MyResourceGroup + ``` + +- Add a user assigned managed identity to a policy assignment + ```bash + policy assignment identity assign --user-assigned MyAssignedId -g MyResourceGroup -n MyPolicyAssignment + ``` diff --git a/Commands/policy/assignment/identity/_remove.md b/Commands/policy/assignment/identity/_remove.md new file mode 100644 index 000000000..fba4c872b --- /dev/null +++ b/Commands/policy/assignment/identity/_remove.md @@ -0,0 +1,18 @@ +# [Command] _policy assignment identity remove_ + +Remove the managed identity. + +Remove the system or user assigned managed identity from the policy assignment matching the given name and scope. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml) **Stable** + + + +#### examples + +- Remove user assigned managed identity from a policy assignment + ```bash + policy assignment identity remove --name MyPolicyAssignment --user-assigned + ``` diff --git a/Commands/policy/assignment/identity/_show.md b/Commands/policy/assignment/identity/_show.md new file mode 100644 index 000000000..128916730 --- /dev/null +++ b/Commands/policy/assignment/identity/_show.md @@ -0,0 +1,18 @@ +# [Command] _policy assignment identity show_ + +Retrieve the managed identity. + +Retrieve and show the details of the system or user assigned managed identity of the policy assignment matching the given name and scope. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml) **Stable** + + + +#### examples + +- Show a policy assignment's managed identity + ```bash + policy assignment identity show --name MyPolicyAssignment --scope '/providers/Microsoft.Management/managementGroups/{managementGroupName}' + ``` diff --git a/Commands/policy/assignment/identity/readme.md b/Commands/policy/assignment/identity/readme.md new file mode 100644 index 000000000..9eb2acc4e --- /dev/null +++ b/Commands/policy/assignment/identity/readme.md @@ -0,0 +1,16 @@ +# [Group] _policy assignment identity_ + +Managed identity of the policy assignment. + +The system or user assigned managed identity used by the enclosing policy assignment for remediation tasks. + +## Commands + +- [assign](/Commands/policy/assignment/identity/_assign.md) +: Assign a managed identity. + +- [remove](/Commands/policy/assignment/identity/_remove.md) +: Remove the managed identity. + +- [show](/Commands/policy/assignment/identity/_show.md) +: Retrieve the managed identity. diff --git a/Commands/policy/assignment/non-compliance-message/_create.md b/Commands/policy/assignment/non-compliance-message/_create.md new file mode 100644 index 000000000..1370958c3 --- /dev/null +++ b/Commands/policy/assignment/non-compliance-message/_create.md @@ -0,0 +1,23 @@ +# [Command] _policy assignment non-compliance-message create_ + +Create a non-compliance message. + +Create a customized message used to report non-compliance by the policy assignment matching the given name and scope. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml) **Stable** + + + +#### examples + +- Add a non-compliance message to a policy assignment + ```bash + policy assignment non-compliance-message create -g MyResourceGroup -n MyPolicyAssignment -m 'Resources must follow naming standards' + ``` + +- Add a non-compliance message for a specific policy in an assigned policy set definition + ```bash + policy assignment non-compliance-message create -g MyResourceGroup -n MyPolicySetAssignment -m 'Resources must use allowed SKUs' --policy-definition-reference-id SkuPolicyRefId + ``` diff --git a/Commands/policy/assignment/non-compliance-message/_delete.md b/Commands/policy/assignment/non-compliance-message/_delete.md new file mode 100644 index 000000000..a0b2bbe8c --- /dev/null +++ b/Commands/policy/assignment/non-compliance-message/_delete.md @@ -0,0 +1,23 @@ +# [Command] _policy assignment non-compliance-message delete_ + +Delete a non-compliance message. + +Delete a non-compliance message from the policy assignment matching the given name and scope. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml) **Stable** + + + +#### examples + +- Remove non-compliance messages from a policy assignment that contain a specific message and no policy definition reference ID + ```bash + policy assignment non-compliance-message delete -g MyResourceGroup -n MyPolicyAssignment -m 'Resources must follow naming standards' + ``` + +- Remove non-compliance messages from a policy assignment that contain a specific message and a specific policy definition reference ID + ```bash + policy assignment non-compliance-message delete -g MyResourceGroup -n MyPolicySetAssignment -m 'Resources must use allowed SKUs' --policy-definition-reference-id SkuPolicyRefId + ``` diff --git a/Commands/policy/assignment/non-compliance-message/_list.md b/Commands/policy/assignment/non-compliance-message/_list.md new file mode 100644 index 000000000..fa8f678ef --- /dev/null +++ b/Commands/policy/assignment/non-compliance-message/_list.md @@ -0,0 +1,18 @@ +# [Command] _policy assignment non-compliance-message list_ + +Retrieve non-compliance messages. + +Retrieve all non-compliance messages from the policy assignment matching the given name and scope. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml) **Stable** + + + +#### examples + +- List the non-compliance messages for a policy assignment + ```bash + policy assignment non-compliance-message list -g MyResourceGroup -n MyPolicyAssignment + ``` diff --git a/Commands/policy/assignment/non-compliance-message/_show.md b/Commands/policy/assignment/non-compliance-message/_show.md new file mode 100644 index 000000000..51a5386f7 --- /dev/null +++ b/Commands/policy/assignment/non-compliance-message/_show.md @@ -0,0 +1,18 @@ +# [Command] _policy assignment non-compliance-message show_ + +Retrieve a non-compliance message. + +Retrieve and show the details of a non-compliance message belonging to the policy assignment matching the given name and scope. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml) **Stable** + + + +#### examples + +- Show the non-compliance message from a policy assignment that contains a specific message and policy definition reference ID + ```bash + policy assignment non-compliance-message show -g MyResourceGroup -n MyPolicySetAssignment -m 'Resources must use allowed SKUs' --policy-definition-reference-id SkuPolicyRefId + ``` diff --git a/Commands/policy/assignment/non-compliance-message/_update.md b/Commands/policy/assignment/non-compliance-message/_update.md new file mode 100644 index 000000000..ab0a61337 --- /dev/null +++ b/Commands/policy/assignment/non-compliance-message/_update.md @@ -0,0 +1,18 @@ +# [Command] _policy assignment non-compliance-message update_ + +Update a non-compliance message. + +Update a non-compliance message belonging to the policy assignment matching the given name and scope. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml) **Stable** + + + +#### examples + +- Update the non-compliance message for a specific policy in an assigned policy set definition + ```bash + policy assignment non-compliance-message update -g MyResourceGroup -n MyPolicySetAssignment -m 'Resources may only use SKUs from [preferredSKU, anotherGoodSKU]' --policy-definition-reference-id SkuPolicyRefId + ``` diff --git a/Commands/policy/assignment/non-compliance-message/readme.md b/Commands/policy/assignment/non-compliance-message/readme.md new file mode 100644 index 000000000..c8acfe708 --- /dev/null +++ b/Commands/policy/assignment/non-compliance-message/readme.md @@ -0,0 +1,22 @@ +# [Group] _policy assignment non-compliance-message_ + +Non-compliance message used by the policy assignment. + +Customized message used by the enclosing policy assignment to report non-compliance. + +## Commands + +- [create](/Commands/policy/assignment/non-compliance-message/_create.md) +: Create a non-compliance message. + +- [delete](/Commands/policy/assignment/non-compliance-message/_delete.md) +: Delete a non-compliance message. + +- [list](/Commands/policy/assignment/non-compliance-message/_list.md) +: Retrieve non-compliance messages. + +- [show](/Commands/policy/assignment/non-compliance-message/_show.md) +: Retrieve a non-compliance message. + +- [update](/Commands/policy/assignment/non-compliance-message/_update.md) +: Update a non-compliance message. diff --git a/Commands/policy/assignment/readme.md b/Commands/policy/assignment/readme.md new file mode 100644 index 000000000..fa94adeb3 --- /dev/null +++ b/Commands/policy/assignment/readme.md @@ -0,0 +1,30 @@ +# [Group] _policy assignment_ + +Manage policy assignments. + +Policy assignments are used to apply a policy definition or policy set definition to a given resource scope. + +## Subgroups + +- [identity](/Commands/policy/assignment/identity/readme.md) +: Managed identity of the policy assignment. + +- [non-compliance-message](/Commands/policy/assignment/non-compliance-message/readme.md) +: Non-compliance message used by the policy assignment. + +## Commands + +- [create](/Commands/policy/assignment/_create.md) +: Create a policy assignment. + +- [delete](/Commands/policy/assignment/_delete.md) +: Delete a policy assignment. + +- [list](/Commands/policy/assignment/_list.md) +: Retrieve all applicable policy assignments. + +- [show](/Commands/policy/assignment/_show.md) +: Retrieve a policy assignment. + +- [update](/Commands/policy/assignment/_update.md) +: Update a policy assignment. diff --git a/Commands/policy/definition/_create.md b/Commands/policy/definition/_create.md new file mode 100644 index 000000000..c04075c12 --- /dev/null +++ b/Commands/policy/definition/_create.md @@ -0,0 +1,34 @@ +# [Command] _policy definition create_ + +Create a policy definition. + +Create a policy definition in the given subscription or management group with the given name and other properties. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucy97fQ==/2024-05-01.xml) **Stable** + + + + +#### examples + +- Create a read-only storage policy + ```bash + policy definition create --name readOnlyStorage --rules "{ 'if': { 'field': 'type', 'equals': 'Microsoft.Storage/storageAccounts/write' }, 'then': { 'effect': 'deny' } }" + ``` + +- Create a policy definition with parameters + ```bash + policy definition create --name allowedLocations --rules "{ 'if': { 'allOf': [{ 'field': 'location','notIn': '[parameters(\'listOfAllowedLocations\')]' }, { 'field': 'location', 'notEquals': 'global' }, { 'field': 'type', 'notEquals': 'Microsoft.AzureActiveDirectory/b2cDirectories'}] }, 'then': { 'effect': 'deny' } }" --params "{ 'allowedLocations': {'type': 'array', 'metadata': { 'description': 'The list of locations that can be specified when deploying resources', 'strongType': 'location', 'displayName': 'Allowed locations' } } }" + ``` + +- Create a read-only storage policy that can be applied within a management group + ```bash + policy definition create -n readOnlyStorage --management-group "MyManagementGroup" --rules "{ 'if': { 'field': 'type', 'equals': 'Microsoft.Storage/storageAccounts/write' }, 'then': { 'effect': 'deny' } }" + ``` + +- Create a policy definition with mode + ```bash + policy definition create --name TagsPolicyDefinition --subscription "MySubscription" --mode Indexed --rules "{ 'if': { 'field': 'tags', 'exists': 'false' }, 'then': { 'effect': 'deny' } }" + ``` diff --git a/Commands/policy/definition/_delete.md b/Commands/policy/definition/_delete.md new file mode 100644 index 000000000..940d960dd --- /dev/null +++ b/Commands/policy/definition/_delete.md @@ -0,0 +1,19 @@ +# [Command] _policy definition delete_ + +Delete a policy definition. + +Delete the policy definition in the given subscription or management group with the given name and other properties. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucy97fQ==/2024-05-01.xml) **Stable** + + + + +#### examples + +- Delete a policy definition + ```bash + policy definition delete --name MyPolicyDefinition + ``` diff --git a/Commands/policy/definition/_list.md b/Commands/policy/definition/_list.md new file mode 100644 index 000000000..28d64b454 --- /dev/null +++ b/Commands/policy/definition/_list.md @@ -0,0 +1,30 @@ +# [Command] _policy definition list_ + +Retrieve policy definitions. + +Retrieve the list of all policy definitions in the given subscription or management group. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucw==/2024-05-01.xml) **Stable** + + + + + +#### examples + +- List built-in policy definitions + ```bash + policy definition list --filter atScopeAndBelow() + ``` + +- List policy definitions by management group + ```bash + policy definition list --management-group MyManagementGroup + ``` + +- List policy definitions by subscription + ```bash + policy definition list + ``` diff --git a/Commands/policy/definition/_show.md b/Commands/policy/definition/_show.md new file mode 100644 index 000000000..bc75e9bc2 --- /dev/null +++ b/Commands/policy/definition/_show.md @@ -0,0 +1,24 @@ +# [Command] _policy definition show_ + +Retrieves a policy definition. + +Retrieve and show the details of the policy definition in the given subscription or management group with the given name. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucy97fQ==/2024-05-01.xml) **Stable** + + + + +#### examples + +- Retrieve a policy definition at management group level + ```bash + policy definition show --management-group MyManagementGroup --name ResourceNaming + ``` + +- Retrieve a policy definition + ```bash + policy definition show --name ResourceNaming + ``` diff --git a/Commands/policy/definition/_update.md b/Commands/policy/definition/_update.md new file mode 100644 index 000000000..e60789c3a --- /dev/null +++ b/Commands/policy/definition/_update.md @@ -0,0 +1,19 @@ +# [Command] _policy definition update_ + +Update a policy definition. + +Update the policy definition in the given subscription or management group with the given name by applying the given properties. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucy97fQ==/2024-05-01.xml) **Stable** + + + + +#### examples + +- Update a policy definition display name + ```bash + policy definition update --name MyPolicyDefinition --display-name "Updated display name goes here" + ``` diff --git a/Commands/policy/definition/readme.md b/Commands/policy/definition/readme.md new file mode 100644 index 000000000..d5aafe88c --- /dev/null +++ b/Commands/policy/definition/readme.md @@ -0,0 +1,22 @@ +# [Group] _policy definition_ + +Manage policy definitions. + +Policy definitions are rules that specify allowed or disallowed Azure resource configurations. + +## Commands + +- [create](/Commands/policy/definition/_create.md) +: Create a policy definition. + +- [delete](/Commands/policy/definition/_delete.md) +: Delete a policy definition. + +- [list](/Commands/policy/definition/_list.md) +: Retrieve policy definitions. + +- [show](/Commands/policy/definition/_show.md) +: Retrieves a policy definition. + +- [update](/Commands/policy/definition/_update.md) +: Update a policy definition. diff --git a/Commands/policy/exemption/_create.md b/Commands/policy/exemption/_create.md new file mode 100644 index 000000000..85049cc15 --- /dev/null +++ b/Commands/policy/exemption/_create.md @@ -0,0 +1,28 @@ +# [Command] _policy exemption create_ + +Create a policy exemption. + +Create a policy exemption with the given name and scope. Policy exemptions apply to all resources contained within their scope. For example, when you create a policy exemption at resource group scope for a policy assignment at the same or higher scope level, the exemption exempts all applicable resources in the resource group from applying to that policy assignment. + +## Versions + +### [2022-07-01-preview](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnMve30=/2022-07-01-preview.xml) **Stable** + + + +#### examples + +- Create a policy exemption in default subscription + ```bash + policy exemption create -n exemptTestVM --policy-assignment "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments/limitVMSku" --exemption-category "Waiver" + ``` + +- Create a policy exemption in the resource group + ```bash + policy exemption create -n exemptTestVM --policy-assignment "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments/limitVMSku" --exemption-category "Waiver" --resource-group "myResourceGroup" + ``` + +- Create a policy exemption in a management group + ```bash + policy exemption create -n exemptTestVM --policy-assignment "/providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policyAssignments/limitVMSku" --exemption-category "Waiver" --scope "/providers/Microsoft.Management/managementGroups/{managementGroupName}" + ``` diff --git a/Commands/policy/exemption/_delete.md b/Commands/policy/exemption/_delete.md new file mode 100644 index 000000000..c51c0e60f --- /dev/null +++ b/Commands/policy/exemption/_delete.md @@ -0,0 +1,18 @@ +# [Command] _policy exemption delete_ + +Delete a policy exemption. + +Delete the policy exemption with the given name and scope. + +## Versions + +### [2022-07-01-preview](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnMve30=/2022-07-01-preview.xml) **Stable** + + + +#### examples + +- Delete a policy exemption + ```bash + policy exemption delete --name MyPolicyExemption --resource-group "myResourceGroup" + ``` diff --git a/Commands/policy/exemption/_list.md b/Commands/policy/exemption/_list.md new file mode 100644 index 000000000..319d600c2 --- /dev/null +++ b/Commands/policy/exemption/_list.md @@ -0,0 +1,30 @@ +# [Command] _policy exemption list_ + +Retrieve all applicable policy exemptions. + +Retrieve the list of all policy assignments applicable to the given subscription or management group. + +## Versions + +### [2022-07-01-preview](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lleGVtcHRpb25z/2022-07-01-preview.xml) **Stable** + + + + + +#### examples + +- List policy exemptions that apply to a management group + ```bash + policy exemption list --management-group DevOrg --filter atScopeAndBelow() + ``` + +- List policy exemptions that apply to a resource group + ```bash + policy exemption list --resource-group TestResourceGroup + ``` + +- List policy exemptions that apply to a subscription + ```bash + policy exemption list + ``` diff --git a/Commands/policy/exemption/_show.md b/Commands/policy/exemption/_show.md new file mode 100644 index 000000000..d639a6c24 --- /dev/null +++ b/Commands/policy/exemption/_show.md @@ -0,0 +1,18 @@ +# [Command] _policy exemption show_ + +Retrieve a policy exemption. + +Retrieve and show the details of the policy exemption with the given name and scope. + +## Versions + +### [2022-07-01-preview](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnMve30=/2022-07-01-preview.xml) **Stable** + + + +#### examples + +- Show a policy exemption + ```bash + policy exemption show --name MyPolicyExemption --resource-group "myResourceGroup" + ``` diff --git a/Commands/policy/exemption/_update.md b/Commands/policy/exemption/_update.md new file mode 100644 index 000000000..cd703ba2d --- /dev/null +++ b/Commands/policy/exemption/_update.md @@ -0,0 +1,28 @@ +# [Command] _policy exemption update_ + +Update a policy exemption. + +Update the policy exemption with the given name and scope by applying the given property values. + +## Versions + +### [2022-07-01-preview](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnMve30=/2022-07-01-preview.xml) **Stable** + + + +#### examples + +- Update a policy exemption category + ```bash + policy exemption update -n exemptTestVM --exemption-category "Mitigated" + ``` + +- Update a policy exemption in a resource group + ```bash + policy exemption update -n exemptTestVM --display-name "Updated display name" --resource-group myResourceGroup + ``` + +- Update a policy exemption at scope + ```bash + policy exemption update -n exemptTestVM --description "This exemption is very cool." --scope "/providers/Microsoft.Management/managementGroups/{managementGroupName}" + ``` diff --git a/Commands/policy/exemption/readme.md b/Commands/policy/exemption/readme.md new file mode 100644 index 000000000..4907abcf8 --- /dev/null +++ b/Commands/policy/exemption/readme.md @@ -0,0 +1,22 @@ +# [Group] _policy exemption_ + +Manage policy exemptions. + +Policy exemptions specify resources that a policy assignment does not apply to. + +## Commands + +- [create](/Commands/policy/exemption/_create.md) +: Create a policy exemption. + +- [delete](/Commands/policy/exemption/_delete.md) +: Delete a policy exemption. + +- [list](/Commands/policy/exemption/_list.md) +: Retrieve all applicable policy exemptions. + +- [show](/Commands/policy/exemption/_show.md) +: Retrieve a policy exemption. + +- [update](/Commands/policy/exemption/_update.md) +: Update a policy exemption. diff --git a/Commands/policy/readme.md b/Commands/policy/readme.md new file mode 100644 index 000000000..65820e687 --- /dev/null +++ b/Commands/policy/readme.md @@ -0,0 +1,19 @@ +# [Group] _policy_ + +Manage resources defined and used by the Azure Policy service. + +Azure Policy is an Azure service that offers APIs to manage Azure resources in a rule-based declarative way. The policy command group provides create, update, show and list commands for managing policy definitions, policy set definitions (also called policy initiatives), policy assignments, and policy exemptions. + +## Subgroups + +- [assignment](/Commands/policy/assignment/readme.md) +: Manage policy assignments. + +- [definition](/Commands/policy/definition/readme.md) +: Manage policy definitions. + +- [exemption](/Commands/policy/exemption/readme.md) +: Manage policy exemptions. + +- [set-definition](/Commands/policy/set-definition/readme.md) +: Manage policy set definitions. diff --git a/Commands/policy/set-definition/_create.md b/Commands/policy/set-definition/_create.md new file mode 100644 index 000000000..b7a8ba315 --- /dev/null +++ b/Commands/policy/set-definition/_create.md @@ -0,0 +1,34 @@ +# [Command] _policy set-definition create_ + +Create a policy set definition. + +Create a policy set definition in the given subscription or management group with the given name and other properties. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucy97fQ==/2024-05-01.xml) **Stable** + + + + +#### examples + +- Create a policy set definition + ```bash + policy set-definition create -n readOnlyStorage --definitions '[ { 'policyDefinitionId': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' } ]' + ``` + +- Create a policy set definition with parameters + ```bash + policy set-definition create -n readOnlyStorage --definitions "[ { 'policyDefinitionId': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}', 'parameters': { 'storageSku': { 'value': '[parameters(\'requiredSku\')]' } } }]" --params "{ 'requiredSku': { 'type': 'String' } }" + ``` + +- Create a policy set definition in a subscription + ```bash + policy set-definition create -n readOnlyStorage --subscription {subscriptionName} --definitions "[ { 'policyDefinitionId': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' } ]" + ``` + +- Create a policy set definition with policy definition groups + ```bash + policy set-definition create -n computeRequirements --definitions "[ { 'policyDefinitionId ': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/storagePolicy', 'groupNames': [ 'CostSaving', 'Organizational' ] }, { 'policyDefinitionId': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/tagPolicy', 'groupNames': [ 'Organizational' ] } ]" --definition-groups "[{ 'name': 'CostSaving' }, { 'name': 'Organizational' } ]" + ``` diff --git a/Commands/policy/set-definition/_delete.md b/Commands/policy/set-definition/_delete.md new file mode 100644 index 000000000..33d3823c8 --- /dev/null +++ b/Commands/policy/set-definition/_delete.md @@ -0,0 +1,19 @@ +# [Command] _policy set-definition delete_ + +Delete a policy set definition. + +Delete the policy set definition in the given subscription or management group with the given name. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucy97fQ==/2024-05-01.xml) **Stable** + + + + +#### examples + +- Delete a policy set definition + ```bash + policy set-definition delete --management-group myMg --name MyPolicySetDefinition + ``` diff --git a/Commands/policy/set-definition/_list.md b/Commands/policy/set-definition/_list.md new file mode 100644 index 000000000..813335931 --- /dev/null +++ b/Commands/policy/set-definition/_list.md @@ -0,0 +1,25 @@ +# [Command] _policy set-definition list_ + +Retrieve policy set definitions. + +Retrieve the list of all policy set definitions in the given subscription or management group. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucw==/2024-05-01.xml) **Stable** + + + + + +#### examples + +- List policy set definitions + ```bash + policy set-definition list + ``` + +- List policy set definitions at management group level + ```bash + policy set-definition list --management-group MyManagementGroup + ``` diff --git a/Commands/policy/set-definition/_show.md b/Commands/policy/set-definition/_show.md new file mode 100644 index 000000000..dee6a3f62 --- /dev/null +++ b/Commands/policy/set-definition/_show.md @@ -0,0 +1,24 @@ +# [Command] _policy set-definition show_ + +Retrieve a policy set definition. + +Retrieve and show the details of the policy set definition in the given subscription or management group with the given name. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucy97fQ==/2024-05-01.xml) **Stable** + + + + +#### examples + +- Retrieve a policy set definition at management group level + ```bash + policy set-definition show --management-group MyManagementGroup --name CostManagement + ``` + +- Retrieve a policy set definition + ```bash + policy set-definition show --name CostManagement + ``` diff --git a/Commands/policy/set-definition/_update.md b/Commands/policy/set-definition/_update.md new file mode 100644 index 000000000..53c72c93d --- /dev/null +++ b/Commands/policy/set-definition/_update.md @@ -0,0 +1,24 @@ +# [Command] _policy set-definition update_ + +Update a policy set definition. + +Update the policy set definition in the given subscription or management group with the given name by applying the given properties. + +## Versions + +### [2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucy97fQ==/2024-05-01.xml) **Stable** + + + + +#### examples + +- Update a policy set definition + ```bash + policy set-definition update --definitions '[ { 'policyDefinitionId': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/storagePolicy' } ]' --name MyPolicySetDefinition + ``` + +- Update the groups and definitions within a policy set definition + ```bash + policy set-definition update -n computeRequirements --definitions "[ { 'policyDefinitionId': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/storagePolicy', 'groupNames': [ 'CostSaving', 'Organizational' ] }, { 'policyDefinitionId': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/tagPolicy', 'groupNames': [ 'Organizational' ] } ]" --definition-groups "[{ 'name': 'CostSaving' }, { 'name': 'Organizational' } ]" + ``` diff --git a/Commands/policy/set-definition/readme.md b/Commands/policy/set-definition/readme.md new file mode 100644 index 000000000..038fa5620 --- /dev/null +++ b/Commands/policy/set-definition/readme.md @@ -0,0 +1,22 @@ +# [Group] _policy set-definition_ + +Manage policy set definitions. + +Manage policy set definitions, which are collections of policy definitions. + +## Commands + +- [create](/Commands/policy/set-definition/_create.md) +: Create a policy set definition. + +- [delete](/Commands/policy/set-definition/_delete.md) +: Delete a policy set definition. + +- [list](/Commands/policy/set-definition/_list.md) +: Retrieve policy set definitions. + +- [show](/Commands/policy/set-definition/_show.md) +: Retrieve a policy set definition. + +- [update](/Commands/policy/set-definition/_update.md) +: Update a policy set definition. diff --git a/Commands/readme.md b/Commands/readme.md index c4934a7c4..f852dfbf0 100644 --- a/Commands/readme.md +++ b/Commands/readme.md @@ -269,6 +269,9 @@ - [playwright-testing](/Commands/playwright-testing/readme.md) : Manage Microsoft Playwright Testing service +- [policy](/Commands/policy/readme.md) +: Manage resources defined and used by the Azure Policy service. + - [portal](/Commands/portal/readme.md) : Manage Portal. diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucw==/2024-05-01.json b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucw==/2024-05-01.json new file mode 100644 index 000000000..093f35526 --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucw==/2024-05-01.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/providers/microsoft.authorization/policydefinitions", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lEZWZpbml0aW9ucw==/V/MjAyNC0wNS0wMQ=="}, {"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policydefinitions", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeURlZmluaXRpb25z/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policydefinitions", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5RGVmaW5pdGlvbnM=/V/MjAyNC0wNS0wMQ=="}], "commandGroups": [{"name": "policy definition", "commands": [{"name": "list", "version": "2024-05-01", "resources": [{"id": "/providers/microsoft.authorization/policydefinitions", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lEZWZpbml0aW9ucw==/V/MjAyNC0wNS0wMQ=="}, {"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policydefinitions", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeURlZmluaXRpb25z/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policydefinitions", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5RGVmaW5pdGlvbnM=/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.managementGroupId", "options": ["management-group"], "group": "", "help": {"short": "The management group.", "lines": ["The management group with the given name whose policy definitions are to be listed."]}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "group": "", "idPart": "subscription", "help": {"short": "The subscription name or ID.", "lines": ["The subscription with the given name or ID whose policy definitions are to be listed."]}}, {"type": "string", "var": "$Query.filter", "options": ["filter"], "group": "", "help": {"short": "Filter list results.", "lines": ["The filter to limit list results. Valid values are: 'atScope()', 'atExactScope()', 'atScopeAndBelow()' or 'policyDefinitionId eq '{value}''. If filter is not provided, no filtering is performed. If filter atScope() is provided, the returned list includes all policy assignments that apply to the given scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If filter atExactScope() is provided, the returned list includes all policy assignments at the given scope. If filter atScopeAndBelow() is provided, the returned list includes all policy assignments at the given scope and those in sub scopes contained within the given scope. If filter policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value}."]}}, {"type": "integer32", "var": "$Query.top", "options": ["top"], "hide": true, "group": "", "help": {"short": "Maximum number of items to include in the list. If not provided, the list will be limited to 500 items."}, "configurationKey": "Maximum items to list.", "format": {"maximum": 1000, "minimum": 1}}]}], "conditions": [{"var": "$Condition_PolicyDefinitions_ListBuiltIn", "operator": {"type": "and", "operators": [{"type": "not", "operator": {"type": "hasValue", "arg": "$Path.managementGroupId"}}, {"type": "not", "operator": {"type": "hasValue", "arg": "$Path.subscriptionId"}}]}}, {"var": "$Condition_PolicyDefinitions_ListByManagementGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.managementGroupId"}]}}, {"var": "$Condition_PolicyDefinitions_List", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_PolicyDefinitions_ListBuiltIn"], "operationId": "PolicyDefinitions_ListBuiltIn", "http": {"path": "/providers/Microsoft.Authorization/policyDefinitions", "request": {"method": "get", "query": {"params": [{"type": "string", "name": "$filter", "arg": "$Query.filter"}, {"type": "integer32", "name": "$top", "arg": "$Query.top", "format": {"maximum": 1000, "minimum": 1}}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"default": {"value": "Indexed"}, "type": "string", "name": "mode"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "object", "name": "policyRule", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicyDefinitions_ListByManagementGroup"], "operationId": "PolicyDefinitions_ListByManagementGroup", "http": {"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "managementGroupId", "arg": "$Path.managementGroupId", "required": true}]}, "query": {"params": [{"type": "string", "name": "$filter", "arg": "$Query.filter"}, {"type": "integer32", "name": "$top", "arg": "$Query.top", "format": {"maximum": 1000, "minimum": 1}}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"default": {"value": "Indexed"}, "type": "string", "name": "mode"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "object", "name": "policyRule", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicyDefinitions_List"], "operationId": "PolicyDefinitions_List", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions", "request": {"method": "get", "path": {"params": [{"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "$filter", "arg": "$Query.filter"}, {"type": "integer32", "name": "$top", "arg": "$Query.top", "format": {"maximum": 1000, "minimum": 1}}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"default": {"value": "Indexed"}, "type": "string", "name": "mode"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "object", "name": "policyRule", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucw==/2024-05-01.xml b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucw==/2024-05-01.xml new file mode 100644 index 000000000..48b29b820 --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucw==/2024-05-01.xml @@ -0,0 +1,442 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucw==/2024-05-01.json b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucw==/2024-05-01.json new file mode 100644 index 000000000..abd5b6837 --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucw==/2024-05-01.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/providers/microsoft.authorization/policysetdefinitions", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lTZXREZWZpbml0aW9ucw==/V/MjAyNC0wNS0wMQ=="}, {"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policysetdefinitions", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeVNldERlZmluaXRpb25z/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policysetdefinitions", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5U2V0RGVmaW5pdGlvbnM=/V/MjAyNC0wNS0wMQ=="}], "commandGroups": [{"name": "policy set-definition", "commands": [{"name": "list", "version": "2024-05-01", "resources": [{"id": "/providers/microsoft.authorization/policysetdefinitions", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lTZXREZWZpbml0aW9ucw==/V/MjAyNC0wNS0wMQ=="}, {"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policysetdefinitions", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeVNldERlZmluaXRpb25z/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policysetdefinitions", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5U2V0RGVmaW5pdGlvbnM=/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.managementGroupId", "options": ["management-group"], "group": "", "help": {"short": "The management group.", "lines": ["The management group with the given name whose policy set definitions are to be listed."]}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "group": "", "idPart": "subscription", "help": {"short": "The subscription name or ID.", "lines": ["The subscription with the given name or ID whose policy set definitions are to be listed."]}}, {"type": "string", "var": "$Query.expand", "options": ["expand"], "group": "", "help": {"short": "Additional properties to include in output", "lines": ["Comma-separated list of additional properties to include in the command output. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'."]}}, {"type": "string", "var": "$Query.filter", "options": ["filter"], "group": "", "help": {"short": "Filter list results.", "lines": ["The filter to limit list results. Valid values are: 'atScope()', 'atExactScope()', 'atScopeAndBelow()' or 'policyDefinitionId eq '{value}''. If filter is not provided, no filtering is performed. If filter atScope() is provided, the returned list includes all policy assignments that apply to the given scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If filter atExactScope() is provided, the returned list includes all policy assignments at the given scope. If filter atScopeAndBelow() is provided, the returned list includes all policy assignments at the given scope and those in sub scopes contained within the given scope. If filter policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value}."]}}, {"type": "integer32", "var": "$Query.top", "options": ["top"], "hide": true, "group": "", "help": {"short": "Maximum number of items to include in the list. If not provided, the list will be limited to 500 items."}, "configurationKey": "Maximum items to list.", "format": {"maximum": 1000, "minimum": 1}}]}], "conditions": [{"var": "$Condition_PolicySetDefinitions_ListBuiltIn", "operator": {"type": "and", "operators": [{"type": "not", "operator": {"type": "hasValue", "arg": "$Path.managementGroupId"}}, {"type": "not", "operator": {"type": "hasValue", "arg": "$Path.subscriptionId"}}]}}, {"var": "$Condition_PolicySetDefinitions_ListByManagementGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.managementGroupId"}]}}, {"var": "$Condition_PolicySetDefinitions_List", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_PolicySetDefinitions_ListBuiltIn"], "operationId": "PolicySetDefinitions_ListBuiltIn", "http": {"path": "/providers/Microsoft.Authorization/policySetDefinitions", "request": {"method": "get", "query": {"params": [{"type": "string", "name": "$expand", "arg": "$Query.expand"}, {"type": "string", "name": "$filter", "arg": "$Query.filter"}, {"type": "integer32", "name": "$top", "arg": "$Query.top", "format": {"maximum": 1000, "minimum": 1}}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "array", "name": "policyDefinitionGroups", "item": {"type": "object", "props": [{"type": "string", "name": "additionalMetadataId"}, {"type": "string", "name": "category"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "name", "required": true}]}, "identifiers": ["name"]}, {"type": "array", "name": "policyDefinitions", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "definitionVersion"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"type": "array", "name": "groupNames", "item": {"type": "string"}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["policyDefinitionReferenceId"]}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicySetDefinitions_ListByManagementGroup"], "operationId": "PolicySetDefinitions_ListByManagementGroup", "http": {"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "managementGroupId", "arg": "$Path.managementGroupId", "required": true}]}, "query": {"params": [{"type": "string", "name": "$expand", "arg": "$Query.expand"}, {"type": "string", "name": "$filter", "arg": "$Query.filter"}, {"type": "integer32", "name": "$top", "arg": "$Query.top", "format": {"maximum": 1000, "minimum": 1}}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "array", "name": "policyDefinitionGroups", "item": {"type": "object", "props": [{"type": "string", "name": "additionalMetadataId"}, {"type": "string", "name": "category"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "name", "required": true}]}, "identifiers": ["name"]}, {"type": "array", "name": "policyDefinitions", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "definitionVersion"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"type": "array", "name": "groupNames", "item": {"type": "string"}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["policyDefinitionReferenceId"]}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicySetDefinitions_List"], "operationId": "PolicySetDefinitions_List", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions", "request": {"method": "get", "path": {"params": [{"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "$expand", "arg": "$Query.expand"}, {"type": "string", "name": "$filter", "arg": "$Query.filter"}, {"type": "integer32", "name": "$top", "arg": "$Query.top", "format": {"maximum": 1000, "minimum": 1}}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "array", "name": "policyDefinitionGroups", "item": {"type": "object", "props": [{"type": "string", "name": "additionalMetadataId"}, {"type": "string", "name": "category"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "name", "required": true}]}, "identifiers": ["name"]}, {"type": "array", "name": "policyDefinitions", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "definitionVersion"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"type": "array", "name": "groupNames", "item": {"type": "string"}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["policyDefinitionReferenceId"]}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucw==/2024-05-01.xml b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucw==/2024-05-01.xml new file mode 100644 index 000000000..2c9122c59 --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucw==/2024-05-01.xml @@ -0,0 +1,508 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lhc3NpZ25tZW50cw==/2024-05-01.json b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lhc3NpZ25tZW50cw==/2024-05-01.json new file mode 100644 index 000000000..187bfaf23 --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lhc3NpZ25tZW50cw==/2024-05-01.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policyassignments", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUFzc2lnbm1lbnRz/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policyassignments", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5QXNzaWdubWVudHM=/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.authorization/policyassignments", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lBc3NpZ25tZW50cw==/V/MjAyNC0wNS0wMQ=="}], "commandGroups": [{"name": "policy assignment", "commands": [{"name": "list", "version": "2024-05-01", "resources": [{"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policyassignments", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUFzc2lnbm1lbnRz/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policyassignments", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5QXNzaWdubWVudHM=/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.authorization/policyassignments", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lBc3NpZ25tZW50cw==/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.managementGroupId", "options": ["management-group"], "group": "", "help": {"short": "The management group.", "lines": ["Indicates that policy assignments whose scope covers the management group with the given name are to be listed."]}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "group": "", "idPart": "resource_group", "help": {"short": "The resource group.", "lines": ["Indicates that policy assignments whose scope covers the resource group with the given name are to be listed."]}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "group": "", "idPart": "subscription", "help": {"short": "The subscription name or ID", "lines": ["Indicates that policy assignments whose scope covers the subscription with the given name or ID are to be listed."]}}, {"type": "string", "var": "$Query.expand", "options": ["expand"], "group": "", "help": {"short": "Additional properties to include in output", "lines": ["Comma-separated list of additional properties to include in the command output. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'."]}}, {"type": "string", "var": "$Query.filter", "options": ["filter"], "group": "", "help": {"short": "Filter list results.", "lines": ["The filter to limit list results. Valid values are: 'atScope()', 'atExactScope()', 'atScopeAndBelow()' or 'policyDefinitionId eq '{value}''. If filter is not provided, no filtering is performed. If filter atScope() is provided, the returned list includes all policy assignments that apply to the given scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If filter atExactScope() is provided, the returned list includes all policy assignments at the given scope. If filter atScopeAndBelow() is provided, the returned list includes all policy assignments at the given scope and those in sub scopes contained within the given scope. If filter policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value}."]}}, {"type": "integer32", "var": "$Query.top", "options": ["top"], "hide": true, "group": "", "help": {"short": "Maximum number of items to include in the list. If not provided, the list will be limited to 500 items."}, "configurationKey": "Maximum items to list.", "format": {"maximum": 1000, "minimum": 1}}]}], "conditions": [{"var": "$Condition_PolicyAssignments_ListForManagementGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.managementGroupId"}]}}, {"var": "$Condition_PolicyAssignments_List", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.subscriptionId"}, {"type": "not", "operator": {"type": "hasValue", "arg": "$Path.resourceGroupName"}}]}}, {"var": "$Condition_PolicyAssignments_ListForResourceGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.resourceGroupName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_PolicyAssignments_ListForManagementGroup"], "operationId": "PolicyAssignments_ListForManagementGroup", "http": {"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyAssignments", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "managementGroupId", "arg": "$Path.managementGroupId", "required": true}]}, "query": {"params": [{"type": "string", "name": "$expand", "arg": "$Query.expand"}, {"type": "string", "name": "$filter", "arg": "$Query.filter"}, {"type": "integer32", "name": "$top", "arg": "$Query.top", "format": {"maximum": 1000, "minimum": 1}}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}, {"type": "string", "name": "value"}]}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}], "cls": "Selector_read"}}]}}, {"readOnly": true, "type": "string", "name": "scope"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicyAssignments_List"], "operationId": "PolicyAssignments_List", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments", "request": {"method": "get", "path": {"params": [{"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "$expand", "arg": "$Query.expand"}, {"type": "string", "name": "$filter", "arg": "$Query.filter"}, {"type": "integer32", "name": "$top", "arg": "$Query.top", "format": {"maximum": 1000, "minimum": 1}}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}, {"type": "string", "name": "value"}]}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}]}}, {"readOnly": true, "type": "string", "name": "scope"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicyAssignments_ListForResourceGroup"], "operationId": "PolicyAssignments_ListForResourceGroup", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "$expand", "arg": "$Query.expand"}, {"type": "string", "name": "$filter", "arg": "$Query.filter"}, {"type": "integer32", "name": "$top", "arg": "$Query.top", "format": {"maximum": 1000, "minimum": 1}}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}, {"type": "string", "name": "value"}]}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}]}}, {"readOnly": true, "type": "string", "name": "scope"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lhc3NpZ25tZW50cw==/2024-05-01.xml b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lhc3NpZ25tZW50cw==/2024-05-01.xml new file mode 100644 index 000000000..7b71c3624 --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lhc3NpZ25tZW50cw==/2024-05-01.xml @@ -0,0 +1,528 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucw==/2024-05-01.md b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucw==/2024-05-01.md new file mode 100644 index 000000000..70bef9c98 --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucw==/2024-05-01.md @@ -0,0 +1 @@ +Reference [/providers/microsoft.authorization/policydefinitions 2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucw==/2024-05-01.xml) diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucy97fQ==/2024-05-01.json b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucy97fQ==/2024-05-01.json new file mode 100644 index 000000000..f6c90ef79 --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucy97fQ==/2024-05-01.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policydefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeURlZmluaXRpb25zL3twb2xpY3lEZWZpbml0aW9uTmFtZX0=/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policydefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5RGVmaW5pdGlvbnMve3BvbGljeURlZmluaXRpb25OYW1lfQ==/V/MjAyNC0wNS0wMQ=="}], "commandGroups": [{"name": "policy definition", "commands": [{"name": "show", "version": "2024-05-01", "resources": [{"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policydefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeURlZmluaXRpb25zL3twb2xpY3lEZWZpbml0aW9uTmFtZX0=/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policydefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5RGVmaW5pdGlvbnMve3BvbGljeURlZmluaXRpb25OYW1lfQ==/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.managementGroupId", "options": ["management-group"], "group": "", "help": {"short": "The management group.", "lines": ["The management group with the given name where the policy definition resides."]}}, {"type": "string", "var": "$Path.policyDefinitionName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy definition."}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "group": "", "idPart": "subscription", "help": {"short": "The subscription name or ID.", "lines": ["The subscription with the given name or ID where the policy definition resides."]}}]}], "conditions": [{"var": "$Condition_PolicyDefinitions_GetAtManagementGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.managementGroupId"}, {"type": "hasValue", "arg": "$Path.policyDefinitionName"}]}}, {"var": "$Condition_PolicyDefinitions_Get", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.policyDefinitionName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_PolicyDefinitions_GetAtManagementGroup"], "operationId": "PolicyDefinitions_GetAtManagementGroup", "http": {"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "managementGroupId", "arg": "$Path.managementGroupId", "required": true}, {"type": "string", "name": "policyDefinitionName", "arg": "$Path.policyDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"default": {"value": "Indexed"}, "type": "string", "name": "mode"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "object", "name": "policyRule", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicyDefinitions_Get"], "operationId": "PolicyDefinitions_Get", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policyDefinitionName", "arg": "$Path.policyDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"default": {"value": "Indexed"}, "type": "string", "name": "mode"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "object", "name": "policyRule", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2024-05-01", "resources": [{"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policydefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeURlZmluaXRpb25zL3twb2xpY3lEZWZpbml0aW9uTmFtZX0=/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policydefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5RGVmaW5pdGlvbnMve3BvbGljeURlZmluaXRpb25OYW1lfQ==/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.managementGroupId", "options": ["management-group"], "group": "", "help": {"short": "The management group.", "lines": ["The management group with the given name where the policy definition resides."]}}, {"type": "string", "var": "$Path.policyDefinitionName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy definition."}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "group": "", "idPart": "subscription", "help": {"short": "The subscription name or ID.", "lines": ["The subscription with the given name or ID where the policy definition resides."]}}]}], "conditions": [{"var": "$Condition_PolicyDefinitions_DeleteAtManagementGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.managementGroupId"}, {"type": "hasValue", "arg": "$Path.policyDefinitionName"}]}}, {"var": "$Condition_PolicyDefinitions_Delete", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.policyDefinitionName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_PolicyDefinitions_DeleteAtManagementGroup"], "operationId": "PolicyDefinitions_DeleteAtManagementGroup", "http": {"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "managementGroupId", "arg": "$Path.managementGroupId", "required": true}, {"type": "string", "name": "policyDefinitionName", "arg": "$Path.policyDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicyDefinitions_Delete"], "operationId": "PolicyDefinitions_Delete", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "policyDefinitionName", "arg": "$Path.policyDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "confirmation": ""}, {"name": "create", "version": "2024-05-01", "resources": [{"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policydefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeURlZmluaXRpb25zL3twb2xpY3lEZWZpbml0aW9uTmFtZX0=/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policydefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5RGVmaW5pdGlvbnMve3BvbGljeURlZmluaXRpb25OYW1lfQ==/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.managementGroupId", "options": ["management-group"], "group": "", "help": {"short": "The management group.", "lines": ["The management group with the given name is where the policy definition will reside. It can be assigned only at scopes at or below this management group."]}}, {"type": "string", "var": "$Path.policyDefinitionName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy definition."}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "group": "", "idPart": "subscription", "help": {"short": "The subscription name or ID.", "lines": ["The subscription with the given name or ID is where the policy definition will reside. It can be assigned only at scopes at or below this subscription."]}}]}, {"name": "Properties", "args": [{"type": "string", "var": "$parameters.properties.description", "options": ["description"], "group": "Properties", "help": {"short": "Policy definition description.", "lines": ["Full description of the policy definition."]}}, {"type": "string", "var": "$parameters.properties.displayName", "options": ["display-name"], "group": "Properties", "help": {"short": "The display name of the policy definition.", "lines": ["The display name of the policy definition is not part of its ID, allowing for longer and more flexible naming."]}}, {"type": "object", "var": "$parameters.properties.metadata", "options": ["metadata"], "group": "Properties", "help": {"short": "The policy definition metadata.", "lines": ["The policy definition metadata. Metadata is an open-ended object and is typically a collection of key value pairs."]}, "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "var": "$parameters.properties.mode", "options": ["m", "mode"], "group": "Properties", "help": {"short": "The policy definition mode.", "lines": ["The policy definition mode. Valid values for control plane policy definitions: All, Indexed. The mode 'Indexed' indicates the policy should be evaluated only for resource types that support tags and location. Some examples for data plane policy definitions: Microsoft.KeyVault.Data, Microsoft.Network.Data."]}, "default": {"value": "Indexed"}}, {"type": "object", "var": "$parameters.properties.parameters", "options": ["p", "params"], "group": "Properties", "help": {"short": "The policy rule parameter definitions.", "lines": ["The definitions for parameters used in the policy rule. The keys are the parameter names."]}, "additionalProps": {"item": {"type": "object", "args": [{"type": "array", "var": "$parameters.properties.parameters{}.allowedValues", "options": ["allowed-values"], "help": {"short": "The allowed values for the parameter."}, "item": {"type": "any"}}, {"type": "any", "var": "$parameters.properties.parameters{}.defaultValue", "options": ["default-value"], "help": {"short": "The default value for the parameter if no value is provided."}}, {"type": "object", "var": "$parameters.properties.parameters{}.metadata", "options": ["metadata"], "help": {"short": "General metadata for the parameter."}, "args": [{"type": "boolean", "var": "$parameters.properties.parameters{}.metadata.assignPermissions", "options": ["assign-permissions"], "help": {"short": "Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope."}}, {"type": "string", "var": "$parameters.properties.parameters{}.metadata.description", "options": ["description"], "help": {"short": "The description of the parameter."}}, {"type": "string", "var": "$parameters.properties.parameters{}.metadata.displayName", "options": ["display-name"], "help": {"short": "The display name for the parameter."}}, {"type": "string", "var": "$parameters.properties.parameters{}.metadata.strongType", "options": ["strong-type"], "help": {"short": "Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from."}}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "var": "$parameters.properties.parameters{}.schema", "options": ["schema"], "help": {"short": "Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/."}, "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "var": "$parameters.properties.parameters{}.type", "options": ["type"], "help": {"short": "The data type of the parameter."}, "enum": {"items": [{"name": "Array", "value": "Array"}, {"name": "Boolean", "value": "Boolean"}, {"name": "DateTime", "value": "DateTime"}, {"name": "Float", "value": "Float"}, {"name": "Integer", "value": "Integer"}, {"name": "Object", "value": "Object"}, {"name": "String", "value": "String"}]}}]}}}, {"type": "object", "var": "$parameters.properties.policyRule", "options": ["rule", "rules"], "group": "Properties", "help": {"short": "The policy rule."}, "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "var": "$parameters.properties.policyType", "options": ["policy-type"], "hide": true, "group": "Properties", "help": {"short": "The type of policy set definition. Possible values are NotSpecified, BuiltIn, Custom, and Static."}, "enum": {"items": [{"name": "BuiltIn", "value": "BuiltIn"}, {"name": "Custom", "value": "Custom"}, {"name": "NotSpecified", "value": "NotSpecified"}, {"name": "Static", "value": "Static"}]}}, {"type": "string", "var": "$parameters.properties.version", "options": ["version"], "group": "Properties", "help": {"short": "The policy definition version.", "lines": ["The policy definition version in #.#.# format."]}}, {"type": "array", "var": "$parameters.properties.versions", "options": ["versions"], "hide": true, "group": "Properties", "help": {"short": "A list of available versions for this policy definition."}, "item": {"type": "string"}}]}], "conditions": [{"var": "$Condition_PolicyDefinitions_CreateOrUpdateAtManagementGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.managementGroupId"}, {"type": "hasValue", "arg": "$Path.policyDefinitionName"}]}}, {"var": "$Condition_PolicyDefinitions_CreateOrUpdate", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.policyDefinitionName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_PolicyDefinitions_CreateOrUpdateAtManagementGroup"], "operationId": "PolicyDefinitions_CreateOrUpdateAtManagementGroup", "http": {"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "managementGroupId", "arg": "$Path.managementGroupId", "required": true}, {"type": "string", "name": "policyDefinitionName", "arg": "$Path.policyDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "string", "name": "description", "arg": "$parameters.properties.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.displayName"}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.metadata", "additionalProps": {"item": {"type": "any"}}}, {"default": {"value": "Indexed"}, "type": "string", "name": "mode", "arg": "$parameters.properties.mode"}, {"type": "object", "name": "parameters", "arg": "$parameters.properties.parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "arg": "$parameters.properties.parameters{}.allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue", "arg": "$parameters.properties.parameters{}.defaultValue"}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.parameters{}.metadata", "props": [{"type": "boolean", "name": "assignPermissions", "arg": "$parameters.properties.parameters{}.metadata.assignPermissions"}, {"type": "string", "name": "description", "arg": "$parameters.properties.parameters{}.metadata.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.parameters{}.metadata.displayName"}, {"type": "string", "name": "strongType", "arg": "$parameters.properties.parameters{}.metadata.strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "arg": "$parameters.properties.parameters{}.schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "arg": "$parameters.properties.parameters{}.type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "object", "name": "policyRule", "arg": "$parameters.properties.policyRule", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyType", "arg": "$parameters.properties.policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version", "arg": "$parameters.properties.version"}, {"type": "array", "name": "versions", "arg": "$parameters.properties.versions", "item": {"type": "string"}}], "clientFlatten": true}], "clientFlatten": true}}}}, "responses": [{"statusCode": [201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"default": {"value": "Indexed"}, "type": "string", "name": "mode"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "object", "name": "policyRule", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicyDefinitions_CreateOrUpdate"], "operationId": "PolicyDefinitions_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "policyDefinitionName", "arg": "$Path.policyDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "string", "name": "description", "arg": "$parameters.properties.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.displayName"}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.metadata", "additionalProps": {"item": {"type": "any"}}}, {"default": {"value": "Indexed"}, "type": "string", "name": "mode", "arg": "$parameters.properties.mode"}, {"type": "object", "name": "parameters", "arg": "$parameters.properties.parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "arg": "$parameters.properties.parameters{}.allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue", "arg": "$parameters.properties.parameters{}.defaultValue"}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.parameters{}.metadata", "props": [{"type": "boolean", "name": "assignPermissions", "arg": "$parameters.properties.parameters{}.metadata.assignPermissions"}, {"type": "string", "name": "description", "arg": "$parameters.properties.parameters{}.metadata.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.parameters{}.metadata.displayName"}, {"type": "string", "name": "strongType", "arg": "$parameters.properties.parameters{}.metadata.strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "arg": "$parameters.properties.parameters{}.schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "arg": "$parameters.properties.parameters{}.type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "object", "name": "policyRule", "arg": "$parameters.properties.policyRule", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyType", "arg": "$parameters.properties.policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version", "arg": "$parameters.properties.version"}, {"type": "array", "name": "versions", "arg": "$parameters.properties.versions", "item": {"type": "string"}}], "clientFlatten": true}], "clientFlatten": true}}}}, "responses": [{"statusCode": [201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"default": {"value": "Indexed"}, "type": "string", "name": "mode"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "object", "name": "policyRule", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2024-05-01", "resources": [{"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policydefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeURlZmluaXRpb25zL3twb2xpY3lEZWZpbml0aW9uTmFtZX0=/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policydefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5RGVmaW5pdGlvbnMve3BvbGljeURlZmluaXRpb25OYW1lfQ==/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.managementGroupId", "options": ["management-group"], "group": "", "help": {"short": "The management group.", "lines": ["The management group with the given name where the policy definition resides."]}}, {"type": "string", "var": "$Path.policyDefinitionName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy definition."}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "group": "", "idPart": "subscription", "help": {"short": "The subscription name or ID.", "lines": ["The subscription with the given name or ID where the policy definition resides."]}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.description", "options": ["description"], "group": "Properties", "help": {"short": "Policy definition description.", "lines": ["Full description of the policy definition."]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.displayName", "options": ["display-name"], "group": "Properties", "help": {"short": "The display name of the policy definition.", "lines": ["The display name of the policy definition is not part of its ID, allowing for longer and more flexible naming."]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.metadata", "options": ["metadata"], "group": "Properties", "help": {"short": "The policy definition metadata.", "lines": ["The policy definition metadata. Metadata is an open-ended object and is typically a collection of key value pairs."]}, "additionalProps": {"item": {"nullable": true, "type": "any"}}}, {"nullable": true, "type": "string", "var": "$parameters.properties.mode", "options": ["m", "mode"], "group": "Properties", "help": {"short": "The policy definition mode.", "lines": ["The policy definition mode. Valid values for control plane policy definitions: All, Indexed. The mode 'Indexed' indicates the policy should be evaluated only for resource types that support tags and location. Some examples for data plane policy definitions: Microsoft.KeyVault.Data, Microsoft.Network.Data."]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.parameters", "options": ["p", "params"], "group": "Properties", "help": {"short": "The policy rule parameter definitions.", "lines": ["The definitions for parameters used in the policy rule. The keys are the parameter names."]}, "additionalProps": {"item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.parameters{}.allowedValues", "options": ["allowed-values"], "help": {"short": "The allowed values for the parameter."}, "item": {"nullable": true, "type": "any"}}, {"nullable": true, "type": "any", "var": "$parameters.properties.parameters{}.defaultValue", "options": ["default-value"], "help": {"short": "The default value for the parameter if no value is provided."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.parameters{}.metadata", "options": ["metadata"], "help": {"short": "General metadata for the parameter."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.parameters{}.metadata.assignPermissions", "options": ["assign-permissions"], "help": {"short": "Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.parameters{}.metadata.description", "options": ["description"], "help": {"short": "The description of the parameter."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.parameters{}.metadata.displayName", "options": ["display-name"], "help": {"short": "The display name for the parameter."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.parameters{}.metadata.strongType", "options": ["strong-type"], "help": {"short": "Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from."}}], "additionalProps": {"item": {"nullable": true, "type": "object", "additionalProps": {"item": {"nullable": true, "type": "any"}}}}}, {"nullable": true, "type": "object", "var": "$parameters.properties.parameters{}.schema", "options": ["schema"], "help": {"short": "Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/."}, "additionalProps": {"item": {"nullable": true, "type": "any"}}}, {"nullable": true, "type": "string", "var": "$parameters.properties.parameters{}.type", "options": ["type"], "help": {"short": "The data type of the parameter."}, "enum": {"items": [{"name": "Array", "value": "Array"}, {"name": "Boolean", "value": "Boolean"}, {"name": "DateTime", "value": "DateTime"}, {"name": "Float", "value": "Float"}, {"name": "Integer", "value": "Integer"}, {"name": "Object", "value": "Object"}, {"name": "String", "value": "String"}]}}]}}}, {"nullable": true, "type": "object", "var": "$parameters.properties.policyRule", "options": ["rule", "rules"], "group": "Properties", "help": {"short": "The policy rule."}, "additionalProps": {"item": {"nullable": true, "type": "any"}}}, {"nullable": true, "type": "string", "var": "$parameters.properties.policyType", "options": ["policy-type"], "hide": true, "group": "Properties", "help": {"short": "The type of policy set definition. Possible values are NotSpecified, BuiltIn, Custom, and Static."}, "enum": {"items": [{"name": "BuiltIn", "value": "BuiltIn"}, {"name": "Custom", "value": "Custom"}, {"name": "NotSpecified", "value": "NotSpecified"}, {"name": "Static", "value": "Static"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.version", "options": ["version"], "group": "Properties", "help": {"short": "The policy definition version.", "lines": ["The policy definition version in #.#.# format."]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.versions", "options": ["versions"], "hide": true, "group": "Properties", "help": {"short": "A list of available versions for this policy definition."}, "item": {"nullable": true, "type": "string"}}]}], "conditions": [{"var": "$Condition_PolicyDefinitions_GetAtManagementGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.managementGroupId"}, {"type": "hasValue", "arg": "$Path.policyDefinitionName"}]}}, {"var": "$Condition_PolicyDefinitions_Get", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.policyDefinitionName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}, {"var": "$Condition_PolicyDefinitions_CreateOrUpdateAtManagementGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.managementGroupId"}, {"type": "hasValue", "arg": "$Path.policyDefinitionName"}]}}, {"var": "$Condition_PolicyDefinitions_CreateOrUpdate", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.policyDefinitionName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_PolicyDefinitions_GetAtManagementGroup"], "operationId": "PolicyDefinitions_GetAtManagementGroup", "http": {"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "managementGroupId", "arg": "$Path.managementGroupId", "required": true}, {"type": "string", "name": "policyDefinitionName", "arg": "$Path.policyDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"default": {"value": "Indexed"}, "type": "string", "name": "mode"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "object", "name": "policyRule", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "PolicyDefinition_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicyDefinitions_Get"], "operationId": "PolicyDefinitions_Get", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policyDefinitionName", "arg": "$Path.policyDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "@PolicyDefinition_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "string", "name": "description", "arg": "$parameters.properties.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.displayName"}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.metadata", "additionalProps": {"item": {"type": "any"}}}, {"default": {"value": "Indexed"}, "type": "string", "name": "mode", "arg": "$parameters.properties.mode"}, {"type": "object", "name": "parameters", "arg": "$parameters.properties.parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "arg": "$parameters.properties.parameters{}.allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue", "arg": "$parameters.properties.parameters{}.defaultValue"}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.parameters{}.metadata", "props": [{"type": "boolean", "name": "assignPermissions", "arg": "$parameters.properties.parameters{}.metadata.assignPermissions"}, {"type": "string", "name": "description", "arg": "$parameters.properties.parameters{}.metadata.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.parameters{}.metadata.displayName"}, {"type": "string", "name": "strongType", "arg": "$parameters.properties.parameters{}.metadata.strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "arg": "$parameters.properties.parameters{}.schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "arg": "$parameters.properties.parameters{}.type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "object", "name": "policyRule", "arg": "$parameters.properties.policyRule", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyType", "arg": "$parameters.properties.policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version", "arg": "$parameters.properties.version"}, {"type": "array", "name": "versions", "arg": "$parameters.properties.versions", "item": {"type": "string"}}], "clientFlatten": true}], "clientFlatten": true}}}}, {"when": ["$Condition_PolicyDefinitions_CreateOrUpdateAtManagementGroup"], "operationId": "PolicyDefinitions_CreateOrUpdateAtManagementGroup", "http": {"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "managementGroupId", "arg": "$Path.managementGroupId", "required": true}, {"type": "string", "name": "policyDefinitionName", "arg": "$Path.policyDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [201], "body": {"json": {"var": "$Instance", "schema": {"type": "@PolicyDefinition_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicyDefinitions_CreateOrUpdate"], "operationId": "PolicyDefinitions_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "policyDefinitionName", "arg": "$Path.policyDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [201], "body": {"json": {"var": "$Instance", "schema": {"type": "@PolicyDefinition_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucy97fQ==/2024-05-01.xml b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucy97fQ==/2024-05-01.xml new file mode 100644 index 000000000..949eef64c --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucy97fQ==/2024-05-01.xml @@ -0,0 +1,1331 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lleGVtcHRpb25z/2022-07-01-preview.json b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lleGVtcHRpb25z/2022-07-01-preview.json new file mode 100644 index 000000000..3156e3e0b --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lleGVtcHRpb25z/2022-07-01-preview.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policyexemptions", "version": "2022-07-01-preview", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUV4ZW1wdGlvbnM=/V/MjAyMi0wNy0wMS1wcmV2aWV3"}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policyexemptions", "version": "2022-07-01-preview", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5RXhlbXB0aW9ucw==/V/MjAyMi0wNy0wMS1wcmV2aWV3"}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.authorization/policyexemptions", "version": "2022-07-01-preview", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lFeGVtcHRpb25z/V/MjAyMi0wNy0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "policy exemption", "commands": [{"name": "list", "version": "2022-07-01-preview", "resources": [{"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policyexemptions", "version": "2022-07-01-preview", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUV4ZW1wdGlvbnM=/V/MjAyMi0wNy0wMS1wcmV2aWV3"}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policyexemptions", "version": "2022-07-01-preview", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5RXhlbXB0aW9ucw==/V/MjAyMi0wNy0wMS1wcmV2aWV3"}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.authorization/policyexemptions", "version": "2022-07-01-preview", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lFeGVtcHRpb25z/V/MjAyMi0wNy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.managementGroupId", "options": ["management-group"], "group": "", "help": {"short": "The management group.", "lines": ["Indicates that policy exemptions whose scope covers the management group with the given name should be listed."]}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "group": "", "idPart": "resource_group", "help": {"short": "The resource group.", "lines": ["Indicates that policy exemptions whose scope covers the resource group with the given name are to be listed."]}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "group": "", "idPart": "subscription", "help": {"short": "The subscription name or ID", "lines": ["Indicates that policy exemptions whose scope covers the subscription with the given name or ID should be included in the list."]}}, {"type": "string", "var": "$Query.filter", "options": ["filter"], "group": "", "help": {"short": "Filter list results.", "lines": ["The filter to limit list results. Valid values are: 'atScope()', 'atExactScope()', 'atScopeAndBelow()' or 'policyDefinitionId eq '{value}''. If filter is not provided, no filtering is performed. If filter atScope() is provided, the returned list includes all policy assignments that apply to the given scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If filter atExactScope() is provided, the returned list includes all policy assignments at the given scope. If filter atScopeAndBelow() is provided, the returned list includes all policy assignments at the given scope and those in sub scopes contained within the given scope. If filter policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value}."]}}]}], "conditions": [{"var": "$Condition_PolicyExemptions_ListForManagementGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.managementGroupId"}]}}, {"var": "$Condition_PolicyExemptions_List", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.subscriptionId"}, {"type": "not", "operator": {"type": "hasValue", "arg": "$Path.resourceGroupName"}}]}}, {"var": "$Condition_PolicyExemptions_ListForResourceGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.resourceGroupName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_PolicyExemptions_ListForManagementGroup"], "operationId": "PolicyExemptions_ListForManagementGroup", "http": {"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyExemptions", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "managementGroupId", "arg": "$Path.managementGroupId", "required": true}]}, "query": {"params": [{"type": "string", "name": "$filter", "arg": "$Query.filter"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-07-01-preview"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/{scope}/providers/Microsoft.Authorization/policyExemptions/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": "Default"}, "type": "string", "name": "assignmentScopeValidation", "enum": {"items": [{"value": "Default"}, {"value": "DoNotValidate"}]}}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "exemptionCategory", "required": true, "enum": {"items": [{"value": "Mitigated"}, {"value": "Waiver"}]}}, {"type": "dateTime", "name": "expiresOn"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyAssignmentId", "required": true}, {"type": "array", "name": "policyDefinitionReferenceIds", "item": {"type": "string"}}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}]}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicyExemptions_List"], "operationId": "PolicyExemptions_List", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyExemptions", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "$filter", "arg": "$Query.filter"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-07-01-preview"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/{scope}/providers/Microsoft.Authorization/policyExemptions/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": "Default"}, "type": "string", "name": "assignmentScopeValidation", "enum": {"items": [{"value": "Default"}, {"value": "DoNotValidate"}]}}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "exemptionCategory", "required": true, "enum": {"items": [{"value": "Mitigated"}, {"value": "Waiver"}]}}, {"type": "dateTime", "name": "expiresOn"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyAssignmentId", "required": true}, {"type": "array", "name": "policyDefinitionReferenceIds", "item": {"type": "string"}}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}]}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicyExemptions_ListForResourceGroup"], "operationId": "PolicyExemptions_ListForResourceGroup", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyExemptions", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "$filter", "arg": "$Query.filter"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-07-01-preview"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/{scope}/providers/Microsoft.Authorization/policyExemptions/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": "Default"}, "type": "string", "name": "assignmentScopeValidation", "enum": {"items": [{"value": "Default"}, {"value": "DoNotValidate"}]}}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "exemptionCategory", "required": true, "enum": {"items": [{"value": "Mitigated"}, {"value": "Waiver"}]}}, {"type": "dateTime", "name": "expiresOn"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyAssignmentId", "required": true}, {"type": "array", "name": "policyDefinitionReferenceIds", "item": {"type": "string"}}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}]}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lleGVtcHRpb25z/2022-07-01-preview.xml b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lleGVtcHRpb25z/2022-07-01-preview.xml new file mode 100644 index 000000000..71300beaf --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lleGVtcHRpb25z/2022-07-01-preview.xml @@ -0,0 +1,386 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucw==/2024-05-01.md b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucw==/2024-05-01.md new file mode 100644 index 000000000..e1314fde5 --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucw==/2024-05-01.md @@ -0,0 +1 @@ +Reference [/providers/microsoft.authorization/policysetdefinitions 2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucw==/2024-05-01.xml) diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucy97fQ==/2024-05-01.json b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucy97fQ==/2024-05-01.json new file mode 100644 index 000000000..6975390ea --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucy97fQ==/2024-05-01.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policysetdefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeVNldERlZmluaXRpb25zL3twb2xpY3lTZXREZWZpbml0aW9uTmFtZX0=/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policysetdefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5U2V0RGVmaW5pdGlvbnMve3BvbGljeVNldERlZmluaXRpb25OYW1lfQ==/V/MjAyNC0wNS0wMQ=="}], "commandGroups": [{"name": "policy set-definition", "commands": [{"name": "show", "version": "2024-05-01", "resources": [{"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policysetdefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeVNldERlZmluaXRpb25zL3twb2xpY3lTZXREZWZpbml0aW9uTmFtZX0=/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policysetdefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5U2V0RGVmaW5pdGlvbnMve3BvbGljeVNldERlZmluaXRpb25OYW1lfQ==/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.managementGroupId", "options": ["management-group"], "group": "", "help": {"short": "The management group.", "lines": ["The management group with the given name where the policy set definition resides."]}}, {"type": "string", "var": "$Path.policySetDefinitionName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy set definition."}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "group": "", "idPart": "subscription", "help": {"short": "The subscription name or ID.", "lines": ["The subscription with the given name or ID where the policy set definition resides."]}}, {"type": "string", "var": "$Query.expand", "options": ["expand"], "group": "", "help": {"short": "Additional properties to include in output", "lines": ["Comma-separated list of additional properties to include in the command output. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'."]}}]}], "conditions": [{"var": "$Condition_PolicySetDefinitions_GetAtManagementGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.managementGroupId"}, {"type": "hasValue", "arg": "$Path.policySetDefinitionName"}]}}, {"var": "$Condition_PolicySetDefinitions_Get", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.policySetDefinitionName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_PolicySetDefinitions_GetAtManagementGroup"], "operationId": "PolicySetDefinitions_GetAtManagementGroup", "http": {"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "managementGroupId", "arg": "$Path.managementGroupId", "required": true}, {"type": "string", "name": "policySetDefinitionName", "arg": "$Path.policySetDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}]}, "query": {"params": [{"type": "string", "name": "$expand", "arg": "$Query.expand"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "array", "name": "policyDefinitionGroups", "item": {"type": "object", "props": [{"type": "string", "name": "additionalMetadataId"}, {"type": "string", "name": "category"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "name", "required": true}]}, "identifiers": ["name"]}, {"type": "array", "name": "policyDefinitions", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "definitionVersion"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"type": "array", "name": "groupNames", "item": {"type": "string"}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["policyDefinitionReferenceId"]}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicySetDefinitions_Get"], "operationId": "PolicySetDefinitions_Get", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policySetDefinitionName", "arg": "$Path.policySetDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "$expand", "arg": "$Query.expand"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "array", "name": "policyDefinitionGroups", "item": {"type": "object", "props": [{"type": "string", "name": "additionalMetadataId"}, {"type": "string", "name": "category"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "name", "required": true}]}, "identifiers": ["name"]}, {"type": "array", "name": "policyDefinitions", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "definitionVersion"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"type": "array", "name": "groupNames", "item": {"type": "string"}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["policyDefinitionReferenceId"]}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2024-05-01", "resources": [{"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policysetdefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeVNldERlZmluaXRpb25zL3twb2xpY3lTZXREZWZpbml0aW9uTmFtZX0=/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policysetdefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5U2V0RGVmaW5pdGlvbnMve3BvbGljeVNldERlZmluaXRpb25OYW1lfQ==/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.managementGroupId", "options": ["management-group"], "group": "", "help": {"short": "The management group.", "lines": ["The management group with the given name where the policy set definition resides."]}}, {"type": "string", "var": "$Path.policySetDefinitionName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy set definition."}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "group": "", "idPart": "subscription", "help": {"short": "The subscription name or ID.", "lines": ["The subscription with the given name or ID where the policy set definition resides."]}}]}], "conditions": [{"var": "$Condition_PolicySetDefinitions_DeleteAtManagementGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.managementGroupId"}, {"type": "hasValue", "arg": "$Path.policySetDefinitionName"}]}}, {"var": "$Condition_PolicySetDefinitions_Delete", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.policySetDefinitionName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_PolicySetDefinitions_DeleteAtManagementGroup"], "operationId": "PolicySetDefinitions_DeleteAtManagementGroup", "http": {"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "managementGroupId", "arg": "$Path.managementGroupId", "required": true}, {"type": "string", "name": "policySetDefinitionName", "arg": "$Path.policySetDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicySetDefinitions_Delete"], "operationId": "PolicySetDefinitions_Delete", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "policySetDefinitionName", "arg": "$Path.policySetDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "confirmation": ""}, {"name": "create", "version": "2024-05-01", "resources": [{"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policysetdefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeVNldERlZmluaXRpb25zL3twb2xpY3lTZXREZWZpbml0aW9uTmFtZX0=/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policysetdefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5U2V0RGVmaW5pdGlvbnMve3BvbGljeVNldERlZmluaXRpb25OYW1lfQ==/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.managementGroupId", "options": ["management-group"], "group": "", "help": {"short": "The management group.", "lines": ["The management group with the given name is where the policy definition will reside. It can be assigned only at scopes at or below this management group."]}}, {"type": "string", "var": "$Path.policySetDefinitionName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy set definition."}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "group": "", "idPart": "subscription", "help": {"short": "The subscription name or ID.", "lines": ["The subscription with the given name or ID is where the policy set definition will reside. It can be assigned only at scopes at or below this subscription."]}}]}, {"name": "Properties", "args": [{"type": "string", "var": "$parameters.properties.description", "options": ["description"], "group": "Properties", "help": {"short": "Policy set definition description.", "lines": ["Full description of the policy set definition."]}}, {"type": "string", "var": "$parameters.properties.displayName", "options": ["display-name"], "group": "Properties", "help": {"short": "The display name of the policy set definition.", "lines": ["The display name of the policy set definition is not part of its ID, allowing for longer and more flexible naming."]}}, {"type": "object", "var": "$parameters.properties.metadata", "options": ["metadata"], "group": "Properties", "help": {"short": "The policy set definition metadata.", "lines": ["The policy set definition metadata. Metadata is an open-ended object and is typically a collection of key value pairs."]}, "additionalProps": {"item": {"type": "any"}}}, {"type": "object", "var": "$parameters.properties.parameters", "options": ["p", "params"], "group": "Properties", "help": {"short": "The policy set definition parameter definitions.", "lines": ["The definitions for parameters used in the policy rule. The keys are the parameter names."]}, "additionalProps": {"item": {"type": "object", "args": [{"type": "array", "var": "$parameters.properties.parameters{}.allowedValues", "options": ["allowed-values"], "help": {"short": "The allowed values for the parameter."}, "item": {"type": "any"}}, {"type": "any", "var": "$parameters.properties.parameters{}.defaultValue", "options": ["default-value"], "help": {"short": "The default value for the parameter if no value is provided."}}, {"type": "object", "var": "$parameters.properties.parameters{}.metadata", "options": ["metadata"], "help": {"short": "General metadata for the parameter."}, "args": [{"type": "boolean", "var": "$parameters.properties.parameters{}.metadata.assignPermissions", "options": ["assign-permissions"], "help": {"short": "Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope."}}, {"type": "string", "var": "$parameters.properties.parameters{}.metadata.description", "options": ["description"], "help": {"short": "The description of the parameter."}}, {"type": "string", "var": "$parameters.properties.parameters{}.metadata.displayName", "options": ["display-name"], "help": {"short": "The display name for the parameter."}}, {"type": "string", "var": "$parameters.properties.parameters{}.metadata.strongType", "options": ["strong-type"], "help": {"short": "Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from."}}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "var": "$parameters.properties.parameters{}.schema", "options": ["schema"], "help": {"short": "Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/."}, "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "var": "$parameters.properties.parameters{}.type", "options": ["type"], "help": {"short": "The data type of the parameter."}, "enum": {"items": [{"name": "Array", "value": "Array"}, {"name": "Boolean", "value": "Boolean"}, {"name": "DateTime", "value": "DateTime"}, {"name": "Float", "value": "Float"}, {"name": "Integer", "value": "Integer"}, {"name": "Object", "value": "Object"}, {"name": "String", "value": "String"}]}}]}}}, {"type": "array", "var": "$parameters.properties.policyDefinitionGroups", "options": ["definition-groups"], "group": "Properties", "help": {"short": "The metadata describing groups of policy definition references within the policy set definition."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.policyDefinitionGroups[].additionalMetadataId", "options": ["additional-metadata-id"], "help": {"short": "A resource ID of a resource that contains additional metadata about the group."}}, {"type": "string", "var": "$parameters.properties.policyDefinitionGroups[].category", "options": ["category"], "help": {"short": "The group's category."}}, {"type": "string", "var": "$parameters.properties.policyDefinitionGroups[].description", "options": ["description"], "help": {"short": "The group's description."}}, {"type": "string", "var": "$parameters.properties.policyDefinitionGroups[].displayName", "options": ["display-name"], "help": {"short": "The group's display name."}}, {"type": "string", "var": "$parameters.properties.policyDefinitionGroups[].name", "options": ["name"], "required": true, "help": {"short": "The name of the group."}}]}}, {"type": "array", "var": "$parameters.properties.policyDefinitions", "options": ["definitions"], "group": "Properties", "help": {"short": "An array of policy definition references."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.policyDefinitions[].definitionVersion", "options": ["definition-version"], "help": {"short": "The version of the policy definition to use."}}, {"type": "array", "var": "$parameters.properties.policyDefinitions[].groupNames", "options": ["group-names"], "help": {"short": "The name of the groups that this policy definition reference belongs to."}, "item": {"type": "string"}}, {"type": "object", "var": "$parameters.properties.policyDefinitions[].parameters", "options": ["parameters"], "help": {"short": "The parameter values for the referenced policy rule. The keys are the parameter names."}, "additionalProps": {"item": {"type": "object", "args": [{"type": "any", "var": "$parameters.properties.policyDefinitions[].parameters{}.value", "options": ["value"], "help": {"short": "The value of the parameter."}}]}}}, {"type": "string", "var": "$parameters.properties.policyDefinitions[].policyDefinitionId", "options": ["policy-definition-id"], "required": true, "help": {"short": "The ID of the policy definition or policy set definition."}}, {"type": "string", "var": "$parameters.properties.policyDefinitions[].policyDefinitionReferenceId", "options": ["policy-definition-reference-id"], "help": {"short": "A unique id (within the policy set definition) for this policy definition reference."}}]}}, {"type": "string", "var": "$parameters.properties.policyType", "options": ["policy-type"], "hide": true, "group": "Properties", "help": {"short": "The type of policy set definition. Possible values are NotSpecified, BuiltIn, Custom, and Static."}, "enum": {"items": [{"name": "BuiltIn", "value": "BuiltIn"}, {"name": "Custom", "value": "Custom"}, {"name": "NotSpecified", "value": "NotSpecified"}, {"name": "Static", "value": "Static"}]}}, {"type": "string", "var": "$parameters.properties.version", "options": ["version"], "group": "Properties", "help": {"short": "The policy set definition version.", "lines": ["The policy set definition version in #.#.# format."]}}, {"type": "array", "var": "$parameters.properties.versions", "options": ["versions"], "hide": true, "group": "Properties", "help": {"short": "A list of available versions for this policy definition."}, "item": {"type": "string"}}]}], "conditions": [{"var": "$Condition_PolicySetDefinitions_CreateOrUpdateAtManagementGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.managementGroupId"}, {"type": "hasValue", "arg": "$Path.policySetDefinitionName"}]}}, {"var": "$Condition_PolicySetDefinitions_CreateOrUpdate", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.policySetDefinitionName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_PolicySetDefinitions_CreateOrUpdateAtManagementGroup"], "operationId": "PolicySetDefinitions_CreateOrUpdateAtManagementGroup", "http": {"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "managementGroupId", "arg": "$Path.managementGroupId", "required": true}, {"type": "string", "name": "policySetDefinitionName", "arg": "$Path.policySetDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "string", "name": "description", "arg": "$parameters.properties.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.displayName"}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "object", "name": "parameters", "arg": "$parameters.properties.parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "arg": "$parameters.properties.parameters{}.allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue", "arg": "$parameters.properties.parameters{}.defaultValue"}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.parameters{}.metadata", "props": [{"type": "boolean", "name": "assignPermissions", "arg": "$parameters.properties.parameters{}.metadata.assignPermissions"}, {"type": "string", "name": "description", "arg": "$parameters.properties.parameters{}.metadata.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.parameters{}.metadata.displayName"}, {"type": "string", "name": "strongType", "arg": "$parameters.properties.parameters{}.metadata.strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "arg": "$parameters.properties.parameters{}.schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "arg": "$parameters.properties.parameters{}.type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "array", "name": "policyDefinitionGroups", "arg": "$parameters.properties.policyDefinitionGroups", "item": {"type": "object", "props": [{"type": "string", "name": "additionalMetadataId", "arg": "$parameters.properties.policyDefinitionGroups[].additionalMetadataId"}, {"type": "string", "name": "category", "arg": "$parameters.properties.policyDefinitionGroups[].category"}, {"type": "string", "name": "description", "arg": "$parameters.properties.policyDefinitionGroups[].description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.policyDefinitionGroups[].displayName"}, {"type": "string", "name": "name", "arg": "$parameters.properties.policyDefinitionGroups[].name", "required": true}]}, "identifiers": ["name"]}, {"type": "array", "name": "policyDefinitions", "arg": "$parameters.properties.policyDefinitions", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "definitionVersion", "arg": "$parameters.properties.policyDefinitions[].definitionVersion"}, {"type": "array", "name": "groupNames", "arg": "$parameters.properties.policyDefinitions[].groupNames", "item": {"type": "string"}}, {"type": "object", "name": "parameters", "arg": "$parameters.properties.policyDefinitions[].parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value", "arg": "$parameters.properties.policyDefinitions[].parameters{}.value"}]}}}, {"type": "string", "name": "policyDefinitionId", "arg": "$parameters.properties.policyDefinitions[].policyDefinitionId", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId", "arg": "$parameters.properties.policyDefinitions[].policyDefinitionReferenceId"}]}, "identifiers": ["policyDefinitionReferenceId"]}, {"type": "string", "name": "policyType", "arg": "$parameters.properties.policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version", "arg": "$parameters.properties.version"}, {"type": "array", "name": "versions", "arg": "$parameters.properties.versions", "item": {"type": "string"}}], "clientFlatten": true}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "array", "name": "policyDefinitionGroups", "item": {"type": "object", "props": [{"type": "string", "name": "additionalMetadataId"}, {"type": "string", "name": "category"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "name", "required": true}]}, "identifiers": ["name"]}, {"type": "array", "name": "policyDefinitions", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "definitionVersion"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"type": "array", "name": "groupNames", "item": {"type": "string"}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["policyDefinitionReferenceId"]}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicySetDefinitions_CreateOrUpdate"], "operationId": "PolicySetDefinitions_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "policySetDefinitionName", "arg": "$Path.policySetDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "string", "name": "description", "arg": "$parameters.properties.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.displayName"}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "object", "name": "parameters", "arg": "$parameters.properties.parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "arg": "$parameters.properties.parameters{}.allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue", "arg": "$parameters.properties.parameters{}.defaultValue"}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.parameters{}.metadata", "props": [{"type": "boolean", "name": "assignPermissions", "arg": "$parameters.properties.parameters{}.metadata.assignPermissions"}, {"type": "string", "name": "description", "arg": "$parameters.properties.parameters{}.metadata.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.parameters{}.metadata.displayName"}, {"type": "string", "name": "strongType", "arg": "$parameters.properties.parameters{}.metadata.strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "arg": "$parameters.properties.parameters{}.schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "arg": "$parameters.properties.parameters{}.type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "array", "name": "policyDefinitionGroups", "arg": "$parameters.properties.policyDefinitionGroups", "item": {"type": "object", "props": [{"type": "string", "name": "additionalMetadataId", "arg": "$parameters.properties.policyDefinitionGroups[].additionalMetadataId"}, {"type": "string", "name": "category", "arg": "$parameters.properties.policyDefinitionGroups[].category"}, {"type": "string", "name": "description", "arg": "$parameters.properties.policyDefinitionGroups[].description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.policyDefinitionGroups[].displayName"}, {"type": "string", "name": "name", "arg": "$parameters.properties.policyDefinitionGroups[].name", "required": true}]}, "identifiers": ["name"]}, {"type": "array", "name": "policyDefinitions", "arg": "$parameters.properties.policyDefinitions", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "definitionVersion", "arg": "$parameters.properties.policyDefinitions[].definitionVersion"}, {"type": "array", "name": "groupNames", "arg": "$parameters.properties.policyDefinitions[].groupNames", "item": {"type": "string"}}, {"type": "object", "name": "parameters", "arg": "$parameters.properties.policyDefinitions[].parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value", "arg": "$parameters.properties.policyDefinitions[].parameters{}.value"}]}}}, {"type": "string", "name": "policyDefinitionId", "arg": "$parameters.properties.policyDefinitions[].policyDefinitionId", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId", "arg": "$parameters.properties.policyDefinitions[].policyDefinitionReferenceId"}]}, "identifiers": ["policyDefinitionReferenceId"]}, {"type": "string", "name": "policyType", "arg": "$parameters.properties.policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version", "arg": "$parameters.properties.version"}, {"type": "array", "name": "versions", "arg": "$parameters.properties.versions", "item": {"type": "string"}}], "clientFlatten": true}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "array", "name": "policyDefinitionGroups", "item": {"type": "object", "props": [{"type": "string", "name": "additionalMetadataId"}, {"type": "string", "name": "category"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "name", "required": true}]}, "identifiers": ["name"]}, {"type": "array", "name": "policyDefinitions", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "definitionVersion"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"type": "array", "name": "groupNames", "item": {"type": "string"}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["policyDefinitionReferenceId"]}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2024-05-01", "resources": [{"id": "/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policysetdefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL3ttYW5hZ2VtZW50R3JvdXBJZH0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeVNldERlZmluaXRpb25zL3twb2xpY3lTZXREZWZpbml0aW9uTmFtZX0=/V/MjAyNC0wNS0wMQ=="}, {"id": "/subscriptions/{}/providers/microsoft.authorization/policysetdefinitions/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5U2V0RGVmaW5pdGlvbnMve3BvbGljeVNldERlZmluaXRpb25OYW1lfQ==/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.managementGroupId", "options": ["management-group"], "group": "", "help": {"short": "The management group.", "lines": ["The management group with the given name where the policy set definition resides."]}}, {"type": "string", "var": "$Path.policySetDefinitionName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy set definition."}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "group": "", "idPart": "subscription", "help": {"short": "The subscription name or ID.", "lines": ["The subscription with the given name or ID where the policy set definition resides."]}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.description", "options": ["description"], "group": "Properties", "help": {"short": "Policy set definition description.", "lines": ["Full description of the policy set definition."]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.displayName", "options": ["display-name"], "group": "Properties", "help": {"short": "The display name of the policy set definition.", "lines": ["The display name of the policy set definition is not part of its ID, allowing for longer and more flexible naming."]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.metadata", "options": ["metadata"], "group": "Properties", "help": {"short": "The policy set definition metadata.", "lines": ["The policy set definition metadata. Metadata is an open-ended object and is typically a collection of key value pairs."]}, "additionalProps": {"item": {"nullable": true, "type": "any"}}}, {"nullable": true, "type": "object", "var": "$parameters.properties.parameters", "options": ["p", "params"], "group": "Properties", "help": {"short": "The policy set definition parameter definitions.", "lines": ["The definitions for parameters used in the policy rule. The keys are the parameter names."]}, "additionalProps": {"item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.parameters{}.allowedValues", "options": ["allowed-values"], "help": {"short": "The allowed values for the parameter."}, "item": {"nullable": true, "type": "any"}}, {"nullable": true, "type": "any", "var": "$parameters.properties.parameters{}.defaultValue", "options": ["default-value"], "help": {"short": "The default value for the parameter if no value is provided."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.parameters{}.metadata", "options": ["metadata"], "help": {"short": "General metadata for the parameter."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.parameters{}.metadata.assignPermissions", "options": ["assign-permissions"], "help": {"short": "Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.parameters{}.metadata.description", "options": ["description"], "help": {"short": "The description of the parameter."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.parameters{}.metadata.displayName", "options": ["display-name"], "help": {"short": "The display name for the parameter."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.parameters{}.metadata.strongType", "options": ["strong-type"], "help": {"short": "Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from."}}], "additionalProps": {"item": {"nullable": true, "type": "object", "additionalProps": {"item": {"nullable": true, "type": "any"}}}}}, {"nullable": true, "type": "object", "var": "$parameters.properties.parameters{}.schema", "options": ["schema"], "help": {"short": "Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/."}, "additionalProps": {"item": {"nullable": true, "type": "any"}}}, {"nullable": true, "type": "string", "var": "$parameters.properties.parameters{}.type", "options": ["type"], "help": {"short": "The data type of the parameter."}, "enum": {"items": [{"name": "Array", "value": "Array"}, {"name": "Boolean", "value": "Boolean"}, {"name": "DateTime", "value": "DateTime"}, {"name": "Float", "value": "Float"}, {"name": "Integer", "value": "Integer"}, {"name": "Object", "value": "Object"}, {"name": "String", "value": "String"}]}}]}}}, {"nullable": true, "type": "array", "var": "$parameters.properties.policyDefinitionGroups", "options": ["definition-groups"], "group": "Properties", "help": {"short": "The metadata describing groups of policy definition references within the policy set definition."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.policyDefinitionGroups[].additionalMetadataId", "options": ["additional-metadata-id"], "help": {"short": "A resource ID of a resource that contains additional metadata about the group."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.policyDefinitionGroups[].category", "options": ["category"], "help": {"short": "The group's category."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.policyDefinitionGroups[].description", "options": ["description"], "help": {"short": "The group's description."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.policyDefinitionGroups[].displayName", "options": ["display-name"], "help": {"short": "The group's display name."}}, {"type": "string", "var": "$parameters.properties.policyDefinitionGroups[].name", "options": ["name"], "help": {"short": "The name of the group."}}]}}, {"type": "array", "var": "$parameters.properties.policyDefinitions", "options": ["definitions"], "group": "Properties", "help": {"short": "An array of policy definition references."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.policyDefinitions[].definitionVersion", "options": ["definition-version"], "help": {"short": "The version of the policy definition to use."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.policyDefinitions[].groupNames", "options": ["group-names"], "help": {"short": "The name of the groups that this policy definition reference belongs to."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "object", "var": "$parameters.properties.policyDefinitions[].parameters", "options": ["parameters"], "help": {"short": "The parameter values for the referenced policy rule. The keys are the parameter names."}, "additionalProps": {"item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "any", "var": "$parameters.properties.policyDefinitions[].parameters{}.value", "options": ["value"], "help": {"short": "The value of the parameter."}}]}}}, {"type": "string", "var": "$parameters.properties.policyDefinitions[].policyDefinitionId", "options": ["policy-definition-id"], "help": {"short": "The ID of the policy definition or policy set definition."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.policyDefinitions[].policyDefinitionReferenceId", "options": ["policy-definition-reference-id"], "help": {"short": "A unique id (within the policy set definition) for this policy definition reference."}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.policyType", "options": ["policy-type"], "hide": true, "group": "Properties", "help": {"short": "The type of policy set definition. Possible values are NotSpecified, BuiltIn, Custom, and Static."}, "enum": {"items": [{"name": "BuiltIn", "value": "BuiltIn"}, {"name": "Custom", "value": "Custom"}, {"name": "NotSpecified", "value": "NotSpecified"}, {"name": "Static", "value": "Static"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.version", "options": ["version"], "group": "Properties", "help": {"short": "The policy set definition version.", "lines": ["The policy set definition version in #.#.# format."]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.versions", "options": ["versions"], "hide": true, "group": "Properties", "help": {"short": "A list of available versions for this policy definition."}, "item": {"nullable": true, "type": "string"}}]}], "conditions": [{"var": "$Condition_PolicySetDefinitions_GetAtManagementGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.managementGroupId"}, {"type": "hasValue", "arg": "$Path.policySetDefinitionName"}]}}, {"var": "$Condition_PolicySetDefinitions_Get", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.policySetDefinitionName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}, {"var": "$Condition_PolicySetDefinitions_CreateOrUpdateAtManagementGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.managementGroupId"}, {"type": "hasValue", "arg": "$Path.policySetDefinitionName"}]}}, {"var": "$Condition_PolicySetDefinitions_CreateOrUpdate", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.policySetDefinitionName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_PolicySetDefinitions_GetAtManagementGroup"], "operationId": "PolicySetDefinitions_GetAtManagementGroup", "http": {"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "managementGroupId", "arg": "$Path.managementGroupId", "required": true}, {"type": "string", "name": "policySetDefinitionName", "arg": "$Path.policySetDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue"}, {"type": "object", "name": "metadata", "props": [{"type": "boolean", "name": "assignPermissions"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "array", "name": "policyDefinitionGroups", "item": {"type": "object", "props": [{"type": "string", "name": "additionalMetadataId"}, {"type": "string", "name": "category"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "name", "required": true}]}, "identifiers": ["name"]}, {"type": "array", "name": "policyDefinitions", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "definitionVersion"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"type": "array", "name": "groupNames", "item": {"type": "string"}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["policyDefinitionReferenceId"]}, {"type": "string", "name": "policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version"}, {"type": "array", "name": "versions", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "PolicySetDefinition_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicySetDefinitions_Get"], "operationId": "PolicySetDefinitions_Get", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policySetDefinitionName", "arg": "$Path.policySetDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "@PolicySetDefinition_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "string", "name": "description", "arg": "$parameters.properties.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.displayName"}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "object", "name": "parameters", "arg": "$parameters.properties.parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "array", "name": "allowedValues", "arg": "$parameters.properties.parameters{}.allowedValues", "item": {"type": "any"}}, {"type": "any", "name": "defaultValue", "arg": "$parameters.properties.parameters{}.defaultValue"}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.parameters{}.metadata", "props": [{"type": "boolean", "name": "assignPermissions", "arg": "$parameters.properties.parameters{}.metadata.assignPermissions"}, {"type": "string", "name": "description", "arg": "$parameters.properties.parameters{}.metadata.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.parameters{}.metadata.displayName"}, {"type": "string", "name": "strongType", "arg": "$parameters.properties.parameters{}.metadata.strongType"}], "additionalProps": {"item": {"type": "object", "additionalProps": {"item": {"type": "any"}}}}}, {"type": "object", "name": "schema", "arg": "$parameters.properties.parameters{}.schema", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "type", "arg": "$parameters.properties.parameters{}.type", "enum": {"items": [{"value": "Array"}, {"value": "Boolean"}, {"value": "DateTime"}, {"value": "Float"}, {"value": "Integer"}, {"value": "Object"}, {"value": "String"}]}}]}}}, {"type": "array", "name": "policyDefinitionGroups", "arg": "$parameters.properties.policyDefinitionGroups", "item": {"type": "object", "props": [{"type": "string", "name": "additionalMetadataId", "arg": "$parameters.properties.policyDefinitionGroups[].additionalMetadataId"}, {"type": "string", "name": "category", "arg": "$parameters.properties.policyDefinitionGroups[].category"}, {"type": "string", "name": "description", "arg": "$parameters.properties.policyDefinitionGroups[].description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.policyDefinitionGroups[].displayName"}, {"type": "string", "name": "name", "arg": "$parameters.properties.policyDefinitionGroups[].name", "required": true}]}, "identifiers": ["name"]}, {"type": "array", "name": "policyDefinitions", "arg": "$parameters.properties.policyDefinitions", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "definitionVersion", "arg": "$parameters.properties.policyDefinitions[].definitionVersion"}, {"type": "array", "name": "groupNames", "arg": "$parameters.properties.policyDefinitions[].groupNames", "item": {"type": "string"}}, {"type": "object", "name": "parameters", "arg": "$parameters.properties.policyDefinitions[].parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value", "arg": "$parameters.properties.policyDefinitions[].parameters{}.value"}]}}}, {"type": "string", "name": "policyDefinitionId", "arg": "$parameters.properties.policyDefinitions[].policyDefinitionId", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId", "arg": "$parameters.properties.policyDefinitions[].policyDefinitionReferenceId"}]}, "identifiers": ["policyDefinitionReferenceId"]}, {"type": "string", "name": "policyType", "arg": "$parameters.properties.policyType", "enum": {"items": [{"value": "BuiltIn"}, {"value": "Custom"}, {"value": "NotSpecified"}, {"value": "Static"}]}}, {"type": "string", "name": "version", "arg": "$parameters.properties.version"}, {"type": "array", "name": "versions", "arg": "$parameters.properties.versions", "item": {"type": "string"}}], "clientFlatten": true}], "clientFlatten": true}}}}, {"when": ["$Condition_PolicySetDefinitions_CreateOrUpdateAtManagementGroup"], "operationId": "PolicySetDefinitions_CreateOrUpdateAtManagementGroup", "http": {"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "managementGroupId", "arg": "$Path.managementGroupId", "required": true}, {"type": "string", "name": "policySetDefinitionName", "arg": "$Path.policySetDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@PolicySetDefinition_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_PolicySetDefinitions_CreateOrUpdate"], "operationId": "PolicySetDefinitions_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "policySetDefinitionName", "arg": "$Path.policySetDefinitionName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@PolicySetDefinition_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucy97fQ==/2024-05-01.xml b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucy97fQ==/2024-05-01.xml new file mode 100644 index 000000000..d492f7b15 --- /dev/null +++ b/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucy97fQ==/2024-05-01.xml @@ -0,0 +1,1567 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRz/2024-05-01.md b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRz/2024-05-01.md new file mode 100644 index 000000000..a0a226ffe --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRz/2024-05-01.md @@ -0,0 +1 @@ +Reference [/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policyassignments 2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lhc3NpZ25tZW50cw==/2024-05-01.xml) diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWRlZmluaXRpb25z/2024-05-01.md b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWRlZmluaXRpb25z/2024-05-01.md new file mode 100644 index 000000000..70bef9c98 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWRlZmluaXRpb25z/2024-05-01.md @@ -0,0 +1 @@ +Reference [/providers/microsoft.authorization/policydefinitions 2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucw==/2024-05-01.xml) diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWRlZmluaXRpb25zL3t9/2024-05-01.md b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWRlZmluaXRpb25zL3t9/2024-05-01.md new file mode 100644 index 000000000..1de20686d --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWRlZmluaXRpb25zL3t9/2024-05-01.md @@ -0,0 +1 @@ +Reference [/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policydefinitions/{} 2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lkZWZpbml0aW9ucy97fQ==/2024-05-01.xml) diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnM=/2022-07-01-preview.md b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnM=/2022-07-01-preview.md new file mode 100644 index 000000000..ddde16e1a --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnM=/2022-07-01-preview.md @@ -0,0 +1 @@ +Reference [/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policyexemptions 2022-07-01-preview](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lleGVtcHRpb25z/2022-07-01-preview.xml) diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeXNldGRlZmluaXRpb25z/2024-05-01.md b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeXNldGRlZmluaXRpb25z/2024-05-01.md new file mode 100644 index 000000000..e1314fde5 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeXNldGRlZmluaXRpb25z/2024-05-01.md @@ -0,0 +1 @@ +Reference [/providers/microsoft.authorization/policysetdefinitions 2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucw==/2024-05-01.xml) diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeXNldGRlZmluaXRpb25zL3t9/2024-05-01.md b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeXNldGRlZmluaXRpb25zL3t9/2024-05-01.md new file mode 100644 index 000000000..5b27ff13c --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeXNldGRlZmluaXRpb25zL3t9/2024-05-01.md @@ -0,0 +1 @@ +Reference [/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policysetdefinitions/{} 2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lzZXRkZWZpbml0aW9ucy97fQ==/2024-05-01.xml) diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRz/2024-05-01.md b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRz/2024-05-01.md new file mode 100644 index 000000000..a0a226ffe --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRz/2024-05-01.md @@ -0,0 +1 @@ +Reference [/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policyassignments 2024-05-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lhc3NpZ25tZW50cw==/2024-05-01.xml) diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnM=/2022-07-01-preview.md b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnM=/2022-07-01-preview.md new file mode 100644 index 000000000..ddde16e1a --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnM=/2022-07-01-preview.md @@ -0,0 +1 @@ +Reference [/providers/microsoft.management/managementgroups/{}/providers/microsoft.authorization/policyexemptions 2022-07-01-preview](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubWFuYWdlbWVudC9tYW5hZ2VtZW50Z3JvdXBzL3t9L3Byb3ZpZGVycy9taWNyb3NvZnQuYXV0aG9yaXphdGlvbi9wb2xpY3lleGVtcHRpb25z/2022-07-01-preview.xml) diff --git a/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.json b/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.json new file mode 100644 index 000000000..f103059b1 --- /dev/null +++ b/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyassignments/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUFzc2lnbm1lbnRzL3twb2xpY3lBc3NpZ25tZW50TmFtZX0=/V/MjAyNC0wNS0wMQ=="}], "commandGroups": [{"name": "policy assignment", "commands": [{"name": "show", "version": "2024-05-01", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyassignments/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUFzc2lnbm1lbnRzL3twb2xpY3lBc3NpZ25tZW50TmFtZX0=/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyAssignmentName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy assignment.", "lines": ["The name of the policy assignment is the name segment of its resource ID."]}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}, {"type": "string", "var": "$Query.expand", "options": ["expand"], "group": "", "help": {"short": "Additional properties to include in output", "lines": ["Comma-separated list of additional properties to include in the command output. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'."]}}]}], "operations": [{"operationId": "PolicyAssignments_Get", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"params": [{"type": "string", "name": "$expand", "arg": "$Query.expand"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}, {"type": "string", "name": "value"}]}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}], "cls": "Selector_read"}}]}}, {"readOnly": true, "type": "string", "name": "scope"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2024-05-01", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyassignments/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUFzc2lnbm1lbnRzL3twb2xpY3lBc3NpZ25tZW50TmFtZX0=/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyAssignmentName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy assignment.", "lines": ["The name of the policy assignment is the name segment of its resource ID."]}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}]}], "operations": [{"operationId": "PolicyAssignments_Delete", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}, {"type": "string", "name": "value"}]}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}], "cls": "Selector_read"}}]}}, {"readOnly": true, "type": "string", "name": "scope"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "confirmation": ""}, {"name": "create", "version": "2024-05-01", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyassignments/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUFzc2lnbm1lbnRzL3twb2xpY3lBc3NpZ25tZW50TmFtZX0=/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyAssignmentName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy assignment.", "lines": ["The name of the policy assignment is the name segment of its resource ID."]}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}]}, {"name": "Identity", "args": [{"blank": {"value": "True"}, "type": "string", "var": "$parameters.identity.systemAssigned", "options": ["assign-identity", "system-assigned", "mi-system-assigned"], "group": "Identity", "help": {"short": "Sets the system assigned managed identity.", "lines": ["Sets the system assigned managed identity of the policy assignment."]}}, {"type": "string", "var": "$parameters.identity.type", "options": ["type"], "hide": true, "group": "Identity", "help": {"short": "The managed identity type.", "lines": ["The managed identity type is the only required field when adding a system or user assigned identity to a resource."]}, "enum": {"items": [{"name": "None", "value": "None"}, {"name": "SystemAssigned", "value": "SystemAssigned"}, {"name": "UserAssigned", "value": "UserAssigned"}]}}, {"blank": {"value": []}, "type": "array", "var": "$parameters.identity.userAssigned", "options": ["user-assigned", "mi-user-assigned"], "group": "Identity", "help": {"short": "Sets the user assigned managed identity.", "lines": ["Sets the user assigned managed identity of the policy assignment."]}, "item": {"type": "string"}}, {"type": "object", "var": "$parameters.identity.userAssignedIdentities", "options": ["user-assigned-identities"], "hide": true, "group": "Identity", "help": {"short": "The user assigned managed identity.", "lines": ["The user assigned managed identity used by the policy assignment. The user assigned managed identity dictionary keys will be ARM resource ids (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}')."]}, "additionalProps": {"item": {"blank": {"value": {}}, "type": "object"}}}]}, {"name": "Parameters", "args": [{"type": "ResourceLocation", "var": "$parameters.location", "options": ["l", "location"], "group": "Parameters", "help": {"short": "The location of the policy assignment.", "lines": ["The location of the policy assignment is only required when utilizing managed identity."]}}]}, {"name": "Properties", "args": [{"type": "string", "var": "$parameters.properties.assignmentType", "options": ["assignment-type"], "hide": true, "group": "Properties", "help": {"short": "The type of policy assignment. Possible values are NotSpecified, System, SystemHidden, and Custom. Immutable."}, "enum": {"items": [{"name": "Custom", "value": "Custom"}, {"name": "NotSpecified", "value": "NotSpecified"}, {"name": "System", "value": "System"}, {"name": "SystemHidden", "value": "SystemHidden"}]}}, {"type": "string", "var": "$parameters.properties.definitionVersion", "options": ["definition-version"], "group": "Properties", "help": {"short": "The policy version to assign.", "lines": ["The version of the policy definition or policy set definition to assign."]}}, {"type": "string", "var": "$parameters.properties.description", "options": ["description"], "group": "Properties", "help": {"short": "Policy assignment description.", "lines": ["Full description of the policy assignment."]}}, {"type": "string", "var": "$parameters.properties.displayName", "options": ["display-name"], "group": "Properties", "help": {"short": "The display name of the policy assignment.", "lines": ["The display name of the policy assignment is not part of its ID, allowing for longer and more flexible naming."]}}, {"type": "string", "var": "$parameters.properties.enforcementMode", "options": ["e", "enforcement-mode"], "group": "Properties", "help": {"short": "The policy assignment enforcement mode.", "lines": ["The policy assignment enforcement mode. Possible values are Default and DoNotEnforce."]}, "default": {"value": "Default"}, "enum": {"items": [{"name": "Default", "value": "Default"}, {"name": "DoNotEnforce", "value": "DoNotEnforce"}]}}, {"type": "object", "var": "$parameters.properties.metadata", "options": ["metadata"], "group": "Properties", "help": {"short": "The policy assignment metadata.", "lines": ["The policy assignment metadata. Metadata is an open-ended object and is typically a collection of key value pairs."]}, "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "var": "$parameters.properties.notScopes", "options": ["not-scopes"], "group": "Properties", "help": {"short": "The policy assignment excluded scopes.", "lines": ["The collection of scopes within the policy assignment scope that it does not apply to."]}, "item": {"type": "string"}}, {"type": "array", "var": "$parameters.properties.overrides", "options": ["overrides"], "group": "Properties", "help": {"short": "The policy override.", "lines": ["Array of objects that specify resource selector values to use for this assignment."]}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.overrides[].kind", "options": ["kind"], "help": {"short": "The override kind."}, "enum": {"items": [{"name": "definitionVersion", "value": "definitionVersion"}, {"name": "policyEffect", "value": "policyEffect"}]}}, {"type": "array<@Selector_create>", "var": "$parameters.properties.overrides[].selectors", "options": ["selectors"], "help": {"short": "The list of the selector expressions."}, "item": {"type": "@Selector_create"}}, {"type": "string", "var": "$parameters.properties.overrides[].value", "options": ["value"], "help": {"short": "The value to override the policy property."}}]}}, {"type": "object", "var": "$parameters.properties.parameters", "options": ["p", "params"], "group": "Properties", "help": {"short": "The parameter values for the assigned policy rule.", "lines": ["Object or file path containing the policy rule parameter values to be used when assigning the policy definition. The object keys are the parameter names."]}, "additionalProps": {"item": {"type": "object", "args": [{"type": "any", "var": "$parameters.properties.parameters{}.value", "options": ["value"], "help": {"short": "The value of the parameter."}}]}}}, {"type": "string", "var": "$parameters.properties.policyDefinitionId", "options": ["d", "policy-set-definition"], "group": "Properties", "help": {"short": "The policy definition or policy set definition to assign.", "lines": ["The resource ID of the policy definition (format: /{scope}/providers/Microsoft.Authorization/policyDefinitions/{name}) or policy set definition (format: /{scope}/providers/Microsoft.Authorization/policySetDefinitions/{name}) to be assigned."]}}, {"type": "array", "var": "$parameters.properties.resourceSelectors", "options": ["resource-selectors"], "group": "Properties", "help": {"short": "The resource selectors list to filter policies by resource properties.", "lines": ["The collection of resource selector expressions used to filter policy assignment applicability by certain resource property values."]}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.resourceSelectors[].name", "options": ["name"], "help": {"short": "The name of the resource selector."}}, {"type": "array", "var": "$parameters.properties.resourceSelectors[].selectors", "options": ["selectors"], "help": {"short": "The list of the selector expressions."}, "item": {"type": "object", "args": [{"type": "array", "var": "@Selector_create.in", "options": ["in"], "help": {"short": "The list of values to filter in."}, "item": {"type": "string"}}, {"type": "string", "var": "@Selector_create.kind", "options": ["kind"], "help": {"short": "The selector kind."}, "enum": {"items": [{"name": "policyDefinitionReferenceId", "value": "policyDefinitionReferenceId"}, {"name": "resourceLocation", "value": "resourceLocation"}, {"name": "resourceType", "value": "resourceType"}, {"name": "resourceWithoutLocation", "value": "resourceWithoutLocation"}]}}, {"type": "array", "var": "@Selector_create.notIn", "options": ["not-in"], "help": {"short": "The list of values to filter out."}, "item": {"type": "string"}}], "cls": "Selector_create"}}]}}]}, {"name": "non-compliance-message", "args": [{"type": "array", "var": "$parameters.properties.nonComplianceMessages", "options": ["m", "non-compliance-messages"], "group": "non-compliance-message", "help": {"short": "The messages that describe why a resource is non-compliant with the policy."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.nonComplianceMessages[].message", "options": ["m", "message"], "required": true, "group": "", "help": {"short": "A custom non-compliance message.", "lines": ["A message that describes the reasons a resource was determined to be non-compliant. This will be shown in 'deny' error messages and resource non-compliance results."]}}, {"type": "string", "var": "$parameters.properties.nonComplianceMessages[].policyDefinitionReferenceId", "options": ["r", "policy-definition-reference-id"], "group": "", "help": {"short": "The policy definition reference ID.", "lines": ["The policy definition reference ID within a policy set definition the message is intended for. This is only applicable if the policy assignment assigns a policy set definition. If not provided, the message applies to all policy definitions assigned by this policy assignment."]}}]}}]}], "operations": [{"operationId": "PolicyAssignments_Create", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "IdentityObject", "name": "identity", "props": [{"type": "string", "name": "type", "arg": "$parameters.identity.type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "arg": "$parameters.identity.userAssignedIdentities", "additionalProps": {"item": {"type": "object"}}}], "userAssigned": {"action": "create", "type": "array", "name": "userAssigned", "arg": "$parameters.identity.userAssigned", "item": {"action": "create", "type": "string"}}, "systemAssigned": {"action": "create", "type": "string", "name": "systemAssigned", "arg": "$parameters.identity.systemAssigned"}}, {"type": "ResourceLocation", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "arg": "$parameters.properties.assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion", "arg": "$parameters.properties.definitionVersion"}, {"type": "string", "name": "description", "arg": "$parameters.properties.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.displayName"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "arg": "$parameters.properties.enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "arg": "$parameters.properties.nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "arg": "$parameters.properties.nonComplianceMessages[].message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId", "arg": "$parameters.properties.nonComplianceMessages[].policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "arg": "$parameters.properties.notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "arg": "$parameters.properties.overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "arg": "$parameters.properties.overrides[].kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_create>", "name": "selectors", "arg": "$parameters.properties.overrides[].selectors", "item": {"type": "@Selector_create"}}, {"type": "string", "name": "value", "arg": "$parameters.properties.overrides[].value"}]}}, {"type": "object", "name": "parameters", "arg": "$parameters.properties.parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value", "arg": "$parameters.properties.parameters{}.value"}]}}}, {"type": "string", "name": "policyDefinitionId", "arg": "$parameters.properties.policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "arg": "$parameters.properties.resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.resourceSelectors[].name"}, {"type": "array", "name": "selectors", "arg": "$parameters.properties.resourceSelectors[].selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "arg": "@Selector_create.in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "arg": "@Selector_create.kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "arg": "@Selector_create.notIn", "item": {"type": "string"}}], "cls": "Selector_create"}}]}}], "clientFlatten": true}], "clientFlatten": true}}}}, "responses": [{"statusCode": [201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}, {"type": "string", "name": "value"}]}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}], "cls": "Selector_read"}}]}}, {"readOnly": true, "type": "string", "name": "scope"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2024-05-01", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyassignments/{}", "version": "2024-05-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUFzc2lnbm1lbnRzL3twb2xpY3lBc3NpZ25tZW50TmFtZX0=/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyAssignmentName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy assignment.", "lines": ["The name of the policy assignment is the name segment of its resource ID."]}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}]}, {"name": "Identity", "args": [{"nullable": true, "type": "string", "var": "$parameters.identity.type", "options": ["type"], "hide": true, "group": "Identity", "help": {"short": "The managed identity type.", "lines": ["The managed identity type is the only required field when adding a system or user assigned identity to a resource."]}, "enum": {"items": [{"name": "None", "value": "None"}, {"name": "SystemAssigned", "value": "SystemAssigned"}, {"name": "UserAssigned", "value": "UserAssigned"}]}}, {"nullable": true, "type": "object", "var": "$parameters.identity.userAssignedIdentities", "options": ["user-assigned-identities"], "hide": true, "group": "Identity", "help": {"short": "The user assigned managed identity.", "lines": ["The user assigned managed identity used by the policy assignment. The user assigned managed identity dictionary keys will be ARM resource ids (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}')."]}, "additionalProps": {"item": {"nullable": true, "blank": {"value": {}}, "type": "object"}}}]}, {"name": "Parameters", "args": [{"nullable": true, "type": "ResourceLocation", "var": "$parameters.location", "options": ["l", "location"], "group": "Parameters", "help": {"short": "The location of the policy assignment.", "lines": ["The location of the policy assignment is only required when utilizing managed identity."]}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.assignmentType", "options": ["assignment-type"], "hide": true, "group": "Properties", "help": {"short": "The type of policy assignment. Possible values are NotSpecified, System, SystemHidden, and Custom. Immutable."}, "enum": {"items": [{"name": "Custom", "value": "Custom"}, {"name": "NotSpecified", "value": "NotSpecified"}, {"name": "System", "value": "System"}, {"name": "SystemHidden", "value": "SystemHidden"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.definitionVersion", "options": ["definition-version"], "group": "Properties", "help": {"short": "The policy version to assign.", "lines": ["The version of the policy definition or policy set definition to assign."]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.description", "options": ["description"], "group": "Properties", "help": {"short": "Policy assignment description.", "lines": ["Full description of the policy assignment."]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.displayName", "options": ["display-name"], "group": "Properties", "help": {"short": "The display name of the policy assignment.", "lines": ["The display name of the policy assignment is not part of its ID, allowing for longer and more flexible naming."]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.enforcementMode", "options": ["e", "enforcement-mode"], "group": "Properties", "help": {"short": "The policy assignment enforcement mode.", "lines": ["The policy assignment enforcement mode. Possible values are Default and DoNotEnforce."]}, "enum": {"items": [{"name": "Default", "value": "Default"}, {"name": "DoNotEnforce", "value": "DoNotEnforce"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.metadata", "options": ["metadata"], "group": "Properties", "help": {"short": "The policy assignment metadata.", "lines": ["The policy assignment metadata. Metadata is an open-ended object and is typically a collection of key value pairs."]}, "additionalProps": {"item": {"nullable": true, "type": "any"}}}, {"nullable": true, "type": "array", "var": "$parameters.properties.notScopes", "options": ["not-scopes"], "group": "Properties", "help": {"short": "The policy assignment excluded scopes.", "lines": ["The collection of scopes within the policy assignment scope that it does not apply to."]}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.overrides", "options": ["overrides"], "group": "Properties", "help": {"short": "The policy property value override."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.overrides[].kind", "options": ["kind"], "help": {"short": "The override kind."}, "enum": {"items": [{"name": "definitionVersion", "value": "definitionVersion"}, {"name": "policyEffect", "value": "policyEffect"}]}}, {"nullable": true, "type": "array<@Selector_update>", "var": "$parameters.properties.overrides[].selectors", "options": ["selectors"], "help": {"short": "The list of the selector expressions."}, "item": {"nullable": true, "type": "@Selector_update"}}, {"nullable": true, "type": "string", "var": "$parameters.properties.overrides[].value", "options": ["value"], "help": {"short": "The value to override the policy property."}}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.parameters", "options": ["p", "params"], "group": "Properties", "help": {"short": "The parameter values for the assigned policy rule.", "lines": ["Object or file path containing the policy rule parameter values to be used when assigning the policy definition. The object keys are the parameter names."]}, "additionalProps": {"item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "any", "var": "$parameters.properties.parameters{}.value", "options": ["value"], "help": {"short": "The value of the parameter."}}]}}}, {"nullable": true, "type": "string", "var": "$parameters.properties.policyDefinitionId", "options": ["d", "policy-set-definition"], "group": "Properties", "help": {"short": "The policy definition or policy set definition to assign.", "lines": ["The resource ID of the policy definition (format: /{scope}/providers/Microsoft.Authorization/policyDefinitions/{name}) or policy set definition (format: /{scope}/providers/Microsoft.Authorization/policySetDefinitions/{name}) to be assigned."]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.resourceSelectors", "options": ["resource-selectors"], "group": "Properties", "help": {"short": "The resource selectors list to filter policies by resource properties.", "lines": ["The collection of resource selector expressions used to filter policy assignment applicability by certain resource property values."]}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.resourceSelectors[].name", "options": ["name"], "help": {"short": "The name of the resource selector."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.resourceSelectors[].selectors", "options": ["selectors"], "help": {"short": "The list of the selector expressions."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "array", "var": "@Selector_update.in", "options": ["in"], "help": {"short": "The list of values to filter in."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "string", "var": "@Selector_update.kind", "options": ["kind"], "help": {"short": "The selector kind."}, "enum": {"items": [{"name": "policyDefinitionReferenceId", "value": "policyDefinitionReferenceId"}, {"name": "resourceLocation", "value": "resourceLocation"}, {"name": "resourceType", "value": "resourceType"}, {"name": "resourceWithoutLocation", "value": "resourceWithoutLocation"}]}}, {"nullable": true, "type": "array", "var": "@Selector_update.notIn", "options": ["not-in"], "help": {"short": "The list of values to filter out."}, "item": {"nullable": true, "type": "string"}}], "cls": "Selector_update"}}]}}]}, {"name": "non-compliance-message", "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.nonComplianceMessages", "options": ["m", "non-compliance-messages"], "group": "non-compliance-message", "help": {"short": "The messages that describe why a resource is non-compliant with the policy."}, "item": {"nullable": true, "type": "object", "args": [{"type": "string", "var": "$parameters.properties.nonComplianceMessages[].message", "options": ["m", "message"], "group": "", "help": {"short": "A custom non-compliance message.", "lines": ["A message that describes the reasons a resource was determined to be non-compliant. This will be shown in 'deny' error messages and resource non-compliance results."]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.nonComplianceMessages[].policyDefinitionReferenceId", "options": ["r", "policy-definition-reference-id"], "group": "", "help": {"short": "The policy definition reference ID.", "lines": ["The policy definition reference ID within a policy set definition the message is intended for. This is only applicable if the policy assignment assigns a policy set definition. If not provided, the message applies to all policy definitions assigned by this policy assignment."]}}]}}]}], "operations": [{"operationId": "PolicyAssignments_Get", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}, {"type": "string", "name": "value"}]}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}], "cls": "Selector_read"}}]}}, {"readOnly": true, "type": "string", "name": "scope"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "PolicyAssignment_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "IdentityObject", "name": "identity", "props": [{"type": "string", "name": "type", "arg": "$parameters.identity.type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "arg": "$parameters.identity.userAssignedIdentities", "additionalProps": {"item": {"type": "object"}}}]}, {"type": "ResourceLocation", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "arg": "$parameters.properties.assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion", "arg": "$parameters.properties.definitionVersion"}, {"type": "string", "name": "description", "arg": "$parameters.properties.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.displayName"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "arg": "$parameters.properties.enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "arg": "$parameters.properties.nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "arg": "$parameters.properties.nonComplianceMessages[].message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId", "arg": "$parameters.properties.nonComplianceMessages[].policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "arg": "$parameters.properties.notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "arg": "$parameters.properties.overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "arg": "$parameters.properties.overrides[].kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_update>", "name": "selectors", "arg": "$parameters.properties.overrides[].selectors", "item": {"type": "@Selector_update"}}, {"type": "string", "name": "value", "arg": "$parameters.properties.overrides[].value"}]}}, {"type": "object", "name": "parameters", "arg": "$parameters.properties.parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value", "arg": "$parameters.properties.parameters{}.value"}]}}}, {"type": "string", "name": "policyDefinitionId", "arg": "$parameters.properties.policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "arg": "$parameters.properties.resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.resourceSelectors[].name"}, {"type": "array", "name": "selectors", "arg": "$parameters.properties.resourceSelectors[].selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "arg": "@Selector_update.in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "arg": "@Selector_update.kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "arg": "@Selector_update.notIn", "item": {"type": "string"}}], "cls": "Selector_update"}}]}}], "clientFlatten": true}], "clientFlatten": true}}}}, {"operationId": "PolicyAssignments_Create", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [201], "body": {"json": {"var": "$Instance", "schema": {"type": "@PolicyAssignment_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}], "commandGroups": [{"name": "identity", "commands": [{"name": "assign", "version": "2024-05-01", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyassignments/{}", "version": "2024-05-01", "subresource": "identity", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUFzc2lnbm1lbnRzL3twb2xpY3lBc3NpZ25tZW50TmFtZX0=/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyAssignmentName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy assignment.", "lines": ["The name of the policy assignment is the name segment of its resource ID."]}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}]}, {"name": "Parameters.identity", "args": [{"blank": {"value": "True"}, "type": "string", "var": "$parameters.identity.systemAssigned", "options": ["system-assigned", "mi-system-assigned"], "group": "Parameters.identity", "help": {"short": "Set the system managed identity."}}, {"blank": {"value": []}, "type": "array", "var": "$parameters.identity.userAssigned", "options": ["user-assigned", "mi-user-assigned"], "group": "Parameters.identity", "help": {"short": "Set the user managed identity."}, "item": {"type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "object", "name": "identity"}}}, "operations": [{"operationId": "PolicyAssignments_Get", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}, {"type": "string", "name": "value"}]}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}], "cls": "Selector_read"}}]}}, {"readOnly": true, "type": "string", "name": "scope"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "PolicyAssignment_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"action": "assign", "type": "IdentityObject", "name": "parameters.identity", "required": true, "userAssigned": {"action": "assign", "type": "array", "name": "userAssigned", "arg": "$parameters.identity.userAssigned", "item": {"action": "assign", "type": "string"}}, "systemAssigned": {"action": "assign", "type": "string", "name": "systemAssigned", "arg": "$parameters.identity.systemAssigned"}}}}}, {"operationId": "PolicyAssignments_Create", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [201], "body": {"json": {"var": "$Instance", "schema": {"type": "@PolicyAssignment_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "remove", "version": "2024-05-01", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyassignments/{}", "version": "2024-05-01", "subresource": "identity", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUFzc2lnbm1lbnRzL3twb2xpY3lBc3NpZ25tZW50TmFtZX0=/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyAssignmentName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy assignment.", "lines": ["The name of the policy assignment is the name segment of its resource ID."]}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}]}, {"name": "Parameters.identity", "args": [{"blank": {"value": "True"}, "type": "string", "var": "$parameters.identity.systemAssigned", "options": ["system-assigned", "mi-system-assigned"], "group": "Parameters.identity", "help": {"short": "Remove the system managed identity."}}, {"blank": {"value": []}, "type": "array", "var": "$parameters.identity.userAssigned", "options": ["user-assigned", "mi-user-assigned"], "group": "Parameters.identity", "help": {"short": "Remove the user managed identity."}, "item": {"type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "object", "name": "identity"}}}, "operations": [{"operationId": "PolicyAssignments_Get", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}, {"type": "string", "name": "value"}]}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}], "cls": "Selector_read"}}]}}, {"readOnly": true, "type": "string", "name": "scope"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "PolicyAssignment_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"action": "remove", "type": "IdentityObject", "name": "parameters.identity", "required": true, "userAssigned": {"action": "remove", "type": "array", "name": "userAssigned", "arg": "$parameters.identity.userAssigned", "item": {"action": "remove", "type": "string"}}, "systemAssigned": {"action": "remove", "type": "string", "name": "systemAssigned", "arg": "$parameters.identity.systemAssigned"}}}}}, {"operationId": "PolicyAssignments_Create", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [201], "body": {"json": {"var": "$Instance", "schema": {"type": "@PolicyAssignment_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "show", "version": "2024-05-01", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyassignments/{}", "version": "2024-05-01", "subresource": "identity", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUFzc2lnbm1lbnRzL3twb2xpY3lBc3NpZ25tZW50TmFtZX0=/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyAssignmentName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy assignment.", "lines": ["The name of the policy assignment is the name segment of its resource ID."]}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "object", "name": "identity"}}}, "operations": [{"operationId": "PolicyAssignments_Get", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}, {"type": "string", "name": "value"}]}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}], "cls": "Selector_read"}}]}}, {"readOnly": true, "type": "string", "name": "scope"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "PolicyAssignment_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}]}, {"name": "non-compliance-message", "commands": [{"name": "list", "version": "2024-05-01", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyassignments/{}", "version": "2024-05-01", "subresource": "properties.nonComplianceMessages", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUFzc2lnbm1lbnRzL3twb2xpY3lBc3NpZ25tZW50TmFtZX0=/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyAssignmentName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy assignment.", "lines": ["The name of the policy assignment is the name segment of its resource ID."]}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.nonComplianceMessages"}}}, "operations": [{"operationId": "PolicyAssignments_Get", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}, {"type": "string", "name": "value"}]}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}], "cls": "Selector_read"}}]}}, {"readOnly": true, "type": "string", "name": "scope"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "PolicyAssignment_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "create", "version": "2024-05-01", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyassignments/{}", "version": "2024-05-01", "subresource": "properties.nonComplianceMessages[]", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUFzc2lnbm1lbnRzL3twb2xpY3lBc3NpZ25tZW50TmFtZX0=/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyAssignmentName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy assignment.", "lines": ["The name of the policy assignment is the name segment of its resource ID."]}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}, {"type": "string", "var": "$parameters.properties.nonComplianceMessages[].message", "options": ["m", "message"], "required": true, "group": "", "help": {"short": "A custom non-compliance message.", "lines": ["A message that describes the reasons a resource was determined to be non-compliant. This will be shown in 'deny' error messages and resource non-compliance results."]}}, {"type": "string", "var": "$parameters.properties.nonComplianceMessages[].policyDefinitionReferenceId", "options": ["r", "policy-definition-reference-id"], "required": true, "group": "", "help": {"short": "The policy definition reference ID.", "lines": ["The policy definition reference ID within a policy set definition the message is intended for. This is only applicable if the policy assignment assigns a policy set definition. If not provided, the message applies to all policy definitions assigned by this policy assignment."]}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.nonComplianceMessages", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].message", "arg": "$parameters.properties.nonComplianceMessages[].message", "required": true}, {"type": "string", "name": "[].policyDefinitionReferenceId", "arg": "$parameters.properties.nonComplianceMessages[].policyDefinitionReferenceId", "required": true}]}}}, "operations": [{"operationId": "PolicyAssignments_Get", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}, {"type": "string", "name": "value"}]}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}], "cls": "Selector_read"}}]}}, {"readOnly": true, "type": "string", "name": "scope"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "PolicyAssignment_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.nonComplianceMessages[]", "required": true, "props": [{"type": "string", "name": "message", "arg": "$parameters.properties.nonComplianceMessages[].message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId", "arg": "$parameters.properties.nonComplianceMessages[].policyDefinitionReferenceId"}]}}}}, {"operationId": "PolicyAssignments_Create", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [201], "body": {"json": {"var": "$Instance", "schema": {"type": "@PolicyAssignment_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2024-05-01", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyassignments/{}", "version": "2024-05-01", "subresource": "properties.nonComplianceMessages[]", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUFzc2lnbm1lbnRzL3twb2xpY3lBc3NpZ25tZW50TmFtZX0=/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyAssignmentName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy assignment.", "lines": ["The name of the policy assignment is the name segment of its resource ID."]}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}, {"type": "string", "var": "$parameters.properties.nonComplianceMessages[].message", "options": ["m", "message"], "required": true, "group": "", "help": {"short": "A custom non-compliance message.", "lines": ["A message that describes the reasons a resource was determined to be non-compliant. This will be shown in 'deny' error messages and resource non-compliance results."]}}, {"type": "string", "var": "$parameters.properties.nonComplianceMessages[].policyDefinitionReferenceId", "options": ["r", "policy-definition-reference-id"], "required": true, "group": "", "help": {"short": "The policy definition reference ID.", "lines": ["The policy definition reference ID within a policy set definition the message is intended for. This is only applicable if the policy assignment assigns a policy set definition. If not provided, the message applies to all policy definitions assigned by this policy assignment."]}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.nonComplianceMessages", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].message", "arg": "$parameters.properties.nonComplianceMessages[].message", "required": true}, {"type": "string", "name": "[].policyDefinitionReferenceId", "arg": "$parameters.properties.nonComplianceMessages[].policyDefinitionReferenceId", "required": true}]}}}, "operations": [{"operationId": "PolicyAssignments_Get", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}, {"type": "string", "name": "value"}]}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}], "cls": "Selector_read"}}]}}, {"readOnly": true, "type": "string", "name": "scope"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "PolicyAssignment_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.nonComplianceMessages[]", "required": true, "props": [{"type": "string", "name": "message", "arg": "$parameters.properties.nonComplianceMessages[].message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId", "arg": "$parameters.properties.nonComplianceMessages[].policyDefinitionReferenceId"}]}}}}, {"operationId": "PolicyAssignments_Create", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [201], "body": {"json": {"var": "$Instance", "schema": {"type": "@PolicyAssignment_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2024-05-01", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyassignments/{}", "version": "2024-05-01", "subresource": "properties.nonComplianceMessages[]", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUFzc2lnbm1lbnRzL3twb2xpY3lBc3NpZ25tZW50TmFtZX0=/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyAssignmentName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy assignment.", "lines": ["The name of the policy assignment is the name segment of its resource ID."]}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}, {"type": "string", "var": "$parameters.properties.nonComplianceMessages[].message", "options": ["m", "message"], "required": true, "group": "", "help": {"short": "A custom non-compliance message.", "lines": ["A message that describes the reasons a resource was determined to be non-compliant. This will be shown in 'deny' error messages and resource non-compliance results."]}}, {"type": "string", "var": "$parameters.properties.nonComplianceMessages[].policyDefinitionReferenceId", "options": ["r", "policy-definition-reference-id"], "required": true, "group": "", "help": {"short": "The policy definition reference ID.", "lines": ["The policy definition reference ID within a policy set definition the message is intended for. This is only applicable if the policy assignment assigns a policy set definition. If not provided, the message applies to all policy definitions assigned by this policy assignment."]}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.nonComplianceMessages", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].message", "arg": "$parameters.properties.nonComplianceMessages[].message", "required": true}, {"type": "string", "name": "[].policyDefinitionReferenceId", "arg": "$parameters.properties.nonComplianceMessages[].policyDefinitionReferenceId", "required": true}]}}}, "operations": [{"operationId": "PolicyAssignments_Get", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}, {"type": "string", "name": "value"}]}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}], "cls": "Selector_read"}}]}}, {"readOnly": true, "type": "string", "name": "scope"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "PolicyAssignment_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"operationId": "PolicyAssignments_Create", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [201], "body": {"json": {"var": "$Instance", "schema": {"type": "@PolicyAssignment_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "confirmation": ""}, {"name": "show", "version": "2024-05-01", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyassignments/{}", "version": "2024-05-01", "subresource": "properties.nonComplianceMessages[]", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUFzc2lnbm1lbnRzL3twb2xpY3lBc3NpZ25tZW50TmFtZX0=/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyAssignmentName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy assignment.", "lines": ["The name of the policy assignment is the name segment of its resource ID."]}, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}, {"type": "string", "var": "$parameters.properties.nonComplianceMessages[].message", "options": ["m", "message"], "required": true, "group": "", "help": {"short": "A custom non-compliance message.", "lines": ["A message that describes the reasons a resource was determined to be non-compliant. This will be shown in 'deny' error messages and resource non-compliance results."]}}, {"type": "string", "var": "$parameters.properties.nonComplianceMessages[].policyDefinitionReferenceId", "options": ["r", "policy-definition-reference-id"], "required": true, "group": "", "help": {"short": "The policy definition reference ID.", "lines": ["The policy definition reference ID within a policy set definition the message is intended for. This is only applicable if the policy assignment assigns a policy set definition. If not provided, the message applies to all policy definitions assigned by this policy assignment."]}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.nonComplianceMessages", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].message", "arg": "$parameters.properties.nonComplianceMessages[].message", "required": true}, {"type": "string", "name": "[].policyDefinitionReferenceId", "arg": "$parameters.properties.nonComplianceMessages[].policyDefinitionReferenceId", "required": true}]}}}, "operations": [{"operationId": "PolicyAssignments_Get", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policyAssignmentName", "arg": "$Path.policyAssignmentName", "required": true, "format": {"pattern": "^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "assignmentType", "enum": {"items": [{"value": "Custom"}, {"value": "NotSpecified"}, {"value": "System"}, {"value": "SystemHidden"}]}}, {"type": "string", "name": "definitionVersion"}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"readOnly": true, "type": "string", "name": "effectiveDefinitionVersion"}, {"default": {"value": "Default"}, "type": "string", "name": "enforcementMode", "enum": {"items": [{"value": "Default"}, {"value": "DoNotEnforce"}]}}, {"readOnly": true, "type": "string", "name": "latestDefinitionVersion"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "array", "name": "nonComplianceMessages", "item": {"type": "object", "props": [{"type": "string", "name": "message", "required": true}, {"type": "string", "name": "policyDefinitionReferenceId"}]}, "identifiers": ["message", "policyDefinitionReferenceId"]}, {"type": "array", "name": "notScopes", "item": {"type": "string"}}, {"type": "array", "name": "overrides", "item": {"type": "object", "props": [{"type": "string", "name": "kind", "enum": {"items": [{"value": "definitionVersion"}, {"value": "policyEffect"}]}}, {"type": "array<@Selector_read>", "name": "selectors", "item": {"type": "@Selector_read"}}, {"type": "string", "name": "value"}]}}, {"type": "object", "name": "parameters", "additionalProps": {"item": {"type": "object", "props": [{"type": "any", "name": "value"}]}}}, {"type": "string", "name": "policyDefinitionId"}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}], "cls": "Selector_read"}}]}}, {"readOnly": true, "type": "string", "name": "scope"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "PolicyAssignment_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml b/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml new file mode 100644 index 000000000..ad31c2410 --- /dev/null +++ b/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWFzc2lnbm1lbnRzL3t9/2024-05-01.xml @@ -0,0 +1,2936 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnMve30=/2022-07-01-preview.json b/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnMve30=/2022-07-01-preview.json new file mode 100644 index 000000000..708be549b --- /dev/null +++ b/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnMve30=/2022-07-01-preview.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyexemptions/{}", "version": "2022-07-01-preview", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUV4ZW1wdGlvbnMve3BvbGljeUV4ZW1wdGlvbk5hbWV9/V/MjAyMi0wNy0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "policy exemption", "commands": [{"name": "show", "version": "2022-07-01-preview", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyexemptions/{}", "version": "2022-07-01-preview", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUV4ZW1wdGlvbnMve3BvbGljeUV4ZW1wdGlvbk5hbWV9/V/MjAyMi0wNy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyExemptionName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy exemption."}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}]}], "operations": [{"operationId": "PolicyExemptions_Get", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policyExemptionName", "arg": "$Path.policyExemptionName", "required": true}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-07-01-preview"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/{scope}/providers/Microsoft.Authorization/policyExemptions/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": "Default"}, "type": "string", "name": "assignmentScopeValidation", "enum": {"items": [{"value": "Default"}, {"value": "DoNotValidate"}]}}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "exemptionCategory", "required": true, "enum": {"items": [{"value": "Mitigated"}, {"value": "Waiver"}]}}, {"type": "dateTime", "name": "expiresOn"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyAssignmentId", "required": true}, {"type": "array", "name": "policyDefinitionReferenceIds", "item": {"type": "string"}}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}]}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-07-01-preview", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyexemptions/{}", "version": "2022-07-01-preview", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUV4ZW1wdGlvbnMve3BvbGljeUV4ZW1wdGlvbk5hbWV9/V/MjAyMi0wNy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyExemptionName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy exemption."}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}]}], "operations": [{"operationId": "PolicyExemptions_Delete", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "policyExemptionName", "arg": "$Path.policyExemptionName", "required": true}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-07-01-preview"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "confirmation": ""}, {"name": "create", "version": "2022-07-01-preview", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyexemptions/{}", "version": "2022-07-01-preview", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUV4ZW1wdGlvbnMve3BvbGljeUV4ZW1wdGlvbk5hbWV9/V/MjAyMi0wNy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyExemptionName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy exemption."}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}]}, {"name": "Properties", "args": [{"type": "string", "var": "$parameters.properties.assignmentScopeValidation", "options": ["v", "assignment-scope-validation"], "group": "Properties", "help": {"short": "The assignment scope validation", "lines": ["Indicates the type of validation to perform on the assignment scope. Valid values are Default, DoNotValidate."]}, "default": {"value": "Default"}, "enum": {"items": [{"name": "Default", "value": "Default"}, {"name": "DoNotValidate", "value": "DoNotValidate"}]}}, {"type": "string", "var": "$parameters.properties.description", "options": ["description"], "group": "Properties", "help": {"short": "Policy exemption description.", "lines": ["Full description of the policy exemption."]}}, {"type": "string", "var": "$parameters.properties.displayName", "options": ["display-name"], "group": "Properties", "help": {"short": "The display name of the policy exemption.", "lines": ["The display name of the policy exemption is not part of its ID, allowing for longer and more flexible naming."]}}, {"type": "string", "var": "$parameters.properties.exemptionCategory", "options": ["e", "exemption-category"], "required": true, "group": "Properties", "help": {"short": "The policy exemption category.", "lines": ["The policy exemption category. Possible values are Mitigated and Waiver."]}, "enum": {"items": [{"name": "Mitigated", "value": "Mitigated"}, {"name": "Waiver", "value": "Waiver"}]}}, {"type": "dateTime", "var": "$parameters.properties.expiresOn", "options": ["expires-on"], "group": "Properties", "help": {"short": "The expiration date and time.", "lines": ["The expiration date and time of the policy exemption in UTC ISO 8601 format, e.g. yyyy-MM-ddTHH:mm:ssZ."]}}, {"type": "object", "var": "$parameters.properties.metadata", "options": ["metadata"], "group": "Properties", "help": {"short": "The policy exemption metadata.", "lines": ["The policy exemption metadata. Metadata is an open-ended object and is typically a collection of key value pairs."]}, "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "var": "$parameters.properties.policyAssignmentId", "options": ["a", "policy-assignment"], "required": true, "group": "Properties", "help": {"short": "The policy assignment to exempt.", "lines": ["The resource ID of the policy assignment to exempt."]}}, {"type": "array", "var": "$parameters.properties.policyDefinitionReferenceIds", "options": ["r", "policy-definition-reference-ids"], "group": "Properties", "help": {"short": "The policy definition reference IDs.", "lines": ["The collection of policy definition reference IDs to exempt when the policy assignment is an assignment of a policy set definition."]}, "item": {"type": "string"}}, {"type": "array", "var": "$parameters.properties.resourceSelectors", "options": ["resource-selectors"], "group": "Properties", "help": {"short": "The resource selectors list to filter policies by resource properties.", "lines": ["The collection of resource selector expressions used to filter policy exemption applicability by certain resource property values."]}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.resourceSelectors[].name", "options": ["name"], "help": {"short": "The name of the resource selector."}}, {"type": "array", "var": "$parameters.properties.resourceSelectors[].selectors", "options": ["selectors"], "help": {"short": "The list of the selector expressions."}, "item": {"type": "object", "args": [{"type": "array", "var": "$parameters.properties.resourceSelectors[].selectors[].in", "options": ["in"], "help": {"short": "The list of values to filter in."}, "item": {"type": "string"}}, {"type": "string", "var": "$parameters.properties.resourceSelectors[].selectors[].kind", "options": ["kind"], "help": {"short": "The selector kind."}, "enum": {"items": [{"name": "policyDefinitionReferenceId", "value": "policyDefinitionReferenceId"}, {"name": "resourceLocation", "value": "resourceLocation"}, {"name": "resourceType", "value": "resourceType"}, {"name": "resourceWithoutLocation", "value": "resourceWithoutLocation"}]}}, {"type": "array", "var": "$parameters.properties.resourceSelectors[].selectors[].notIn", "options": ["not-in"], "help": {"short": "The list of values to filter out."}, "item": {"type": "string"}}]}}]}}]}], "operations": [{"operationId": "PolicyExemptions_CreateOrUpdate", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "policyExemptionName", "arg": "$Path.policyExemptionName", "required": true}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-07-01-preview"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": "Default"}, "type": "string", "name": "assignmentScopeValidation", "arg": "$parameters.properties.assignmentScopeValidation", "enum": {"items": [{"value": "Default"}, {"value": "DoNotValidate"}]}}, {"type": "string", "name": "description", "arg": "$parameters.properties.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.displayName"}, {"type": "string", "name": "exemptionCategory", "arg": "$parameters.properties.exemptionCategory", "required": true, "enum": {"items": [{"value": "Mitigated"}, {"value": "Waiver"}]}}, {"type": "dateTime", "name": "expiresOn", "arg": "$parameters.properties.expiresOn"}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyAssignmentId", "arg": "$parameters.properties.policyAssignmentId", "required": true}, {"type": "array", "name": "policyDefinitionReferenceIds", "arg": "$parameters.properties.policyDefinitionReferenceIds", "item": {"type": "string"}}, {"type": "array", "name": "resourceSelectors", "arg": "$parameters.properties.resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.resourceSelectors[].name"}, {"type": "array", "name": "selectors", "arg": "$parameters.properties.resourceSelectors[].selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "arg": "$parameters.properties.resourceSelectors[].selectors[].in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "arg": "$parameters.properties.resourceSelectors[].selectors[].kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "arg": "$parameters.properties.resourceSelectors[].selectors[].notIn", "item": {"type": "string"}}]}}]}, "identifiers": ["name"]}], "clientFlatten": true}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/{scope}/providers/Microsoft.Authorization/policyExemptions/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": "Default"}, "type": "string", "name": "assignmentScopeValidation", "enum": {"items": [{"value": "Default"}, {"value": "DoNotValidate"}]}}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "exemptionCategory", "required": true, "enum": {"items": [{"value": "Mitigated"}, {"value": "Waiver"}]}}, {"type": "dateTime", "name": "expiresOn"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyAssignmentId", "required": true}, {"type": "array", "name": "policyDefinitionReferenceIds", "item": {"type": "string"}}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}]}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-07-01-preview", "resources": [{"id": "/{scope}/providers/microsoft.authorization/policyexemptions/{}", "version": "2022-07-01-preview", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Authorization/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5BdXRob3JpemF0aW9uL3BvbGljeUV4ZW1wdGlvbnMve3BvbGljeUV4ZW1wdGlvbk5hbWV9/V/MjAyMi0wNy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.policyExemptionName", "options": ["n", "name"], "required": true, "group": "", "help": {"short": "The name of the policy exemption."}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "group": "", "help": {"short": "The scope of the policy assignment.", "lines": ["Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. The scope of an assignment is always the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. If scope is not provided, the scope will be the implied or specified subscription."]}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.assignmentScopeValidation", "options": ["v", "assignment-scope-validation"], "group": "Properties", "help": {"short": "The assignment scope validation", "lines": ["Indicates the type of validation to perform on the assignment scope. Valid values are Default, DoNotValidate."]}, "enum": {"items": [{"name": "Default", "value": "Default"}, {"name": "DoNotValidate", "value": "DoNotValidate"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.description", "options": ["description"], "group": "Properties", "help": {"short": "Policy exemption description.", "lines": ["Full description of the policy exemption."]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.displayName", "options": ["display-name"], "group": "Properties", "help": {"short": "The display name of the policy exemption.", "lines": ["The display name of the policy exemption is not part of its ID, allowing for longer and more flexible naming."]}}, {"type": "string", "var": "$parameters.properties.exemptionCategory", "options": ["e", "exemption-category"], "group": "Properties", "help": {"short": "The policy exemption category.", "lines": ["The policy exemption category. Possible values are Mitigated and Waiver."]}, "enum": {"items": [{"name": "Mitigated", "value": "Mitigated"}, {"name": "Waiver", "value": "Waiver"}]}}, {"nullable": true, "type": "dateTime", "var": "$parameters.properties.expiresOn", "options": ["expires-on"], "group": "Properties", "help": {"short": "The expiration date and time.", "lines": ["The expiration date and time of the policy exemption in UTC ISO 8601 format, e.g. yyyy-MM-ddTHH:mm:ssZ."]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.metadata", "options": ["metadata"], "group": "Properties", "help": {"short": "The policy exemption metadata.", "lines": ["The policy exemption metadata. Metadata is an open-ended object and is typically a collection of key value pairs."]}, "additionalProps": {"item": {"nullable": true, "type": "any"}}}, {"type": "string", "var": "$parameters.properties.policyAssignmentId", "options": ["a", "policy-assignment"], "group": "Properties", "help": {"short": "The policy assignment to exempt.", "lines": ["The resource ID of the policy assignment to exempt."]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.policyDefinitionReferenceIds", "options": ["r", "policy-definition-reference-ids"], "group": "Properties", "help": {"short": "The policy definition reference IDs.", "lines": ["The collection of policy definition reference IDs to exempt when the policy assignment is an assignment of a policy set definition."]}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.resourceSelectors", "options": ["resource-selectors"], "group": "Properties", "help": {"short": "The resource selectors list to filter policies by resource properties.", "lines": ["The collection of resource selector expressions used to filter policy exemption applicability by certain resource property values."]}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.resourceSelectors[].name", "options": ["name"], "help": {"short": "The name of the resource selector."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.resourceSelectors[].selectors", "options": ["selectors"], "help": {"short": "The list of the selector expressions."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.resourceSelectors[].selectors[].in", "options": ["in"], "help": {"short": "The list of values to filter in."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "string", "var": "$parameters.properties.resourceSelectors[].selectors[].kind", "options": ["kind"], "help": {"short": "The selector kind."}, "enum": {"items": [{"name": "policyDefinitionReferenceId", "value": "policyDefinitionReferenceId"}, {"name": "resourceLocation", "value": "resourceLocation"}, {"name": "resourceType", "value": "resourceType"}, {"name": "resourceWithoutLocation", "value": "resourceWithoutLocation"}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.resourceSelectors[].selectors[].notIn", "options": ["not-in"], "help": {"short": "The list of values to filter out."}, "item": {"nullable": true, "type": "string"}}]}}]}}]}], "operations": [{"operationId": "PolicyExemptions_Get", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "policyExemptionName", "arg": "$Path.policyExemptionName", "required": true}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-07-01-preview"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/{scope}/providers/Microsoft.Authorization/policyExemptions/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": "Default"}, "type": "string", "name": "assignmentScopeValidation", "enum": {"items": [{"value": "Default"}, {"value": "DoNotValidate"}]}}, {"type": "string", "name": "description"}, {"type": "string", "name": "displayName"}, {"type": "string", "name": "exemptionCategory", "required": true, "enum": {"items": [{"value": "Mitigated"}, {"value": "Waiver"}]}}, {"type": "dateTime", "name": "expiresOn"}, {"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyAssignmentId", "required": true}, {"type": "array", "name": "policyDefinitionReferenceIds", "item": {"type": "string"}}, {"type": "array", "name": "resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "array", "name": "selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "item": {"type": "string"}}]}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "PolicyExemption_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": "Default"}, "type": "string", "name": "assignmentScopeValidation", "arg": "$parameters.properties.assignmentScopeValidation", "enum": {"items": [{"value": "Default"}, {"value": "DoNotValidate"}]}}, {"type": "string", "name": "description", "arg": "$parameters.properties.description"}, {"type": "string", "name": "displayName", "arg": "$parameters.properties.displayName"}, {"type": "string", "name": "exemptionCategory", "arg": "$parameters.properties.exemptionCategory", "required": true, "enum": {"items": [{"value": "Mitigated"}, {"value": "Waiver"}]}}, {"type": "dateTime", "name": "expiresOn", "arg": "$parameters.properties.expiresOn"}, {"type": "object", "name": "metadata", "arg": "$parameters.properties.metadata", "additionalProps": {"item": {"type": "any"}}}, {"type": "string", "name": "policyAssignmentId", "arg": "$parameters.properties.policyAssignmentId", "required": true}, {"type": "array", "name": "policyDefinitionReferenceIds", "arg": "$parameters.properties.policyDefinitionReferenceIds", "item": {"type": "string"}}, {"type": "array", "name": "resourceSelectors", "arg": "$parameters.properties.resourceSelectors", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.resourceSelectors[].name"}, {"type": "array", "name": "selectors", "arg": "$parameters.properties.resourceSelectors[].selectors", "item": {"type": "object", "props": [{"type": "array", "name": "in", "arg": "$parameters.properties.resourceSelectors[].selectors[].in", "item": {"type": "string"}}, {"type": "string", "name": "kind", "arg": "$parameters.properties.resourceSelectors[].selectors[].kind", "enum": {"items": [{"value": "policyDefinitionReferenceId"}, {"value": "resourceLocation"}, {"value": "resourceType"}, {"value": "resourceWithoutLocation"}]}}, {"type": "array", "name": "notIn", "arg": "$parameters.properties.resourceSelectors[].selectors[].notIn", "item": {"type": "string"}}]}}]}, "identifiers": ["name"]}], "clientFlatten": true}], "clientFlatten": true}}}}, {"operationId": "PolicyExemptions_CreateOrUpdate", "http": {"path": "/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "policyExemptionName", "arg": "$Path.policyExemptionName", "required": true}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-07-01-preview"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@PolicyExemption_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnMve30=/2022-07-01-preview.xml b/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnMve30=/2022-07-01-preview.xml new file mode 100644 index 000000000..9bb65a13e --- /dev/null +++ b/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5hdXRob3JpemF0aW9uL3BvbGljeWV4ZW1wdGlvbnMve30=/2022-07-01-preview.xml @@ -0,0 +1,681 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +