Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab Create a Custom Skill for Azure AI Search - Function Deployment Failure #54

Open
SkillableJM opened this issue Nov 20, 2024 · 2 comments

Comments

@SkillableJM
Copy link

Lab: Create a Custom Skill for Azure AI Search
Task: Create an Azure Function for a custom skill
Step: 1. In the Azure Portal, on the Home page, create a new Function App resource with the following settings:

image

We have users reporting that they are unable to create a function app in the Azure portal due to region limitations. I have been able to reproduce this issue when deploying the function app in East US. Users can work around this issue by deploying the function app in a different region than East US. I was able to deploy the function app within Central US without any issues.

Attached is the error json.

image

FunctionAppError.json

@Skillable-Dev-Ap
Copy link
Contributor

This issue has been addressed and students launching the should only be able to launch in regions with no limitations to whats needed for the purpose of this lab.

@jjelosua
Copy link

jjelosua commented Dec 3, 2024

I am still facing issues while creating a Function App: "{"code":"InvalidTemplateDeployment","details":[{"code":"RequestDisallowedByPolicy","target":"FunctionApp46344302","message":"Resource 'FunctionApp46344302' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"ai102_LP5_V1*","id":"/providers/Microsoft.Management/managementGroups/lod-org-363-pool-729-lab154265/providers/Microsoft.Authorization/policyAssignments/policyAssignment2735"},"policyDefinition":{"name":"ai102_LP5_V1*","id":"/providers/Microsoft.Management/managementGroups/lod-org-363-pool-729-lab154265/providers/Microsoft.Authorization/policyDefinitions/policy2735"}}]'.","additionalInfo":[{"type":"PolicyViolation","info":{"evaluationDetails":{"evaluatedExpressions":[{"result":"False","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Web/sites","targetValue":"Microsoft.web/serverfarms","operator":"Equals"},{"result":"False","expressionKind":"Field","expression":"id","path":"id","expressionValue":"/subscriptions/4ce44305-7594-411f-ad28-b939b6978b7a/resourceGroups/ai102lab12/providers/Microsoft.Web/sites/FunctionApp46344302","targetValue":"/resourceGroups/ResourceGroup1/","operator":"Contains"},{"result":"False","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Web/sites","targetValue":"Microsoft.AlertsManagement/smartDetectorAlertRules","operator":"Contains"},{"result":"False","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Web/sites","targetValue":"Microsoft.BotService/botServices","operator":"Contains"},{"result":"False","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Web/sites","targetValue":"Microsoft.CognitiveServices/accounts","operator":"Contains"},{"result":"False","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Web/sites","targetValue":"Microsoft.ManagedIdentity/userAssignedIdentities","operator":"Contains"},{"result":"False","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Web/sites","targetValue":"Microsoft.OperationalInsights/workspaces","operator":"Contains"},{"result":"False","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Web/sites","targetValue":"Microsoft.Insights/ActionGroups","operator":"Contains"},{"result":"False","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Web/sites","targetValue":"microsoft.insights/components","operator":"Contains"},{"result":"False","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Web/sites","targetValue":"Microsoft.Search/searchServices","operator":"Contains"},{"result":"False","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Web/sites","targetValue":"Microsoft.Storage/storageAccounts","operator":"Contains"}]},"policyDefinitionId":"/providers/Microsoft.Management/managementGroups/lod-org-363-pool-729-lab154265/providers/Microsoft.Authorization/policyDefinitions/policy2735","policyDefinitionName":"policy2735","policyDefinitionDisplayName":"ai102_LP5_V1*","policyDefinitionEffect":"deny","policyAssignmentId":"/providers/Microsoft.Management/managementGroups/lod-org-363-pool-729-lab154265/providers/Microsoft.Authorization/policyAssignments/policyAssignment2735","policyAssignmentName":"policyAssignment2735","policyAssignmentDisplayName":"ai102_LP5_V1*","policyAssignmentScope":"/providers/Microsoft.Management/managementGroups/lod-org-363-pool-729-lab154265","policyAssignmentParameters":{},"policyExemptionIds":[]}}]}],"message":"The template deployment failed with multiple errors. Please see details for more information."}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants