You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added Environment Variables for setting Names of Resources (#1389)
* Added Environment Variables to allow setting the names of most resources.
+ App Service Plan Name
+ App Service Name (backend service)
+ Application Insights Name
+ Application Insights Dashboard Name
+ Log Analytics Workspace Name
Two Global Resources are created, whose names have not been parameterised. These are
- Action group (Application Insights Smart Detection)
- Smart detector alert rule (Failure Anomalies - $AZURE_APPLICATION_INSIGHTS)
* Added Environment Variables for Computer Vision Name, RG, Location and SKU Parameters
* Computer Vision SKU - Removed incorrect default
* Update azure-dev.yml
Added ENV Variables also to workflow
* Updated deploy_existing.md and pipelines.
* Updated main.bicep variables to show reference to main.parameters.json file. Updated some defaults.
* Expanded allow-list of Document Intelligence regions.
* Reverted my change of Document Intelligence resource locations, since the Preview API is only available in the listed three locations.
* Add empty string default back
* update toc
* bring back comment
---------
Co-authored-by: Pamela Fox <[email protected]>
Co-authored-by: Pamela Fox <[email protected]>
Copy file name to clipboardExpand all lines: docs/deploy_existing.md
+35-12Lines changed: 35 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,25 @@
1
1
2
2
# Deploying with existing Azure resources
3
3
4
-
If you already have existing Azure resources, you can re-use those by setting `azd` environment values.
4
+
If you already have existing Azure resources, or if you want to specify the exact name of new Azure Resource, you can do so by setting `azd` environment values.
5
5
You should set these values before running `azd up`. Once you've set them, return to the [deployment steps](../README.md#deploying).
1. Run `azd env set AZURE_RESOURCE_GROUP {Name of existing resource group}`
16
20
1. Run `azd env set AZURE_LOCATION {Location of existing resource group}`
17
21
18
-
## Existing OpenAI resource
22
+
## OpenAI resource
19
23
20
24
### Azure OpenAI:
21
25
@@ -40,7 +44,7 @@ Do *not* check your key into source control.
40
44
When you run `azd up` after and are prompted to select a value for `openAiResourceGroupLocation`, you can select any location as it will not be used.
41
45
42
46
43
-
## Existing Azure AI Search resource
47
+
## Azure AI Search resource
44
48
45
49
1. Run `azd env set AZURE_SEARCH_SERVICE {Name of existing Azure AI Search service}`
46
50
1. Run `azd env set AZURE_SEARCH_SERVICE_RESOURCE_GROUP {Name of existing resource group with ACS service}`
@@ -55,7 +59,26 @@ You can also customize the search service (new or existing) for non-English sear
55
59
1. To turn off the spell checker, run `azd env set AZURE_SEARCH_QUERY_SPELLER none`. Consult [this table](https://learn.microsoft.com/rest/api/searchservice/preview-api/search-documents#queryLanguage) to determine if spell checker is supported for your query language.
56
60
1. To configure the name of the analyzer to use for a searchable text field to a value other than "en.microsoft", run `azd env set AZURE_SEARCH_ANALYZER_NAME {Name of analyzer name}`. ([See other possible values](https://learn.microsoft.com/dotnet/api/microsoft.azure.search.models.field.analyzer?view=azure-dotnet-legacy&viewFallbackFrom=azure-dotnet))
57
61
58
-
## Existing Azure Document Intelligence resource
62
+
## Azure App Service Plan and App Service resources
63
+
64
+
1. Run `azd env set AZURE_APP_SERVICE_PLAN {Name of existing Azure App Service Plan}`
65
+
1. Run `azd env set AZURE_APP_SERVICE {Name of existing Azure App Service}`.
66
+
1. Run `azd env set AZURE_APP_SERVICE_SKU {SKU of Azure App Service, defaults to B1}`.
67
+
68
+
## Azure Application Insights and related resources
69
+
70
+
1. Run `azd env set AZURE_APPLICATION_INSIGHTS {Name of existing Azure App Insights}`.
71
+
1. Run `azd env set AZURE_APPLICATION_INSIGHTS_DASHBOARD {Name of existing Azure App Insights Dashboard}`.
72
+
1. Run `azd env set AZURE_LOG_ANALYTICS {Name of existing Azure Log Analytics Workspace Name}`.
73
+
74
+
## Azure Computer Vision resources
75
+
76
+
1. Run `azd env set AZURE_COMPUTER_VISION_SERVICE {Name of existing Azure Computer Vision Service Name}`
77
+
1. Run `azd env set AZURE_COMPUTER_VISION_RESOURCE_GROUP {Name of existing Azure Computer Vision Resource Group Name}`
78
+
1. Run `azd env set AZURE_COMPUTER_VISION_LOCATION {Name of existing Azure Computer Vision Location}`
79
+
1. Run `azd env set AZURE_COMPUTER_VISION_SKU {SKU of Azure Computer Vision service, defaults to F0}`
80
+
81
+
## Azure Document Intelligence resource
59
82
60
83
In order to support analysis of many document formats, this repository uses a preview version of Azure Document Intelligence (formerly Form Recognizer) that is only available in [limited regions](https://learn.microsoft.com/azure/ai-services/document-intelligence/concept-layout).
61
84
If your existing resource is in one of those regions, then you can re-use it by setting the following environment variables:
@@ -65,6 +88,6 @@ If your existing resource is in one of those regions, then you can re-use it by
65
88
1. Run `azd env set AZURE_DOCUMENTINTELLIGENCE_RESOURCE_GROUP {Name of resource group with existing service, defaults to main resource group}`
66
89
1. Run `azd env set AZURE_DOCUMENTINTELLIGENCE_SKU {SKU of existing service, defaults to S0}`
67
90
68
-
## Other existing Azure resources
91
+
## Other Azure resources
69
92
70
-
You can also use existing Azure AI Document Intelligence and Storage Accounts. See `./infra/main.parameters.json` for list of environment variables to pass to `azd env set` to configure those existing resources.
93
+
You can also use existing Azure AI Storage Accounts. See `./infra/main.parameters.json` for list of environment variables to pass to `azd env set` to configure those existing resources.
0 commit comments