MICROSOFT.ADVISOR

AdvisorScores_Get

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.name == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

AdvisorScores_List

valid {
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

Configurations_CreateInResourceGroup

enum_ConfigDataPropertiesDuration := [ "7", "14", "21", "30", "60", "90" ]
enum_ConfigDataPropertiesLowCpuThreshold := [ "5", "10", "15", "20" ]
enum_ConfigurationNameParameter := [ "default" ]
enum_DigestConfigCategories := [ "HighAvailability", "Security", "Performance", "Cost", "OperationalExcellence" ]
enum_DigestConfigState := [ "Active", "Disabled" ]

valid {
    input.Body.properties.exclude == BOOLEAN
    input.Body.properties.lowCpuThreshold == enum_ConfigDataPropertiesLowCpuThreshold[_]
    input.Body.properties.duration == enum_ConfigDataPropertiesDuration[_]
    input.Body.properties.digests[_].name == STRING
    input.Body.properties.digests[_].actionGroupResourceId == STRING
    input.Body.properties.digests[_].frequency == INTEGER
    input.Body.properties.digests[_].categories[_] == enum_DigestConfigCategories[_]
    input.Body.properties.digests[_].language == STRING
    input.Body.properties.digests[_].state == enum_DigestConfigState[_]
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.configurationName == enum_ConfigurationNameParameter[_]
    input.ReqMap.ResourceGroup == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Configurations_CreateInSubscription

enum_ConfigDataPropertiesDuration := [ "7", "14", "21", "30", "60", "90" ]
enum_ConfigDataPropertiesLowCpuThreshold := [ "5", "10", "15", "20" ]
enum_ConfigurationNameParameter := [ "default" ]
enum_DigestConfigCategories := [ "HighAvailability", "Security", "Performance", "Cost", "OperationalExcellence" ]
enum_DigestConfigState := [ "Active", "Disabled" ]

valid {
    input.Body.properties.exclude == BOOLEAN
    input.Body.properties.lowCpuThreshold == enum_ConfigDataPropertiesLowCpuThreshold[_]
    input.Body.properties.duration == enum_ConfigDataPropertiesDuration[_]
    input.Body.properties.digests[_].name == STRING
    input.Body.properties.digests[_].actionGroupResourceId == STRING
    input.Body.properties.digests[_].frequency == INTEGER
    input.Body.properties.digests[_].categories[_] == enum_DigestConfigCategories[_]
    input.Body.properties.digests[_].language == STRING
    input.Body.properties.digests[_].state == enum_DigestConfigState[_]
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.configurationName == enum_ConfigurationNameParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

Configurations_ListByResourceGroup

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Configurations_ListBySubscription

valid {
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

Operations_List

valid {
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

Predict

enum_PredictionRequestPropertiesPredictionType := [ "PredictiveRightsizing" ]

valid {
    input.Body.properties.predictionType == enum_PredictionRequestPropertiesPredictionType[_]
    input.Body.properties.extendedProperties.STRING == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

RecommendationMetadata_Get

valid {
    input.ReqMap.name == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

RecommendationMetadata_List

valid {
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

Recommendations_Generate

valid {
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

Recommendations_Get

valid {
    input.ReqMap.resourceUri == STRING
    input.ReqMap.recommendationId == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

Recommendations_GetGenerateStatus

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.operationId == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

Recommendations_List

valid {
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.Qs.$filter == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skipToken == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

Suppressions_Create

valid {
    input.Body.properties.suppressionId == STRING
    input.Body.properties.ttl == STRING
    input.ReqMap.resourceUri == STRING
    input.ReqMap.recommendationId == STRING
    input.ReqMap.name == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

Suppressions_Delete

valid {
    input.ReqMap.resourceUri == STRING
    input.ReqMap.recommendationId == STRING
    input.ReqMap.name == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

Suppressions_Get

valid {
    input.ReqMap.resourceUri == STRING
    input.ReqMap.recommendationId == STRING
    input.ReqMap.name == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

Suppressions_List

valid {
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.Qs.$top == INTEGER
    input.Qs.$skipToken == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}