Unable to create Azure AI service in Azure Portal

Why i am not able to create Azure AI service and getting below error.

{“code”:“InvalidTemplateDeployment”,“details”:[{“code”:“RequestDisallowedByPolicy”,“target”:“AZ900-POC”,“message”:“Resource ‘AZ900-POC’ was disallowed by policy. Reasons: ‘This resource type is not allowed. Please use an approved service.’. See error details for policy resource IDs.”,“additionalInfo”:[{“type”:“PolicyViolation”,“info”:{“evaluationDetails”:{“evaluatedExpressions”:[{“result”:“False”,“expressionKind”:“Field”,“expression”:“type”,“path”:“type”,“expressionValue”:“Microsoft.CognitiveServices/accounts”,“targetValue”:[“Microsoft.Compute/virtualMachines”,“Microsoft.Compute/virtualMachineScaleSets”,“Microsoft.Compute/availabilitySets”,“Microsoft.Compute/disks”,“Microsoft.Compute/sshPublicKeys”,“Microsoft.Compute/virtualMachines/extensions”,“Microsoft.Storage”,“Microsoft.Storage/storageAccounts”,“Microsoft.Network/networkInterfaces”,“Microsoft.Network/networkSecurityGroups”,“Microsoft.Network/publicIPAddresses”,“Microsoft.Network/virtualNetworks”,“Microsoft.Network/privateEndpoints”,“Microsoft.Network/privateDnsZones”,“Microsoft.Network/privateDnsZones/virtualNetworkLinks”,“Microsoft.Network/loadBalancers”,“Microsoft.Network/routeTables”,“Microsoft.Network/firewallPolicies”,“Microsoft.Network/azureFirewalls”,“Microsoft.Network/applicationGateways”,“Microsoft.DocumentDB/databaseAccounts”,“Microsoft.Web/serverFarms”,“Microsoft.Web/sites”,“Microsoft.Sql/servers”,“Microsoft.Sql/servers/databases”,“Microsoft.ManagedIdentity/userAssignedIdentities”,“Microsoft.ContainerService/managedClusters”,“Microsoft.ContainerService/managedClusters/agentPools”,“Microsoft.DataLakeAnalytics/accounts”,“Microsoft.Synapse/workspaces”,“Microsoft.Logic/workflows”,“Microsoft.KeyVault/vaults”,“Microsoft.MachineLearningServices/workspaces”,“Microsoft.OperationalInsights/workspaces”,“Microsoft.SecurityInsights/workspaces”,“Microsoft.ContainerRegistry/registries”,“Microsoft.ContainerRegistry/registries/replications”,“Microsoft.ServiceBus/namespaces”,“Microsoft.EventHub/namespaces”,“Microsoft.ApiManagement/service”,“Microsoft.App/containerApps”,“Microsoft.App/managedEnvironments”,“Microsoft.Cdn/profiles”,“microsoft.cdn/profiles/endpoints”,“Microsoft.Cdn/Profiles/AfdEndpoints”,“Microsoft.Cdn/Profiles/OriginGroups”,“Microsoft.Cdn/Profiles/OriginGroups/Origins”,“Microsoft.Cdn/Profiles/AfdEndpoints/Routes”,“Microsoft.Network/frontdoors”,“Microsoft.ContainerInstance/containerGroups”,“Microsoft.OperationalInsights/workspaces”,“Microsoft.EventGrid/topics”,“Microsoft.EventGrid/namespaces”,“Microsoft.EventGrid/domains”,“Microsoft.Network/bastionHosts”,“Microsoft.Network/natGateways”,“Microsoft.Network/publicipprefixes”,“Microsoft.Network/virtualHubs”,“Microsoft.Network/trafficManagerProfiles”,“Microsoft.Network/virtualWans”,“Microsoft.Network/privateLinkServices”,“Microsoft.Network/virtualNetworkGateways”,“Microsoft.AppConfiguration/configurationStores”,“Microsoft.Devices/IotHubs”,“Microsoft.IoTCentral/iotApps”,“Microsoft.Devices/ProvisioningServices”,“Microsoft.Insights/dataCollectionRules”],“operator”:“In”}],“reason”:“This resource type is not allowed. Please use an approved service.”},“policyDefinitionId”:“/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/providers/Microsoft.Authorization/policyDefinitions/allowed_services_main-c8268bcdd25448ad”,“policySetDefinitionId”:“/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/providers/Microsoft.Authorization/policySetDefinitions/Azure_playground_main-c8268bcdd25448ad”,“policyDefinitionReferenceId”:“allowed_services_main-c8268bcdd25448ad_ref”,“policySetDefinitionName”:“Azure_playground_main-c8268bcdd25448ad”,“policySetDefinitionDisplayName”:“Azure_playground_main-c8268bcdd25448ad”,“policySetDefinitionVersion”:“1.0.0”,“policyDefinitionName”:“allowed_services_main-c8268bcdd25448ad”,“policyDefinitionDisplayName”:“allowed_services_main-c8268bcdd25448ad”,“policyDefinitionVersion”:“1.0.0”,“policyDefinitionEffect”:“deny”,“policyAssignmentId”:“/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/resourceGroups/kml_rg_main-c8268bcdd25448ad/providers/Microsoft.Authorization/policyAssignments/Azure_playground_main-c8268bcdd25448ad”,“policyAssignmentName”:“Azure_playground_main-c8268bcdd25448ad”,“policyAssignmentDisplayName”:“Azure_playground_main-c8268bcdd25448ad”,“policyAssignmentScope”:“/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/resourceGroups/kml_rg_main-c8268bcdd25448ad”,“policyAssignmentParameters”:{},“policyExemptionIds”:[],“policyEnrollmentIds”:[]}}]}],“message”:“The template deployment failed because of policy violation. Please see details for more information.”}

It’s possible that we don’t approve what you’re trying to do. In addition: I can’t find a service in Azure that is called “AI service”. what was the exact resource type you were trying to create?

AI Service is in MarketPlace and i see the option for computer vision service but now i am getting error , see the error below

Failed to validate user’s role. Please ensure user has the Cognitive Services Contributor role on current subscription and deny assignment is not set for registering a feature. Click here to learn more.

I am referring the AI -900 course from KodeKloud and want to do small POC, but i cant access the AI service, do let me know how can i do it?

To the best of my knowledge, we don’t allow anything from the marketplace in either of our Azure playgrounds.

Can you please tell where i can practice AI-900 course in Azure Portal?

To do things that you can’t do in the playground, you’d need to use your own account. The AI-900 course is prep for certification so while it has quizzes to prepare you for the multiple choice exam, it has no labs. If you want to following along in the lectures, if a given Azure resource isn’t available in one of our two Azure playgrounds (these are listed in the landing pages for the playground), you’ll need to use your own account to access that resource.