"use strict";(self.webpackChunkworkshop=self.webpackChunkworkshop||[]).push([[329],{77:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>o,contentTitle:()=>c,default:()=>u,frontMatter:()=>a,metadata:()=>s,toc:()=>l});const s=JSON.parse('{"id":"develop/azure-openai/create-resources","title":"Create Azure resources","description":"Here we will create the needed Azure resources that we will use throughout this section.","source":"@site/docs/develop/azure-openai/create-resources.md","sourceDirName":"develop/azure-openai","slug":"/develop/azure-openai/create-resources","permalink":"/docs/develop/azure-openai/create-resources","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"Azure OpenAI","permalink":"/docs/category/azure-openai"},"next":{"title":"Control cost and performance with token quotas and limits","permalink":"/docs/develop/azure-openai/rate-limit"}}');var t=r(4848),i=r(8453);const a={sidebar_position:1},c="Create Azure resources",o={},l=[{value:"Exercise: Create Azure Open AI",id:"exercise-create-azure-open-ai",level:2},{value:"-1- Create an Azure Open AI instance",id:"-1--create-an-azure-open-ai-instance",level:3},{value:"-2- Create a deployment on your Azure Open AI instance",id:"-2--create-a-deployment-on-your-azure-open-ai-instance",level:3},{value:"Exercise: Create an Azure API Management instance",id:"exercise-create-an-azure-api-management-instance",level:2},{value:"Exercise: Create Application Insights instance",id:"exercise-create-application-insights-instance",level:2},{value:"Additional Resources",id:"additional-resources",level:2},{value:"Infrastructure as Code",id:"infrastructure-as-code",level:2}];function d(e){const n={a:"a",h1:"h1",h2:"h2",h3:"h3",header:"header",img:"img",li:"li",ol:"ol",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"create-azure-resources",children:"Create Azure resources"})}),"\n",(0,t.jsx)(n.p,{children:"Here we will create the needed Azure resources that we will use throughout this section."}),"\n",(0,t.jsx)(n.h2,{id:"exercise-create-azure-open-ai",children:"Exercise: Create Azure Open AI"}),"\n",(0,t.jsx)(n.p,{children:"Let's create an Azure Open AI cloud resource."}),"\n",(0,t.jsx)(n.h3,{id:"-1--create-an-azure-open-ai-instance",children:"-1- Create an Azure Open AI instance"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["Navigate to ",(0,t.jsx)(n.a,{href:"https://portal.azure.com",children:"Azure Portal"}),"."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["Search for ",(0,t.jsx)(n.strong,{children:"Azure Open AI"}),' and select "Create" button.']}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{alt:"Create Azure Open AI",src:r(2254).A+"",width:"1073",height:"330"})}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:"Fill out all the values and create the resource."}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{alt:"Fill out Azure Open AI information",src:r(85).A+"",width:"1490",height:"1796"})}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"-2--create-a-deployment-on-your-azure-open-ai-instance",children:"-2- Create a deployment on your Azure Open AI instance"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:'Navigate to your deployed Azure Open AI instance and select "Go to Azure AI Foundry Portal".'}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{alt:"Go to Azure AI Foundry",src:r(7820).A+"",width:"1803",height:"332"})}),"\n",(0,t.jsx)(n.p,{children:"You should now see a user interfance like so:"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{alt:"Azure AI Foundry",src:r(5219).A+"",width:"3186",height:"1673"})}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:'Select "Deployments" in the left menu and select "+ Deploy model" and select "base model"'}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["Type ",(0,t.jsx)(n.strong,{children:"gpt-4o"}),', select the model from the list and click "Confirm".']}),"\n",(0,t.jsx)(n.p,{children:"Now you are all set."}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"exercise-create-an-azure-api-management-instance",children:"Exercise: Create an Azure API Management instance"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["In Azure Portal, type ",(0,t.jsx)(n.strong,{children:"Azure API Management services"}),"."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:'Select "+ Create" and fill in the needed information to create a new Azure API Management instance.'}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{alt:"Create Azure API Management resource",src:r(3306).A+"",width:"1504",height:"1810"})}),"\n",(0,t.jsx)(n.p,{children:"Great, now that we Azure Open AI deployments and Azure API Management created, we can move on to the next activity which is to load balance between Azure Open AI instances."}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"exercise-create-application-insights-instance",children:"Exercise: Create Application Insights instance"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:"Sign in to the Azure portal and create an Application Insights resource."}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{src:"https://learn.microsoft.com/en-us/previous-versions/azure/azure-monitor/app/media/create-new-resource/new-app-insights.png",alt:"Select Application Insights"})}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:"Fill in the following values:"}),"\n",(0,t.jsxs)(n.table,{children:[(0,t.jsx)(n.thead,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.th,{children:"Settings"}),(0,t.jsx)(n.th,{children:"Value"}),(0,t.jsx)(n.th,{children:"Description"})]})}),(0,t.jsxs)(n.tbody,{children:[(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"Name"}),(0,t.jsx)(n.td,{children:"Unique value"}),(0,t.jsx)(n.td,{children:"Fill in a unique value"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"Resource group"}),(0,t.jsx)(n.td,{children:"New or existing resource group"}),(0,t.jsx)(n.td,{children:"Fill in new or existing resource group"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"Region"}),(0,t.jsx)(n.td,{children:"Fill in region"}),(0,t.jsx)(n.td,{children:"Fill in a region close to you"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"Resource mode"}),(0,t.jsx)(n.td,{children:"Classic or workspace-based"}),(0,t.jsx)(n.td,{children:"Workspace-based resources allow you to send your Application Insights telemetry to a common Log Analytics workspace"})]})]})]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:"Here's how you can fill it out:"}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{src:"https://learn.microsoft.com/en-us/previous-versions/azure/azure-monitor/app/media/create-new-resource/review-create.png",alt:"Example of fille in resource blade"})}),"\n",(0,t.jsxs)(n.p,{children:["Learn more how to ",(0,t.jsx)(n.a,{href:"https://learn.microsoft.com/previous-versions/azure/azure-monitor/app/create-new-resource?tabs=net",children:"provision an Application Insights resource here"}),"."]}),"\n",(0,t.jsx)(n.h2,{id:"additional-resources",children:"Additional Resources"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Docs: ",(0,t.jsx)(n.a,{href:"https://learn.microsoft.com/en-us/azure/api-management/get-started-create-service-instance",children:"Create Azure API Management instance"})]}),"\n",(0,t.jsxs)(n.li,{children:["Docs: ",(0,t.jsx)(n.a,{href:"https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/create-resource?pivots=web-portal",children:"Create Azure Open AI"})]}),"\n",(0,t.jsxs)(n.li,{children:["Docs: ",(0,t.jsx)(n.a,{href:"https://learn.microsoft.com/en-us/azure/azure-monitor/app/create-workspace-resource?tabs=portal",children:"Create Azure Application Insight instance"})]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"infrastructure-as-code",children:"Infrastructure as Code"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Lab: ",(0,t.jsx)(n.a,{href:"https://github.com/Azure-Samples/AI-Gateway/tree/main/modules",children:"Folder with Bicep recipes for different resources"})]}),"\n"]})]})}function u(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},85:(e,n,r)=>{r.d(n,{A:()=>s});const s=r.p+"assets/images/token-limit-2-be666891df2ee1d8b56ff9252176c7f3.png"},2254:(e,n,r)=>{r.d(n,{A:()=>s});const s=r.p+"assets/images/token-limit-1-f03c4d75a86c2f2d79b10d7a5ae44c9e.png"},3306:(e,n,r)=>{r.d(n,{A:()=>s});const s=r.p+"assets/images/token-limit-5-124608c9b600d711c58bd73327e756ab.png"},5219:(e,n,r)=>{r.d(n,{A:()=>s});const s=r.p+"assets/images/token-limit-4-349e2c893f6a5101c789ff2be35c9987.png"},7820:(e,n,r)=>{r.d(n,{A:()=>s});const s=r.p+"assets/images/token-limit-3-26554b4f2e0aa60009dd4452112fd453.png"},8453:(e,n,r)=>{r.d(n,{R:()=>a,x:()=>c});var s=r(6540);const t={},i=s.createContext(t);function a(e){const n=s.useContext(i);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),s.createElement(i.Provider,{value:n},e.children)}}}]);