Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix policy resource external links #54

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/saltext/azurerm/modules/azurerm_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ def policy_definition_create_or_update(name, policy_rule, **kwargs): # pylint:
:param name: The name of the policy definition to create or update.

:param policy_rule: A dictionary defining the
`policy rule <https://docs.microsoft.com/en-us/azure/azure-policy/policy-definition#policy-rule>`_.
`policy rule <https://learn.microsoft.com/en-us/azure/governance/policy/concepts/definition-structure-policy-rule>`_.

CLI Example:

Expand Down
6 changes: 3 additions & 3 deletions src/saltext/azurerm/states/azurerm_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,20 +276,20 @@ def policy_definition_present(

:param policy_rule:
A YAML dictionary defining the policy rule. See `Azure Policy Definition documentation
<https://docs.microsoft.com/en-us/azure/azure-policy/policy-definition#policy-rule>`_ for details on the
<https://learn.microsoft.com/en-us/azure/governance/policy/concepts/definition-structure-policy-rule>`_ for details on the
structure. One of ``policy_rule``, ``policy_rule_json``, or ``policy_rule_file`` is required, in that order of
precedence for use if multiple parameters are used.

:param policy_rule_json:
A text field defining the entirety of a policy definition in JSON. See `Azure Policy Definition documentation
<https://docs.microsoft.com/en-us/azure/azure-policy/policy-definition#policy-rule>`_ for details on the
<https://learn.microsoft.com/en-us/azure/governance/policy/concepts/definition-structure-policy-rule>`_ for details on the
structure. One of ``policy_rule``, ``policy_rule_json``, or ``policy_rule_file`` is required, in that order of
precedence for use if multiple parameters are used. Note that the `name` field in the JSON will override the
``name`` parameter in the state.

:param policy_rule_file:
The source of a JSON file defining the entirety of a policy definition. See `Azure Policy Definition
documentation <https://docs.microsoft.com/en-us/azure/azure-policy/policy-definition#policy-rule>`_ for
documentation <https://learn.microsoft.com/en-us/azure/governance/policy/concepts/definition-structure-policy-rule>`_ for
details on the structure. One of ``policy_rule``, ``policy_rule_json``, or ``policy_rule_file`` is required,
in that order of precedence for use if multiple parameters are used. Note that the `name` field in the JSON
will override the ``name`` parameter in the state.
Expand Down
Loading