Follows the Getting Started guide at AI Gateway.
- Create an Azure OpenAI instance.
- Add the
gpt-4.1deployment - Create a Service Principal
- Assign the Service Principal the "Cognitive Services OpenAI User" role.
Follows the Getting Started guide at AI Gateway.
gpt-4.1 deployment| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Command</key> | |
| <string></string> | |
| <key>Default Bookmark Guid</key> | |
| <string>AFCCF22E-059E-46ED-A160-29777EE704FD</string> | |
| <key>DisableFullscreenTransparency</key> | |
| <false/> |
| apiVersion: v1 | |
| data: | |
| fluent-bit.conf: | | |
| [SERVICE] | |
| Flush 5 | |
| Log_Level warn | |
| Daemon off | |
| Parsers_File parsers.conf | |
| HTTP_Server On | |
| HTTP_Listen 0.0.0.0 |
| { | |
| "meta": { | |
| "theme": "kendall" | |
| }, | |
| "basics": { | |
| "name": "Matt Mencel", | |
| "label": "Site Reliability Engineer - Tech Lead", | |
| "email": "[email protected]", | |
| "phone": "(309) 333-6056", | |
| "website": "https://medium.com/@matt_89326", |
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| labels: | |
| azure-key-vault-env-injection: enabled | |
| name: azure-pipelines-agent | |
| --- | |
| apiVersion: helm.fluxcd.io/v1 | |
| kind: HelmRelease | |
| metadata: |
| - task: AzureCLI@1 | |
| displayName: 'Setup Authentication' | |
| inputs: | |
| azureSubscription: '$(SUBSCRIPTION_NAME)' | |
| addSpnToEnvironment: true | |
| scriptLocation: inlineScript | |
| failOnStandardError: 'true' | |
| inlineScript: | | |
| echo "##vso[task.setvariable variable=ARM_SUBSCRIPTION_ID]$(az account show --query="id" -o tsv)" | |
| echo "##vso[task.setvariable variable=ARM_CLIENT_ID]${servicePrincipalId}" |
| { | |
| "resourceType": "disks", | |
| "name": "Standard_LRS", | |
| "tier": "Standard", | |
| "size": "S4", | |
| "locations": [ | |
| "centralus" | |
| ], | |
| "locationInfo": [ | |
| { |
| #~/.config/omf/init.fish | |
| set -g theme_display_k8s_context yes | |
| set -g theme_display_ruby no | |
| set -g theme_display_user yes | |
| set -g theme_display_hostname yes | |
| set -g theme_powerline_fonts no | |
| set -g theme_nerd_fonts yes | |
| set -g theme_newline_cursor yes |
| steps: | |
| - script: | | |
| echo "Compressing $(terraform.path) directory..." | |
| tar -czf $(state.key).tar.gz -C $(terraform.path) . | |
| displayName: 'Compress $(terraform.path) Artifact' | |
| - task: PublishBuildArtifacts@1 | |
| displayName: 'Publish Artifact: $(state.key).tfplan' | |
| inputs: | |
| PathtoPublish: '$(state.key).tar.gz' |