1. Registry
  2. Packages
  3. Azure Native
  4. API Docs
  5. security
  6. getGovernanceAssignment
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.26.0
published on Thursday, Aug 13, 2026 by Pulumi
azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.26.0
published on Thursday, Aug 13, 2026 by Pulumi

    Get a specific governanceAssignment for the requested scope by AssignmentKey

    Uses Azure REST API version 2022-01-01-preview.

    Using getGovernanceAssignment

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getGovernanceAssignment(args: GetGovernanceAssignmentArgs, opts?: InvokeOptions): Promise<GetGovernanceAssignmentResult>
    function getGovernanceAssignmentOutput(args: GetGovernanceAssignmentOutputArgs, opts?: InvokeOutputOptions): Output<GetGovernanceAssignmentResult>
    def get_governance_assignment(assessment_name: Optional[str] = None,
                                  assignment_key: Optional[str] = None,
                                  scope: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetGovernanceAssignmentResult
    def get_governance_assignment_output(assessment_name: pulumi.Input[Optional[str]] = None,
                                  assignment_key: pulumi.Input[Optional[str]] = None,
                                  scope: pulumi.Input[Optional[str]] = None,
                                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetGovernanceAssignmentResult]
    func LookupGovernanceAssignment(ctx *Context, args *LookupGovernanceAssignmentArgs, opts ...InvokeOption) (*LookupGovernanceAssignmentResult, error)
    func LookupGovernanceAssignmentOutput(ctx *Context, args *LookupGovernanceAssignmentOutputArgs, opts ...InvokeOption) LookupGovernanceAssignmentResultOutput

    > Note: This function is named LookupGovernanceAssignment in the Go SDK.

    public static class GetGovernanceAssignment 
    {
        public static Task<GetGovernanceAssignmentResult> InvokeAsync(GetGovernanceAssignmentArgs args, InvokeOptions? opts = null)
        public static Output<GetGovernanceAssignmentResult> Invoke(GetGovernanceAssignmentInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetGovernanceAssignmentResult> Invoke(GetGovernanceAssignmentInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetGovernanceAssignmentResult> getGovernanceAssignment(GetGovernanceAssignmentArgs args, InvokeOptions options)
    public static Output<GetGovernanceAssignmentResult> getGovernanceAssignment(GetGovernanceAssignmentArgs args, InvokeOptions options)
    public static Output<GetGovernanceAssignmentResult> getGovernanceAssignment(GetGovernanceAssignmentArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: azure-native:security:getGovernanceAssignment
      arguments:
        # arguments dictionary
    data "azure-native_security_get_governance_assignment" "name" {
        # arguments
    }

    The following arguments are supported:

    AssessmentName string
    The assessment key of the governance assignment.
    AssignmentKey string
    The governance assignment key.
    Scope string
    The scope of the governance assignment.
    AssessmentName string
    The assessment key of the governance assignment.
    AssignmentKey string
    The governance assignment key.
    Scope string
    The scope of the governance assignment.
    assessment_name string
    The assessment key of the governance assignment.
    assignment_key string
    The governance assignment key.
    scope string
    The scope of the governance assignment.
    assessmentName String
    The assessment key of the governance assignment.
    assignmentKey String
    The governance assignment key.
    scope String
    The scope of the governance assignment.
    assessmentName string
    The assessment key of the governance assignment.
    assignmentKey string
    The governance assignment key.
    scope string
    The scope of the governance assignment.
    assessment_name str
    The assessment key of the governance assignment.
    assignment_key str
    The governance assignment key.
    scope str
    The scope of the governance assignment.
    assessmentName String
    The assessment key of the governance assignment.
    assignmentKey String
    The governance assignment key.
    scope String
    The scope of the governance assignment.

    getGovernanceAssignment Result

    The following output properties are available:

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Name string
    The name of the resource
    RemediationDueDate string
    The remediation due-date - after this date Secure Score will be affected (in case of active grace-period)
    SystemData Pulumi.AzureNative.Security.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AdditionalData Pulumi.AzureNative.Security.Outputs.GovernanceAssignmentAdditionalDataResponse
    The additional data for the governance assignment - e.g. links to ticket (optional), see example
    GovernanceEmailNotification Pulumi.AzureNative.Security.Outputs.GovernanceEmailNotificationResponse
    The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
    IsGracePeriod bool
    Defines whether there is a grace period on the governance assignment
    Owner string
    The Owner for the governance assignment - e.g. user@contoso.com - see example
    RemediationEta Pulumi.AzureNative.Security.Outputs.RemediationEtaResponse
    The ETA (estimated time of arrival) for remediation (optional), see example
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Name string
    The name of the resource
    RemediationDueDate string
    The remediation due-date - after this date Secure Score will be affected (in case of active grace-period)
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AdditionalData GovernanceAssignmentAdditionalDataResponse
    The additional data for the governance assignment - e.g. links to ticket (optional), see example
    GovernanceEmailNotification GovernanceEmailNotificationResponse
    The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
    IsGracePeriod bool
    Defines whether there is a grace period on the governance assignment
    Owner string
    The Owner for the governance assignment - e.g. user@contoso.com - see example
    RemediationEta RemediationEtaResponse
    The ETA (estimated time of arrival) for remediation (optional), see example
    azure_api_version string
    The Azure API version of the resource.
    id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name string
    The name of the resource
    remediation_due_date string
    The remediation due-date - after this date Secure Score will be affected (in case of active grace-period)
    system_data object
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    additional_data object
    The additional data for the governance assignment - e.g. links to ticket (optional), see example
    governance_email_notification object
    The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
    is_grace_period bool
    Defines whether there is a grace period on the governance assignment
    owner string
    The Owner for the governance assignment - e.g. user@contoso.com - see example
    remediation_eta object
    The ETA (estimated time of arrival) for remediation (optional), see example
    azureApiVersion String
    The Azure API version of the resource.
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name String
    The name of the resource
    remediationDueDate String
    The remediation due-date - after this date Secure Score will be affected (in case of active grace-period)
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    additionalData GovernanceAssignmentAdditionalDataResponse
    The additional data for the governance assignment - e.g. links to ticket (optional), see example
    governanceEmailNotification GovernanceEmailNotificationResponse
    The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
    isGracePeriod Boolean
    Defines whether there is a grace period on the governance assignment
    owner String
    The Owner for the governance assignment - e.g. user@contoso.com - see example
    remediationEta RemediationEtaResponse
    The ETA (estimated time of arrival) for remediation (optional), see example
    azureApiVersion string
    The Azure API version of the resource.
    id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name string
    The name of the resource
    remediationDueDate string
    The remediation due-date - after this date Secure Score will be affected (in case of active grace-period)
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    additionalData GovernanceAssignmentAdditionalDataResponse
    The additional data for the governance assignment - e.g. links to ticket (optional), see example
    governanceEmailNotification GovernanceEmailNotificationResponse
    The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
    isGracePeriod boolean
    Defines whether there is a grace period on the governance assignment
    owner string
    The Owner for the governance assignment - e.g. user@contoso.com - see example
    remediationEta RemediationEtaResponse
    The ETA (estimated time of arrival) for remediation (optional), see example
    azure_api_version str
    The Azure API version of the resource.
    id str
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name str
    The name of the resource
    remediation_due_date str
    The remediation due-date - after this date Secure Score will be affected (in case of active grace-period)
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    additional_data GovernanceAssignmentAdditionalDataResponse
    The additional data for the governance assignment - e.g. links to ticket (optional), see example
    governance_email_notification GovernanceEmailNotificationResponse
    The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
    is_grace_period bool
    Defines whether there is a grace period on the governance assignment
    owner str
    The Owner for the governance assignment - e.g. user@contoso.com - see example
    remediation_eta RemediationEtaResponse
    The ETA (estimated time of arrival) for remediation (optional), see example
    azureApiVersion String
    The Azure API version of the resource.
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name String
    The name of the resource
    remediationDueDate String
    The remediation due-date - after this date Secure Score will be affected (in case of active grace-period)
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    additionalData Property Map
    The additional data for the governance assignment - e.g. links to ticket (optional), see example
    governanceEmailNotification Property Map
    The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
    isGracePeriod Boolean
    Defines whether there is a grace period on the governance assignment
    owner String
    The Owner for the governance assignment - e.g. user@contoso.com - see example
    remediationEta Property Map
    The ETA (estimated time of arrival) for remediation (optional), see example

    Supporting Types

    GovernanceAssignmentAdditionalDataResponse

    TicketLink string
    Ticket link associated with this governance assignment - for example: https://snow.com
    TicketNumber int
    Ticket number associated with this governance assignment
    TicketStatus string
    The ticket status associated with this governance assignment - for example: Active
    TicketLink string
    Ticket link associated with this governance assignment - for example: https://snow.com
    TicketNumber int
    Ticket number associated with this governance assignment
    TicketStatus string
    The ticket status associated with this governance assignment - for example: Active
    ticket_link string
    Ticket link associated with this governance assignment - for example: https://snow.com
    ticket_number number
    Ticket number associated with this governance assignment
    ticket_status string
    The ticket status associated with this governance assignment - for example: Active
    ticketLink String
    Ticket link associated with this governance assignment - for example: https://snow.com
    ticketNumber Integer
    Ticket number associated with this governance assignment
    ticketStatus String
    The ticket status associated with this governance assignment - for example: Active
    ticketLink string
    Ticket link associated with this governance assignment - for example: https://snow.com
    ticketNumber number
    Ticket number associated with this governance assignment
    ticketStatus string
    The ticket status associated with this governance assignment - for example: Active
    ticket_link str
    Ticket link associated with this governance assignment - for example: https://snow.com
    ticket_number int
    Ticket number associated with this governance assignment
    ticket_status str
    The ticket status associated with this governance assignment - for example: Active
    ticketLink String
    Ticket link associated with this governance assignment - for example: https://snow.com
    ticketNumber Number
    Ticket number associated with this governance assignment
    ticketStatus String
    The ticket status associated with this governance assignment - for example: Active

    GovernanceEmailNotificationResponse

    DisableManagerEmailNotification bool
    Exclude manager from weekly email notification.
    DisableOwnerEmailNotification bool
    Exclude owner from weekly email notification.
    DisableManagerEmailNotification bool
    Exclude manager from weekly email notification.
    DisableOwnerEmailNotification bool
    Exclude owner from weekly email notification.
    disable_manager_email_notification bool
    Exclude manager from weekly email notification.
    disable_owner_email_notification bool
    Exclude owner from weekly email notification.
    disableManagerEmailNotification Boolean
    Exclude manager from weekly email notification.
    disableOwnerEmailNotification Boolean
    Exclude owner from weekly email notification.
    disableManagerEmailNotification boolean
    Exclude manager from weekly email notification.
    disableOwnerEmailNotification boolean
    Exclude owner from weekly email notification.
    disable_manager_email_notification bool
    Exclude manager from weekly email notification.
    disable_owner_email_notification bool
    Exclude owner from weekly email notification.
    disableManagerEmailNotification Boolean
    Exclude manager from weekly email notification.
    disableOwnerEmailNotification Boolean
    Exclude owner from weekly email notification.

    RemediationEtaResponse

    Eta string
    ETA for remediation.
    Justification string
    Justification for change of Eta.
    Eta string
    ETA for remediation.
    Justification string
    Justification for change of Eta.
    eta string
    ETA for remediation.
    justification string
    Justification for change of Eta.
    eta String
    ETA for remediation.
    justification String
    Justification for change of Eta.
    eta string
    ETA for remediation.
    justification string
    Justification for change of Eta.
    eta str
    ETA for remediation.
    justification str
    Justification for change of Eta.
    eta String
    ETA for remediation.
    justification String
    Justification for change of Eta.

    SystemDataResponse

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    created_at string
    The timestamp of resource creation (UTC).
    created_by string
    The identity that created the resource.
    created_by_type string
    The type of identity that created the resource.
    last_modified_at string
    The timestamp of resource last modification (UTC)
    last_modified_by string
    The identity that last modified the resource.
    last_modified_by_type string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Viewing docs for Azure Native v3.26.0
    published on Thursday, Aug 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial