assessments_operations
Creates, updates, deletes, gets or lists an assessments_operations resource.
Overview
| Name | assessments_operations |
| Type | Resource |
| Id | azure.migration_assessment.assessments_operations |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_group
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long |
name | string | The name of the resource. |
assessmentErrorSummary | object | Gets or sets the assessment error summary. This is the number of machines affected by each type of error in this assessment. |
assessmentType | string | Assessment type of the assessment. Known values are: "Unknown", "MachineAssessment", "AvsAssessment", "SqlAssessment", and "WebAppAssessment". |
azureDiskTypes | array | Gets or sets the azure storage type. Premium, Standard etc. |
azureHybridUseBenefit | string | Gets or sets the user configurable setting to display the azure hybrid use benefit. Known values are: "Unknown", "Yes", and "No". |
azureLocation | string | Azure Location or Azure region where to which the machines will be migrated. |
azureOfferCode | string | Azure Offer Code. Known values are: "Unknown", "MSAZR0003P", "MSAZR0044P", "MSAZR0059P", "MSAZR0060P", "MSAZR0062P", "MSAZR0063P", "MSAZR0064P", "MSAZR0029P", "MSAZR0022P", "MSAZR0023P", "MSAZR0148P", "MSAZR0025P", "MSAZR0036P", "MSAZR0120P", "MSAZR0121P", "MSAZR0122P", "MSAZR0123P", "MSAZR0124P", "MSAZR0125P", "MSAZR0126P", "MSAZR0127P", "MSAZR0128P", "MSAZR0129P", "MSAZR0130P", "MSAZR0111P", "MSAZR0144P", "MSAZR0149P", "MSMCAZR0044P", "MSMCAZR0059P", "MSMCAZR0060P", "MSMCAZR0063P", "MSMCAZR0120P", "MSMCAZR0121P", "MSMCAZR0125P", "MSMCAZR0128P", "MSAZRDE0003P", "MSAZRDE0044P", "MSAZRUSGOV0003P", "EA", "MSAZR0243P", "SavingsPlan1Year", and "SavingsPlan3Year". |
azurePricingTier | string | Gets or sets Azure Pricing Tier - Free, Basic, etc. Known values are: "Standard" and "Basic". |
azureStorageRedundancy | string | Gets or sets the Azure Storage Redundancy. Example: Locally Redundant Storage. Known values are: "Unknown", "LocallyRedundant", "ZoneRedundant", "GeoRedundant", and "ReadAccessGeoRedundant". |
azureVmFamilies | array | Gets or sets the Azure VM families. |
confidenceRatingInPercentage | number | Confidence Rating in Percentage. |
costComponents | array | Gets the collection of cost components. |
createdTimestamp | string (date-time) | Date and Time when assessment was created. |
currency | string | Currency in which prices should be reported. Known values are: "Unknown", "USD", "DKK", "CAD", "IDR", "JPY", "KRW", "NZD", "NOK", "RUB", "SAR", "ZAR", "SEK", "TRY", "GBP", "MXN", "MYR", "INR", "HKD", "BRL", "TWD", "EUR", "CHF", "ARS", "AUD", "CNY", and "TRY". |
discountPercentage | number | Custom discount percentage. |
distributionByOsName | object | Gets the distribution by os name. |
distributionByServicePackInsight | object | Gets the distribution distribution of sqlInstances by service pack insight. |
distributionBySupportStatus | object | Gets the distribution of sqlInstances by support status. |
eaSubscriptionId | string | Gets or sets enterprise agreement subscription id. |
groupType | string | Gets the group type for the assessment. Known values are: "Default", "Import", and "Import". |
monthlyBandwidthCost | number | Gets or sets the aggregate Bandwidth Cost for all machines in the assessment. |
monthlyComputeCost | number | Gets or sets the aggregate Compute Cost for all machines in the assessment. |
monthlyPremiumStorageCost | number | Gets or sets the aggregate premium storage cost for all machines in the assessment. |
monthlyStandardSsdStorageCost | number | Gets or sets the aggregate standard SSD storage cost for all the machines in the assessment. |
monthlyStorageCost | number | Gets or sets the aggregate Storage Cost for all machines in the assessment. |
monthlyUltraStorageCost | number | Gets or sets the aggregate ultra storage cost for all machines in the assessment. |
numberOfMachines | integer | Gets or sets the Number of machines part of the assessment. |
percentile | string | Percentile of the utilization data values to be considered while assessing machines. Known values are: "Percentile50", "Percentile90", "Percentile95", and "Percentile99". |
perfDataEndTime | string (date-time) | Gets or sets the end time to consider performance data for assessment. |
perfDataStartTime | string (date-time) | Gets or sets the start time to consider performance data for assessment. |
pricesTimestamp | string (date-time) | Last time when rates were queried. |
provisioningState | string | The status of the last operation. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". |
reservedInstance | string | Gets or sets the Azure Reserved Instance - 1-Year, 3-Year. Known values are: "None", "RI1Year", and "RI3Year". |
scalingFactor | number | Percentage of buffer that user wants on performance metrics when recommending Azure sizes. |
schemaVersion | string | Schema version. |
sizingCriterion | string | Assessment sizing criterion. Known values are: "PerformanceBased" and "AsOnPremises". |
stage | string | User configurable setting to display the Stage of Assessment. Known values are: "InProgress", "UnderReview", and "Approved". |
status | string | Whether assessment is in valid state and all machines have been assessed. Known values are: "Created", "Updated", "Running", "Completed", "Invalid", "OutOfSync", "OutDated", and "Deleted". |
suitabilitySummary | object | Gets or sets the Cloud suitability summary for all the machines in the assessment. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
timeRange | string | Time Range for which the historic utilization data should be considered for assessment. Known values are: "Day", "Week", "Month", and "Custom". |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
updatedTimestamp | string (date-time) | Date and Time when assessment was last updated. |
vmUptime | object | Gets or sets the duration for which the VMs are up in the on-premises environment. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long |
name | string | The name of the resource. |
assessmentErrorSummary | object | Gets or sets the assessment error summary. This is the number of machines affected by each type of error in this assessment. |
assessmentType | string | Assessment type of the assessment. Known values are: "Unknown", "MachineAssessment", "AvsAssessment", "SqlAssessment", and "WebAppAssessment". |
azureDiskTypes | array | Gets or sets the azure storage type. Premium, Standard etc. |
azureHybridUseBenefit | string | Gets or sets the user configurable setting to display the azure hybrid use benefit. Known values are: "Unknown", "Yes", and "No". |
azureLocation | string | Azure Location or Azure region where to which the machines will be migrated. |
azureOfferCode | string | Azure Offer Code. Known values are: "Unknown", "MSAZR0003P", "MSAZR0044P", "MSAZR0059P", "MSAZR0060P", "MSAZR0062P", "MSAZR0063P", "MSAZR0064P", "MSAZR0029P", "MSAZR0022P", "MSAZR0023P", "MSAZR0148P", "MSAZR0025P", "MSAZR0036P", "MSAZR0120P", "MSAZR0121P", "MSAZR0122P", "MSAZR0123P", "MSAZR0124P", "MSAZR0125P", "MSAZR0126P", "MSAZR0127P", "MSAZR0128P", "MSAZR0129P", "MSAZR0130P", "MSAZR0111P", "MSAZR0144P", "MSAZR0149P", "MSMCAZR0044P", "MSMCAZR0059P", "MSMCAZR0060P", "MSMCAZR0063P", "MSMCAZR0120P", "MSMCAZR0121P", "MSMCAZR0125P", "MSMCAZR0128P", "MSAZRDE0003P", "MSAZRDE0044P", "MSAZRUSGOV0003P", "EA", "MSAZR0243P", "SavingsPlan1Year", and "SavingsPlan3Year". |
azurePricingTier | string | Gets or sets Azure Pricing Tier - Free, Basic, etc. Known values are: "Standard" and "Basic". |
azureStorageRedundancy | string | Gets or sets the Azure Storage Redundancy. Example: Locally Redundant Storage. Known values are: "Unknown", "LocallyRedundant", "ZoneRedundant", "GeoRedundant", and "ReadAccessGeoRedundant". |
azureVmFamilies | array | Gets or sets the Azure VM families. |
confidenceRatingInPercentage | number | Confidence Rating in Percentage. |
costComponents | array | Gets the collection of cost components. |
createdTimestamp | string (date-time) | Date and Time when assessment was created. |
currency | string | Currency in which prices should be reported. Known values are: "Unknown", "USD", "DKK", "CAD", "IDR", "JPY", "KRW", "NZD", "NOK", "RUB", "SAR", "ZAR", "SEK", "TRY", "GBP", "MXN", "MYR", "INR", "HKD", "BRL", "TWD", "EUR", "CHF", "ARS", "AUD", "CNY", and "TRY". |
discountPercentage | number | Custom discount percentage. |
distributionByOsName | object | Gets the distribution by os name. |
distributionByServicePackInsight | object | Gets the distribution distribution of sqlInstances by service pack insight. |
distributionBySupportStatus | object | Gets the distribution of sqlInstances by support status. |
eaSubscriptionId | string | Gets or sets enterprise agreement subscription id. |
groupType | string | Gets the group type for the assessment. Known values are: "Default", "Import", and "Import". |
monthlyBandwidthCost | number | Gets or sets the aggregate Bandwidth Cost for all machines in the assessment. |
monthlyComputeCost | number | Gets or sets the aggregate Compute Cost for all machines in the assessment. |
monthlyPremiumStorageCost | number | Gets or sets the aggregate premium storage cost for all machines in the assessment. |
monthlyStandardSsdStorageCost | number | Gets or sets the aggregate standard SSD storage cost for all the machines in the assessment. |
monthlyStorageCost | number | Gets or sets the aggregate Storage Cost for all machines in the assessment. |
monthlyUltraStorageCost | number | Gets or sets the aggregate ultra storage cost for all machines in the assessment. |
numberOfMachines | integer | Gets or sets the Number of machines part of the assessment. |
percentile | string | Percentile of the utilization data values to be considered while assessing machines. Known values are: "Percentile50", "Percentile90", "Percentile95", and "Percentile99". |
perfDataEndTime | string (date-time) | Gets or sets the end time to consider performance data for assessment. |
perfDataStartTime | string (date-time) | Gets or sets the start time to consider performance data for assessment. |
pricesTimestamp | string (date-time) | Last time when rates were queried. |
provisioningState | string | The status of the last operation. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". |
reservedInstance | string | Gets or sets the Azure Reserved Instance - 1-Year, 3-Year. Known values are: "None", "RI1Year", and "RI3Year". |
scalingFactor | number | Percentage of buffer that user wants on performance metrics when recommending Azure sizes. |
schemaVersion | string | Schema version. |
sizingCriterion | string | Assessment sizing criterion. Known values are: "PerformanceBased" and "AsOnPremises". |
stage | string | User configurable setting to display the Stage of Assessment. Known values are: "InProgress", "UnderReview", and "Approved". |
status | string | Whether assessment is in valid state and all machines have been assessed. Known values are: "Created", "Updated", "Running", "Completed", "Invalid", "OutOfSync", "OutDated", and "Deleted". |
suitabilitySummary | object | Gets or sets the Cloud suitability summary for all the machines in the assessment. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
timeRange | string | Time Range for which the historic utilization data should be considered for assessment. Known values are: "Day", "Week", "Month", and "Custom". |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
updatedTimestamp | string (date-time) | Date and Time when assessment was last updated. |
vmUptime | object | Gets or sets the duration for which the VMs are up in the on-premises environment. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, project_name, group_name, assessment_name, subscription_id | Get a Assessment. | |
list_by_group | select | resource_group_name, project_name, group_name, subscription_id | List Assessment resources by Group. | |
create | insert | resource_group_name, project_name, group_name, assessment_name, subscription_id | Create a Assessment. | |
delete | delete | resource_group_name, project_name, group_name, assessment_name, subscription_id | Delete a Assessment. | |
download_url | exec | resource_group_name, project_name, group_name, assessment_name, subscription_id | Get download URL for the assessment report. Get the URL for downloading the assessment in a report format. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
assessment_name | string | Machine Assessment ARM name. Required. |
group_name | string | Group ARM name. Required. |
project_name | string | Assessment Project Name. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get
- list_by_group
Get a Assessment.
SELECT
id,
name,
assessmentErrorSummary,
assessmentType,
azureDiskTypes,
azureHybridUseBenefit,
azureLocation,
azureOfferCode,
azurePricingTier,
azureStorageRedundancy,
azureVmFamilies,
confidenceRatingInPercentage,
costComponents,
createdTimestamp,
currency,
discountPercentage,
distributionByOsName,
distributionByServicePackInsight,
distributionBySupportStatus,
eaSubscriptionId,
groupType,
monthlyBandwidthCost,
monthlyComputeCost,
monthlyPremiumStorageCost,
monthlyStandardSsdStorageCost,
monthlyStorageCost,
monthlyUltraStorageCost,
numberOfMachines,
percentile,
perfDataEndTime,
perfDataStartTime,
pricesTimestamp,
provisioningState,
reservedInstance,
scalingFactor,
schemaVersion,
sizingCriterion,
stage,
status,
suitabilitySummary,
systemData,
timeRange,
type,
updatedTimestamp,
vmUptime
FROM azure.migration_assessment.assessments_operations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND group_name = '{{ group_name }}' -- required
AND assessment_name = '{{ assessment_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
List Assessment resources by Group.
SELECT
id,
name,
assessmentErrorSummary,
assessmentType,
azureDiskTypes,
azureHybridUseBenefit,
azureLocation,
azureOfferCode,
azurePricingTier,
azureStorageRedundancy,
azureVmFamilies,
confidenceRatingInPercentage,
costComponents,
createdTimestamp,
currency,
discountPercentage,
distributionByOsName,
distributionByServicePackInsight,
distributionBySupportStatus,
eaSubscriptionId,
groupType,
monthlyBandwidthCost,
monthlyComputeCost,
monthlyPremiumStorageCost,
monthlyStandardSsdStorageCost,
monthlyStorageCost,
monthlyUltraStorageCost,
numberOfMachines,
percentile,
perfDataEndTime,
perfDataStartTime,
pricesTimestamp,
provisioningState,
reservedInstance,
scalingFactor,
schemaVersion,
sizingCriterion,
stage,
status,
suitabilitySummary,
systemData,
timeRange,
type,
updatedTimestamp,
vmUptime
FROM azure.migration_assessment.assessments_operations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND group_name = '{{ group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create
- Manifest
Create a Assessment.
INSERT INTO azure.migration_assessment.assessments_operations (
properties,
resource_group_name,
project_name,
group_name,
assessment_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ project_name }}',
'{{ group_name }}',
'{{ assessment_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;
# Description fields are for documentation purposes
- name: assessments_operations
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the assessments_operations resource.
- name: project_name
value: "{{ project_name }}"
description: Required parameter for the assessments_operations resource.
- name: group_name
value: "{{ group_name }}"
description: Required parameter for the assessments_operations resource.
- name: assessment_name
value: "{{ assessment_name }}"
description: Required parameter for the assessments_operations resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the assessments_operations resource.
- name: properties
description: |
The resource-specific properties for this resource.
value:
provisioningState: "{{ provisioningState }}"
assessmentErrorSummary: "{{ assessmentErrorSummary }}"
monthlyUltraStorageCost: {{ monthlyUltraStorageCost }}
costComponents:
- name: "{{ name }}"
value: {{ value }}
description: "{{ description }}"
eaSubscriptionId: "{{ eaSubscriptionId }}"
azurePricingTier: "{{ azurePricingTier }}"
azureStorageRedundancy: "{{ azureStorageRedundancy }}"
reservedInstance: "{{ reservedInstance }}"
azureHybridUseBenefit: "{{ azureHybridUseBenefit }}"
azureDiskTypes:
- "{{ azureDiskTypes }}"
azureVmFamilies:
- "{{ azureVmFamilies }}"
distributionBySupportStatus: "{{ distributionBySupportStatus }}"
distributionByServicePackInsight: "{{ distributionByServicePackInsight }}"
distributionByOsName: "{{ distributionByOsName }}"
monthlyComputeCost: {{ monthlyComputeCost }}
monthlyBandwidthCost: {{ monthlyBandwidthCost }}
monthlyStorageCost: {{ monthlyStorageCost }}
monthlyPremiumStorageCost: {{ monthlyPremiumStorageCost }}
monthlyStandardSsdStorageCost: {{ monthlyStandardSsdStorageCost }}
suitabilitySummary: "{{ suitabilitySummary }}"
numberOfMachines: {{ numberOfMachines }}
vmUptime:
daysPerMonth: {{ daysPerMonth }}
hoursPerDay: {{ hoursPerDay }}
groupType: "{{ groupType }}"
assessmentType: "{{ assessmentType }}"
azureLocation: "{{ azureLocation }}"
azureOfferCode: "{{ azureOfferCode }}"
currency: "{{ currency }}"
scalingFactor: {{ scalingFactor }}
percentile: "{{ percentile }}"
timeRange: "{{ timeRange }}"
perfDataStartTime: "{{ perfDataStartTime }}"
perfDataEndTime: "{{ perfDataEndTime }}"
stage: "{{ stage }}"
discountPercentage: {{ discountPercentage }}
sizingCriterion: "{{ sizingCriterion }}"
confidenceRatingInPercentage: {{ confidenceRatingInPercentage }}
pricesTimestamp: "{{ pricesTimestamp }}"
createdTimestamp: "{{ createdTimestamp }}"
updatedTimestamp: "{{ updatedTimestamp }}"
status: "{{ status }}"
schemaVersion: "{{ schemaVersion }}"
DELETE examples
- delete
Delete a Assessment.
DELETE FROM azure.migration_assessment.assessments_operations
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND project_name = '{{ project_name }}' --required
AND group_name = '{{ group_name }}' --required
AND assessment_name = '{{ assessment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;
Lifecycle Methods
- download_url
Get download URL for the assessment report. Get the URL for downloading the assessment in a report format.
EXEC azure.migration_assessment.assessments_operations.download_url
@resource_group_name='{{ resource_group_name }}' --required,
@project_name='{{ project_name }}' --required,
@group_name='{{ group_name }}' --required,
@assessment_name='{{ assessment_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;