Skip to content

Conversation

@dotnet-7
Copy link

@dotnet-7 dotnet-7 commented Jan 31, 2024

Add Bicep support to aks-store-demo.

  1. Move tf files to /infra/terraform
  2. Put bicep files in /infra/bicep
  3. Update azure.yaml to use terraform by default
  4. Add new azure-bicep.yaml file to root of repo.
  5. Add readme note that they need to rename the azure-bicep.yaml file to azure.yaml to use bicep.

The reason why keyvault is not used in the code to get keys:
Because the source code to deploy is in the remote images, we cannot directly modify the local code to read key from keyvault. Therefore, we added a command to use 'az' to obtain the keys from the keyvault in the file azd-hooks/postprovision.sh.

image
The reason why update openai_model_capacity from 120 to 30:
The capacity of the current OpenAi model is 120 and is too huge for most of the avaliable locations, so we change it to 30 temporarily like other templates.

@jongio for notification.

@dotnet-7 dotnet-7 marked this pull request as ready for review February 2, 2024 09:39
@pauldotyu
Copy link
Contributor

pauldotyu commented Feb 2, 2024

Thanks for the PR, @dotnet-7. We've just merged in some pretty significant changes to the Terraform templates in PR #96 and PR #104 so there might be some additional resources that need to be added to the Bicep (i.e., ACR and onboarding the AKS cluster to Container Insights and managed Prometheus with managed Grafana). I'll help get conflicts resolved and up to date with latest then review the PR.

@pauldotyu pauldotyu self-requested a review February 2, 2024 20:43
@dotnet-7
Copy link
Author

dotnet-7 commented Feb 6, 2024

@pauldotyu, @jongio - We have resolved the conflicts. PR is ready, please review. Thanks!

- make azd-hook scripts executable
- adding predeploy to bicep deployment
- remove k8s version and use aks default instead
- fix acrpull for kublet identity
- fix cosmos db account kind parameters
- add overwrite existing param for az aks get creds
Copy link
Contributor

@pauldotyu pauldotyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this PR and added some fixes. Thanks for your contribution @dotnet-7

@pauldotyu pauldotyu merged commit 1373442 into Azure-Samples:main Feb 6, 2024
@pauldotyu
Copy link
Contributor

This resolves #98

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

Successfully merging this pull request may close these issues.

3 participants