ResourcePolicyAssignment is the Schema for the ResourcePolicyAssignments API. Manages a Policy Assignment to a Resource.
Type
CRD
Group
authorization.azure.upbound.io
Version
v1beta1
apiVersion: authorization.azure.upbound.io/v1beta1
kind: ResourcePolicyAssignment
ResourcePolicyAssignmentSpec defines the desired state of ResourcePolicyAssignment
No description provided.
An identity block as defined below.
A list of User Managed Identity IDs which should be assigned to the Policy Definition.
One or more non_compliance_message blocks as defined below.
Specifies a list of Resource Scopes (for example a Subscription, or a Resource Group) within this Management Group which are excluded from this Policy.
Reference to a PolicyDefinition in authorization to populate policyDefinitionId.
Policies for referencing.
Selector for a PolicyDefinition in authorization to populate policyDefinitionId.
Policies for selection.
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
Policies for referencing.
ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef
Policies for referencing.
PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.
WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.
ResourcePolicyAssignmentStatus defines the observed state of ResourcePolicyAssignment.
No description provided.
An identity block as defined below.
Conditions of the resource.
example
apiVersion: authorization.azure.upbound.io/v1beta1
kind: ResourcePolicyAssignment
metadata:
annotations:
meta.upbound.io/example-id: authorization/v1beta1/resourcepolicyassignment
upjet.upbound.io/manual-intervention: ResourcePolicyAssignment depends on
existing resource id (Virutal Network in this example)
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
name: example-policy-assignment
policyDefinitionIdSelector:
matchLabels:
testing.upbound.io/example-name: examplepolicy
resourceId: ${azurerm_virtual_network.example.id}
rpolicyassignment
apiVersion: authorization.azure.upbound.io/v1beta1
kind: ResourcePolicyAssignment
metadata:
annotations:
meta.upbound.io/example-id: policyinsights/v1beta1/resourcepolicyremediation
upjet.upbound.io/manual-intervention: ResourcePolicyAssignment depends on
existing resource id (Virutal Network in this example)
labels:
testing.upbound.io/example-name: example
name: rpolicyassignment
spec:
forProvider:
name: rpolicyassignmentqw
policyDefinitionIdSelector:
matchLabels:
testing.upbound.io/example-name: examplepolicy
resourceId: ${azurerm_virtual_network.example.id}
exampleassignment
apiVersion: authorization.azure.upbound.io/v1beta1
kind: ResourcePolicyAssignment
metadata:
annotations:
meta.upbound.io/example-id: authorization/v1beta1/resourcepolicyexemption
upjet.upbound.io/manual-intervention: ResourcePolicyAssignment and
ResourcePolicyExemption depends on existing resource id (Virutal Network
in this example)
labels:
testing.upbound.io/example-name: exampleassignment
name: exampleassignment
spec:
forProvider:
identity:
- type: SystemAssigned
location: westus
name: assignment1
policyDefinitionIdSelector:
matchLabels:
testing.upbound.io/example-name: examplepolicy
resourceId: ${azurerm_virtual_network.example.id}
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.