These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi
azure-native-v2.security.getAssessment
Explore with Pulumi AI
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi
Get a security assessment on your scanned resource Azure REST API version: 2021-06-01.
Other available API versions: 2020-01-01.
Using getAssessment
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 getAssessment(args: GetAssessmentArgs, opts?: InvokeOptions): Promise<GetAssessmentResult>
function getAssessmentOutput(args: GetAssessmentOutputArgs, opts?: InvokeOptions): Output<GetAssessmentResult>
def get_assessment(assessment_name: Optional[str] = None,
expand: Optional[str] = None,
resource_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAssessmentResult
def get_assessment_output(assessment_name: Optional[pulumi.Input[str]] = None,
expand: Optional[pulumi.Input[str]] = None,
resource_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAssessmentResult]
func LookupAssessment(ctx *Context, args *LookupAssessmentArgs, opts ...InvokeOption) (*LookupAssessmentResult, error)
func LookupAssessmentOutput(ctx *Context, args *LookupAssessmentOutputArgs, opts ...InvokeOption) LookupAssessmentResultOutput
> Note: This function is named LookupAssessment
in the Go SDK.
public static class GetAssessment
{
public static Task<GetAssessmentResult> InvokeAsync(GetAssessmentArgs args, InvokeOptions? opts = null)
public static Output<GetAssessmentResult> Invoke(GetAssessmentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAssessmentResult> getAssessment(GetAssessmentArgs args, InvokeOptions options)
public static Output<GetAssessmentResult> getAssessment(GetAssessmentArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:security:getAssessment
arguments:
# arguments dictionary
The following arguments are supported:
- Assessment
Name This property is required. Changes to this property will trigger replacement.
- The Assessment Key - Unique key for the assessment type
- Resource
Id This property is required. Changes to this property will trigger replacement.
- The identifier of the resource.
- Expand string
- OData expand. Optional.
- Assessment
Name This property is required. Changes to this property will trigger replacement.
- The Assessment Key - Unique key for the assessment type
- Resource
Id This property is required. Changes to this property will trigger replacement.
- The identifier of the resource.
- Expand string
- OData expand. Optional.
- assessment
Name This property is required. Changes to this property will trigger replacement.
- The Assessment Key - Unique key for the assessment type
- resource
Id This property is required. Changes to this property will trigger replacement.
- The identifier of the resource.
- expand String
- OData expand. Optional.
- assessment
Name This property is required. Changes to this property will trigger replacement.
- The Assessment Key - Unique key for the assessment type
- resource
Id This property is required. Changes to this property will trigger replacement.
- The identifier of the resource.
- expand string
- OData expand. Optional.
- assessment_
name This property is required. Changes to this property will trigger replacement.
- The Assessment Key - Unique key for the assessment type
- resource_
id This property is required. Changes to this property will trigger replacement.
- The identifier of the resource.
- expand str
- OData expand. Optional.
- assessment
Name This property is required. Changes to this property will trigger replacement.
- The Assessment Key - Unique key for the assessment type
- resource
Id This property is required. Changes to this property will trigger replacement.
- The identifier of the resource.
- expand String
- OData expand. Optional.
getAssessment Result
The following output properties are available:
- Display
Name string - User friendly display name of the assessment
- Id string
- Resource Id
- Links
Pulumi.
Azure Native. Security. Outputs. Assessment Links Response - Links relevant to the assessment
- Name string
- Resource name
- Resource
Details Pulumi.Azure | Pulumi.Native. Security. Outputs. Azure Resource Details Response Azure | Pulumi.Native. Security. Outputs. On Premise Resource Details Response Azure Native. Security. Outputs. On Premise Sql Resource Details Response - Details of the resource that was assessed
- Status
Pulumi.
Azure Native. Security. Outputs. Assessment Status Response Response - The result of the assessment
- Type string
- Resource type
- Additional
Data Dictionary<string, string> - Additional data regarding the assessment
- Metadata
Pulumi.
Azure Native. Security. Outputs. Security Assessment Metadata Properties Response - Describes properties of an assessment metadata.
- Partners
Data Pulumi.Azure Native. Security. Outputs. Security Assessment Partner Data Response - Data regarding 3rd party partner integration
- Display
Name string - User friendly display name of the assessment
- Id string
- Resource Id
- Links
Assessment
Links Response - Links relevant to the assessment
- Name string
- Resource name
- Resource
Details AzureResource | OnDetails Response Premise | OnResource Details Response Premise Sql Resource Details Response - Details of the resource that was assessed
- Status
Assessment
Status Response Response - The result of the assessment
- Type string
- Resource type
- Additional
Data map[string]string - Additional data regarding the assessment
- Metadata
Security
Assessment Metadata Properties Response - Describes properties of an assessment metadata.
- Partners
Data SecurityAssessment Partner Data Response - Data regarding 3rd party partner integration
- display
Name String - User friendly display name of the assessment
- id String
- Resource Id
- links
Assessment
Links Response - Links relevant to the assessment
- name String
- Resource name
- resource
Details AzureResource | OnDetails Response Premise | OnResource Details Response Premise Sql Resource Details Response - Details of the resource that was assessed
- status
Assessment
Status Response Response - The result of the assessment
- type String
- Resource type
- additional
Data Map<String,String> - Additional data regarding the assessment
- metadata
Security
Assessment Metadata Properties Response - Describes properties of an assessment metadata.
- partners
Data SecurityAssessment Partner Data Response - Data regarding 3rd party partner integration
- display
Name string - User friendly display name of the assessment
- id string
- Resource Id
- links
Assessment
Links Response - Links relevant to the assessment
- name string
- Resource name
- resource
Details AzureResource | OnDetails Response Premise | OnResource Details Response Premise Sql Resource Details Response - Details of the resource that was assessed
- status
Assessment
Status Response Response - The result of the assessment
- type string
- Resource type
- additional
Data {[key: string]: string} - Additional data regarding the assessment
- metadata
Security
Assessment Metadata Properties Response - Describes properties of an assessment metadata.
- partners
Data SecurityAssessment Partner Data Response - Data regarding 3rd party partner integration
- display_
name str - User friendly display name of the assessment
- id str
- Resource Id
- links
Assessment
Links Response - Links relevant to the assessment
- name str
- Resource name
- resource_
details AzureResource | OnDetails Response Premise | OnResource Details Response Premise Sql Resource Details Response - Details of the resource that was assessed
- status
Assessment
Status Response Response - The result of the assessment
- type str
- Resource type
- additional_
data Mapping[str, str] - Additional data regarding the assessment
- metadata
Security
Assessment Metadata Properties Response - Describes properties of an assessment metadata.
- partners_
data SecurityAssessment Partner Data Response - Data regarding 3rd party partner integration
- display
Name String - User friendly display name of the assessment
- id String
- Resource Id
- links Property Map
- Links relevant to the assessment
- name String
- Resource name
- resource
Details Property Map | Property Map | Property Map - Details of the resource that was assessed
- status Property Map
- The result of the assessment
- type String
- Resource type
- additional
Data Map<String> - Additional data regarding the assessment
- metadata Property Map
- Describes properties of an assessment metadata.
- partners
Data Property Map - Data regarding 3rd party partner integration
Supporting Types
AssessmentLinksResponse
- Azure
Portal Uri This property is required. string - Link to assessment in Azure Portal
- Azure
Portal Uri This property is required. string - Link to assessment in Azure Portal
- azure
Portal Uri This property is required. String - Link to assessment in Azure Portal
- azure
Portal Uri This property is required. string - Link to assessment in Azure Portal
- azure_
portal_ uri This property is required. str - Link to assessment in Azure Portal
- azure
Portal Uri This property is required. String - Link to assessment in Azure Portal
AssessmentStatusResponseResponse
- Code
This property is required. string - Programmatic code for the status of the assessment
- First
Evaluation Date This property is required. string - The time that the assessment was created and first evaluated. Returned as UTC time in ISO 8601 format
- Status
Change Date This property is required. string - The time that the status of the assessment last changed. Returned as UTC time in ISO 8601 format
- Cause string
- Programmatic code for the cause of the assessment status
- Description string
- Human readable description of the assessment status
- Code
This property is required. string - Programmatic code for the status of the assessment
- First
Evaluation Date This property is required. string - The time that the assessment was created and first evaluated. Returned as UTC time in ISO 8601 format
- Status
Change Date This property is required. string - The time that the status of the assessment last changed. Returned as UTC time in ISO 8601 format
- Cause string
- Programmatic code for the cause of the assessment status
- Description string
- Human readable description of the assessment status
- code
This property is required. String - Programmatic code for the status of the assessment
- first
Evaluation Date This property is required. String - The time that the assessment was created and first evaluated. Returned as UTC time in ISO 8601 format
- status
Change Date This property is required. String - The time that the status of the assessment last changed. Returned as UTC time in ISO 8601 format
- cause String
- Programmatic code for the cause of the assessment status
- description String
- Human readable description of the assessment status
- code
This property is required. string - Programmatic code for the status of the assessment
- first
Evaluation Date This property is required. string - The time that the assessment was created and first evaluated. Returned as UTC time in ISO 8601 format
- status
Change Date This property is required. string - The time that the status of the assessment last changed. Returned as UTC time in ISO 8601 format
- cause string
- Programmatic code for the cause of the assessment status
- description string
- Human readable description of the assessment status
- code
This property is required. str - Programmatic code for the status of the assessment
- first_
evaluation_ date This property is required. str - The time that the assessment was created and first evaluated. Returned as UTC time in ISO 8601 format
- status_
change_ date This property is required. str - The time that the status of the assessment last changed. Returned as UTC time in ISO 8601 format
- cause str
- Programmatic code for the cause of the assessment status
- description str
- Human readable description of the assessment status
- code
This property is required. String - Programmatic code for the status of the assessment
- first
Evaluation Date This property is required. String - The time that the assessment was created and first evaluated. Returned as UTC time in ISO 8601 format
- status
Change Date This property is required. String - The time that the status of the assessment last changed. Returned as UTC time in ISO 8601 format
- cause String
- Programmatic code for the cause of the assessment status
- description String
- Human readable description of the assessment status
AzureResourceDetailsResponse
- Id
This property is required. string - Azure resource Id of the assessed resource
- Id
This property is required. string - Azure resource Id of the assessed resource
- id
This property is required. String - Azure resource Id of the assessed resource
- id
This property is required. string - Azure resource Id of the assessed resource
- id
This property is required. str - Azure resource Id of the assessed resource
- id
This property is required. String - Azure resource Id of the assessed resource
OnPremiseResourceDetailsResponse
- Machine
Name This property is required. string - The name of the machine
- Source
Computer Id This property is required. string - The oms agent Id installed on the machine
- Vmuuid
This property is required. string - The unique Id of the machine
- Workspace
Id This property is required. string - Azure resource Id of the workspace the machine is attached to
- Machine
Name This property is required. string - The name of the machine
- Source
Computer Id This property is required. string - The oms agent Id installed on the machine
- Vmuuid
This property is required. string - The unique Id of the machine
- Workspace
Id This property is required. string - Azure resource Id of the workspace the machine is attached to
- machine
Name This property is required. String - The name of the machine
- source
Computer Id This property is required. String - The oms agent Id installed on the machine
- vmuuid
This property is required. String - The unique Id of the machine
- workspace
Id This property is required. String - Azure resource Id of the workspace the machine is attached to
- machine
Name This property is required. string - The name of the machine
- source
Computer Id This property is required. string - The oms agent Id installed on the machine
- vmuuid
This property is required. string - The unique Id of the machine
- workspace
Id This property is required. string - Azure resource Id of the workspace the machine is attached to
- machine_
name This property is required. str - The name of the machine
- source_
computer_ id This property is required. str - The oms agent Id installed on the machine
- vmuuid
This property is required. str - The unique Id of the machine
- workspace_
id This property is required. str - Azure resource Id of the workspace the machine is attached to
- machine
Name This property is required. String - The name of the machine
- source
Computer Id This property is required. String - The oms agent Id installed on the machine
- vmuuid
This property is required. String - The unique Id of the machine
- workspace
Id This property is required. String - Azure resource Id of the workspace the machine is attached to
OnPremiseSqlResourceDetailsResponse
- Database
Name This property is required. string - The Sql database name installed on the machine
- Machine
Name This property is required. string - The name of the machine
- Server
Name This property is required. string - The Sql server name installed on the machine
- Source
Computer Id This property is required. string - The oms agent Id installed on the machine
- Vmuuid
This property is required. string - The unique Id of the machine
- Workspace
Id This property is required. string - Azure resource Id of the workspace the machine is attached to
- Database
Name This property is required. string - The Sql database name installed on the machine
- Machine
Name This property is required. string - The name of the machine
- Server
Name This property is required. string - The Sql server name installed on the machine
- Source
Computer Id This property is required. string - The oms agent Id installed on the machine
- Vmuuid
This property is required. string - The unique Id of the machine
- Workspace
Id This property is required. string - Azure resource Id of the workspace the machine is attached to
- database
Name This property is required. String - The Sql database name installed on the machine
- machine
Name This property is required. String - The name of the machine
- server
Name This property is required. String - The Sql server name installed on the machine
- source
Computer Id This property is required. String - The oms agent Id installed on the machine
- vmuuid
This property is required. String - The unique Id of the machine
- workspace
Id This property is required. String - Azure resource Id of the workspace the machine is attached to
- database
Name This property is required. string - The Sql database name installed on the machine
- machine
Name This property is required. string - The name of the machine
- server
Name This property is required. string - The Sql server name installed on the machine
- source
Computer Id This property is required. string - The oms agent Id installed on the machine
- vmuuid
This property is required. string - The unique Id of the machine
- workspace
Id This property is required. string - Azure resource Id of the workspace the machine is attached to
- database_
name This property is required. str - The Sql database name installed on the machine
- machine_
name This property is required. str - The name of the machine
- server_
name This property is required. str - The Sql server name installed on the machine
- source_
computer_ id This property is required. str - The oms agent Id installed on the machine
- vmuuid
This property is required. str - The unique Id of the machine
- workspace_
id This property is required. str - Azure resource Id of the workspace the machine is attached to
- database
Name This property is required. String - The Sql database name installed on the machine
- machine
Name This property is required. String - The name of the machine
- server
Name This property is required. String - The Sql server name installed on the machine
- source
Computer Id This property is required. String - The oms agent Id installed on the machine
- vmuuid
This property is required. String - The unique Id of the machine
- workspace
Id This property is required. String - Azure resource Id of the workspace the machine is attached to
SecurityAssessmentMetadataPartnerDataResponse
- Partner
Name This property is required. string - Name of the company of the partner
- Secret
This property is required. string - Secret to authenticate the partner and verify it created the assessment - write only
- Product
Name string - Name of the product of the partner that created the assessment
- Partner
Name This property is required. string - Name of the company of the partner
- Secret
This property is required. string - Secret to authenticate the partner and verify it created the assessment - write only
- Product
Name string - Name of the product of the partner that created the assessment
- partner
Name This property is required. String - Name of the company of the partner
- secret
This property is required. String - Secret to authenticate the partner and verify it created the assessment - write only
- product
Name String - Name of the product of the partner that created the assessment
- partner
Name This property is required. string - Name of the company of the partner
- secret
This property is required. string - Secret to authenticate the partner and verify it created the assessment - write only
- product
Name string - Name of the product of the partner that created the assessment
- partner_
name This property is required. str - Name of the company of the partner
- secret
This property is required. str - Secret to authenticate the partner and verify it created the assessment - write only
- product_
name str - Name of the product of the partner that created the assessment
- partner
Name This property is required. String - Name of the company of the partner
- secret
This property is required. String - Secret to authenticate the partner and verify it created the assessment - write only
- product
Name String - Name of the product of the partner that created the assessment
SecurityAssessmentMetadataPropertiesResponse
- Assessment
Type This property is required. string - BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition
- Display
Name This property is required. string - User friendly display name of the assessment
- Policy
Definition Id This property is required. string - Azure resource ID of the policy definition that turns this assessment calculation on
- Severity
This property is required. string - The severity level of the assessment
- Categories List<string>
- Description string
- Human readable description of the assessment
- Implementation
Effort string - The implementation effort required to remediate this assessment
- Partner
Data Pulumi.Azure Native. Security. Inputs. Security Assessment Metadata Partner Data Response - Describes the partner that created the assessment
- Preview bool
- True if this assessment is in preview release status
- Remediation
Description string - Human readable description of what you should do to mitigate this security issue
- Threats List<string>
- User
Impact string - The user impact of the assessment
- Assessment
Type This property is required. string - BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition
- Display
Name This property is required. string - User friendly display name of the assessment
- Policy
Definition Id This property is required. string - Azure resource ID of the policy definition that turns this assessment calculation on
- Severity
This property is required. string - The severity level of the assessment
- Categories []string
- Description string
- Human readable description of the assessment
- Implementation
Effort string - The implementation effort required to remediate this assessment
- Partner
Data SecurityAssessment Metadata Partner Data Response - Describes the partner that created the assessment
- Preview bool
- True if this assessment is in preview release status
- Remediation
Description string - Human readable description of what you should do to mitigate this security issue
- Threats []string
- User
Impact string - The user impact of the assessment
- assessment
Type This property is required. String - BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition
- display
Name This property is required. String - User friendly display name of the assessment
- policy
Definition Id This property is required. String - Azure resource ID of the policy definition that turns this assessment calculation on
- severity
This property is required. String - The severity level of the assessment
- categories List<String>
- description String
- Human readable description of the assessment
- implementation
Effort String - The implementation effort required to remediate this assessment
- partner
Data SecurityAssessment Metadata Partner Data Response - Describes the partner that created the assessment
- preview Boolean
- True if this assessment is in preview release status
- remediation
Description String - Human readable description of what you should do to mitigate this security issue
- threats List<String>
- user
Impact String - The user impact of the assessment
- assessment
Type This property is required. string - BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition
- display
Name This property is required. string - User friendly display name of the assessment
- policy
Definition Id This property is required. string - Azure resource ID of the policy definition that turns this assessment calculation on
- severity
This property is required. string - The severity level of the assessment
- categories string[]
- description string
- Human readable description of the assessment
- implementation
Effort string - The implementation effort required to remediate this assessment
- partner
Data SecurityAssessment Metadata Partner Data Response - Describes the partner that created the assessment
- preview boolean
- True if this assessment is in preview release status
- remediation
Description string - Human readable description of what you should do to mitigate this security issue
- threats string[]
- user
Impact string - The user impact of the assessment
- assessment_
type This property is required. str - BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition
- display_
name This property is required. str - User friendly display name of the assessment
- policy_
definition_ id This property is required. str - Azure resource ID of the policy definition that turns this assessment calculation on
- severity
This property is required. str - The severity level of the assessment
- categories Sequence[str]
- description str
- Human readable description of the assessment
- implementation_
effort str - The implementation effort required to remediate this assessment
- partner_
data SecurityAssessment Metadata Partner Data Response - Describes the partner that created the assessment
- preview bool
- True if this assessment is in preview release status
- remediation_
description str - Human readable description of what you should do to mitigate this security issue
- threats Sequence[str]
- user_
impact str - The user impact of the assessment
- assessment
Type This property is required. String - BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition
- display
Name This property is required. String - User friendly display name of the assessment
- policy
Definition Id This property is required. String - Azure resource ID of the policy definition that turns this assessment calculation on
- severity
This property is required. String - The severity level of the assessment
- categories List<String>
- description String
- Human readable description of the assessment
- implementation
Effort String - The implementation effort required to remediate this assessment
- partner
Data Property Map - Describes the partner that created the assessment
- preview Boolean
- True if this assessment is in preview release status
- remediation
Description String - Human readable description of what you should do to mitigate this security issue
- threats List<String>
- user
Impact String - The user impact of the assessment
SecurityAssessmentPartnerDataResponse
- Partner
Name This property is required. string - Name of the company of the partner
- Secret
This property is required. string - secret to authenticate the partner - write only
- Partner
Name This property is required. string - Name of the company of the partner
- Secret
This property is required. string - secret to authenticate the partner - write only
- partner
Name This property is required. String - Name of the company of the partner
- secret
This property is required. String - secret to authenticate the partner - write only
- partner
Name This property is required. string - Name of the company of the partner
- secret
This property is required. string - secret to authenticate the partner - write only
- partner_
name This property is required. str - Name of the company of the partner
- secret
This property is required. str - secret to authenticate the partner - write only
- partner
Name This property is required. String - Name of the company of the partner
- secret
This property is required. String - secret to authenticate the partner - write only
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi