{"id":23459520,"url":"https://github.com/devkimchi/aoai-bicep","last_synced_at":"2026-05-16T22:02:59.346Z","repository":{"id":194459433,"uuid":"629283016","full_name":"devkimchi/aoai-bicep","owner":"devkimchi","description":"Bicep file that provisions an Azure OpenAI Service instance","archived":false,"fork":false,"pushed_at":"2023-09-15T01:40:01.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-13T20:07:08.012Z","etag":null,"topics":["azure","azure-bicep","azure-openai"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devkimchi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-18T02:14:33.000Z","updated_at":"2023-04-21T23:08:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5a3f682-dbf8-477c-8b42-5f44b00e5d09","html_url":"https://github.com/devkimchi/aoai-bicep","commit_stats":null,"previous_names":["devkimchi/aoai-bicep"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devkimchi/aoai-bicep","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkimchi%2Faoai-bicep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkimchi%2Faoai-bicep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkimchi%2Faoai-bicep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkimchi%2Faoai-bicep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devkimchi","download_url":"https://codeload.github.com/devkimchi/aoai-bicep/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkimchi%2Faoai-bicep/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266796916,"owners_count":23985496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","azure-bicep","azure-openai"],"created_at":"2024-12-24T06:14:51.380Z","updated_at":"2026-05-16T22:02:59.242Z","avatar_url":"https://github.com/devkimchi.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Bicep for AOAI\n\nThis provide Azure bicep files to provision Azure OpenAI Service instance.\n\n\n## Getting Started\n\n### Provisioning AOAI Instance\n\nRun the commands in the following order:\n\n```bash\n# Get the environment name\nAZURE_ENV_NAME=\"bicep$RANDOM\"\n\n# Note the environment name\necho $AZURE_ENV_NAME\n\n# Login to Azure Dev CLI\nazd auth login\n\n# Configure Azure Dev CLI\nazd init -e $AZURE_ENV_NAME\n\n# Choose as many available locations as you want for Azure OpenAI Service. Currently available regions (as of September, 2023) are:\n# `australiaeast, canadaeast, eastus, eastus2, francecentral, japaneast, northcentralus, swedencentral, switzerlandnorth, uksouth, westeurope`\nAOAI_LOCATIONS=\"northcentralus\"\n\n# Configure Azure OpenAI Service location\nazd env set AZURE_OPENAI_LOCATIONS $AOAI_LOCATIONS\n\n# Provision the AOAI instance\nazd up\n```\n\n\u003e - If you're in a GitHub Codespace instance, run `azd auth login --use-device-code=false` instead of `azd auth login`.\n\u003e   - When you see the 404 error page on your web browser, copy the URL and run the `curl` command in a new terminal session with the URL.\n\u003e - You will be asked to enter the environment name. Note this environment name for deprovisioning.\n\n\n### Deprovisioning AOAI Instance\n\nRun the commands in the following order:\n\n```bash\n# Login to Azure\naz login\n\n# Delete the model deployment for GPT 3.5 Turbo\naz cognitiveservices account deployment delete -g rg-$AZURE_ENV_NAME -n aoai-$AZURE_ENV_NAME --deployment-name model-gpt35turbo\n\n# Delete the model deployment for GPT 4\naz cognitiveservices account deployment delete -g rg-$AZURE_ENV_NAME -n aoai-$AZURE_ENV_NAME --deployment-name model-gpt432k\n\n# Deprovision the AOAI instance\nazd down --force\n\n# Purge the AOAI instance\npwsh ./infra/Purge-CognitiveServices.ps1\n```\n\n\u003e - When you see the 404 error page on your web browser, copy the URL and run the `curl` command in a new terminal session with the URL.\n\u003e - Make sure that `$AZURE_ENV_NAME` is the value when you provision resources using `azd up`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevkimchi%2Faoai-bicep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevkimchi%2Faoai-bicep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevkimchi%2Faoai-bicep/lists"}