Skip to content

Commit

Permalink
Updates login method, changes P1 SKUs to B1, defaults to Qdrant for m…
Browse files Browse the repository at this point in the history
…emory
  • Loading branch information
bryceamacker committed Sep 28, 2023
1 parent 91dbfea commit 1b91b5c
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 33 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/copilot-deploy-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ jobs:
run: ls -R
working-directory: "${{ github.workspace }}/${{inputs.ARTIFACT_NAME}}"

- name: Azure login
uses: azure/login@v1
with:
client-id: ${{secrets.AZURE_CLIENT_ID}}
tenant-id: ${{secrets.AZURE_TENANT_ID}}
subscription-id: ${{secrets.AZURE_SUBSCRIPTION_ID}}
enable-AzPSSession: false
- name: Login to Azure
env:
AZURE_APP_ID_URI: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
run: |
az login --service-principal --username "$AZURE_APP_ID_URI" --password "$AZURE_CLIENT_SECRET" --tenant "$AZURE_TENANT_ID"
- name: Get app name
id: app-name
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/copilot-deploy-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ jobs:
- name: "Install SWA CLI"
run: npm install -g @azure/static-web-apps-cli

- name: Azure login
uses: azure/login@v1
with:
client-id: ${{secrets.AZURE_CLIENT_ID}}
tenant-id: ${{secrets.AZURE_TENANT_ID}}
subscription-id: ${{secrets.AZURE_SUBSCRIPTION_ID}}
enable-AzPSSession: false
- name: Login to Azure
env:
AZURE_APP_ID_URI: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
run: |
az login --service-principal --username "$AZURE_APP_ID_URI" --password "$AZURE_CLIENT_SECRET" --tenant "$AZURE_TENANT_ID"
- name: "Get and Mask SWA Deployment Token"
uses: azure/CLI@v1
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/copilot-deploy-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ jobs:
with:
clean: true

- name: Azure login
uses: azure/login@v1
with:
client-id: ${{secrets.AZURE_CLIENT_ID}}
tenant-id: ${{secrets.AZURE_TENANT_ID}}
subscription-id: ${{secrets.AZURE_SUBSCRIPTION_ID}}
enable-AzPSSession: false
- name: Login to Azure
env:
AZURE_APP_ID_URI: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
run: |
az login --service-principal --username "$AZURE_APP_ID_URI" --password "$AZURE_CLIENT_SECRET" --tenant "$AZURE_TENANT_ID"
- name: deploy-infra
uses: azure/CLI@v1
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/copilot-deploy-memorypipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ jobs:
run: ls -R
working-directory: "${{ github.workspace }}/${{inputs.ARTIFACT_NAME}}"

- name: Azure login
uses: azure/login@v1
with:
client-id: ${{secrets.AZURE_CLIENT_ID}}
tenant-id: ${{secrets.AZURE_TENANT_ID}}
subscription-id: ${{secrets.AZURE_SUBSCRIPTION_ID}}
enable-AzPSSession: false
- name: Login to Azure
env:
AZURE_APP_ID_URI: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
run: |
az login --service-principal --username "$AZURE_APP_ID_URI" --password "$AZURE_CLIENT_SECRET" --tenant "$AZURE_TENANT_ID"
- name: Get app name
run: |
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy/deploy-azure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ az account set -s "$SUBSCRIPTION"
: "${WEB_APP_SVC_SKU:="B1"}"
: "${WEB_APP_REGION:="westus2"}"
: "${AZURE_AD_INSTANCE:="https://login.microsoftonline.com"}"
: "${MEMORY_STORE:="AzureCognitiveSearch"}"
: "${MEMORY_STORE:="Qdrant"}"
: "${NO_COSMOS_DB:=false}"
: "${NO_SPEECH_SERVICES:=false}"

Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ resource appServicePlanQdrant 'Microsoft.Web/serverfarms@2022-03-01' = if (memor
location: location
kind: 'linux'
sku: {
name: 'P1v3'
name: 'B1'
}
properties: {
reserved: true
Expand Down
6 changes: 3 additions & 3 deletions scripts/deploy/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@
"location": "[parameters('location')]",
"kind": "linux",
"sku": {
"name": "P1v3"
"name": "B1"
},
"properties": {
"reserved": true
Expand Down Expand Up @@ -1327,7 +1327,7 @@
"name": "[format('cog-speech-{0}', variables('uniqueName'))]",
"location": "[parameters('location')]",
"sku": {
"name": "S0"
"name": "F0"
},
"kind": "SpeechServices",
"identity": {
Expand All @@ -1347,7 +1347,7 @@
"name": "[format('cog-ocr-{0}', variables('uniqueName'))]",
"location": "[parameters('location')]",
"sku": {
"name": "S0"
"name": "F0"
},
"kind": "FormRecognizer",
"identity": {
Expand Down

0 comments on commit 1b91b5c

Please sign in to comment.