MICROSOFT.CONTAINERSERVICE

ContainerServices_CreateOrUpdate

enum_ContainerServiceAgentPoolProfileVmSize := [ "Standard_A0", "Standard_A1", "Standard_A2", "Standard_A3", "Standard_A4", "Standard_A5", "Standard_A6", "Standard_A7", "Standard_A8", "Standard_A9", "Standard_A10", "Standard_A11", "Standard_D1", "Standard_D2", "Standard_D3", "Standard_D4", "Standard_D11", "Standard_D12", "Standard_D13", "Standard_D14", "Standard_D1_v2", "Standard_D2_v2", "Standard_D3_v2", "Standard_D4_v2", "Standard_D5_v2", "Standard_D11_v2", "Standard_D12_v2", "Standard_D13_v2", "Standard_D14_v2", "Standard_G1", "Standard_G2", "Standard_G3", "Standard_G4", "Standard_G5", "Standard_DS1", "Standard_DS2", "Standard_DS3", "Standard_DS4", "Standard_DS11", "Standard_DS12", "Standard_DS13", "Standard_DS14", "Standard_GS1", "Standard_GS2", "Standard_GS3", "Standard_GS4", "Standard_GS5" ]
enum_ContainerServiceMasterProfileCount := [ 1, 3, 5 ]
enum_ContainerServiceOrchestratorProfileOrchestratorType := [ "Swarm", "DCOS", "Custom", "Kubernetes" ]

valid {
    input.Body.properties.orchestratorProfile.orchestratorType == enum_ContainerServiceOrchestratorProfileOrchestratorType[_]
    input.Body.properties.customProfile.orchestrator == STRING
    input.Body.properties.servicePrincipalProfile.clientId == STRING
    input.Body.properties.servicePrincipalProfile.secret == STRING
    input.Body.properties.masterProfile.count == enum_ContainerServiceMasterProfileCount[_]
    input.Body.properties.masterProfile.dnsPrefix == STRING
    input.Body.properties.agentPoolProfiles[_].name == STRING
    input.Body.properties.agentPoolProfiles[_].count == INTEGER
    input.Body.properties.agentPoolProfiles[_].vmSize == enum_ContainerServiceAgentPoolProfileVmSize[_]
    input.Body.properties.agentPoolProfiles[_].dnsPrefix == STRING
    input.Body.properties.windowsProfile.adminUsername == STRING
    input.Body.properties.windowsProfile.adminPassword == STRING
    input.Body.properties.linuxProfile.adminUsername == STRING
    input.Body.properties.linuxProfile.ssh.publicKeys[_].keyData == STRING
    input.Body.properties.diagnosticsProfile.vmDiagnostics.enabled == BOOLEAN
    input.Body.location == STRING
    input.Body.tags.STRING == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.containerServiceName == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

ContainerServices_Delete

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

ContainerServices_Get

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

ContainerServices_List

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

ContainerServices_ListByResourceGroup

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