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
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,8 @@ The diagram below illustrates the capabilities included in the template.
37
37
38
38
- Provides the ability to [add additional Azure services during deployment](docs/add_additional_services.md), configured to connect via isolation to enrich your AI project.
39
39
(API Management, CosmosDB, Azure SQL DB)
40
+
41
+
- Offers ability to start with an existing Azure AI Project which will provision dependant Azure resources based on the Project's established connections within AI Foundry.
Copy file name to clipboardExpand all lines: scripts/SetConnectionsEnvironmentVariables.ps1
+47-16Lines changed: 47 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -15,29 +15,66 @@ param (
15
15
[switch]$includeVerboseResponseOutputs
16
16
)
17
17
18
-
if (-not$tenant) {
18
+
if (-not$tenant-and$env:AZURE_ORIGINAL_TENANT_ID) {
19
19
$tenant=$env:AZURE_ORIGINAL_TENANT_ID
20
-
Write-Output"Tenant parameter not provided. Using environment variable AZURE_ORIGINAL_TENANT_ID: $tenant"
20
+
if ($includeVerboseResponseOutputs) {
21
+
Write-Output"Tenant parameter not provided. Using environment variable AZURE_ORIGINAL_TENANT_ID: $tenant"
22
+
}
21
23
}
22
24
23
-
if (-not$subscription) {
25
+
if (-not$subscription-and$env:AZURE_ORIGINAL_SUBSCRIPTION_ID) {
24
26
$subscription=$env:AZURE_ORIGINAL_SUBSCRIPTION_ID
25
-
Write-Output"Subscription parameter not provided. Using environment variable AZURE_ORIGINAL_SUBSCRIPTION_ID: $subscription"
27
+
if ($includeVerboseResponseOutputs) {
28
+
Write-Output"Subscription parameter not provided. Using environment variable AZURE_ORIGINAL_SUBSCRIPTION_ID: $subscription"
29
+
}
26
30
}
27
31
28
-
if (-not$resourceGroup) {
32
+
if (-not$resourceGroup-and$env:AZURE_ORIGINAL_RESOURCE_GROUP) {
29
33
$resourceGroup=$env:AZURE_ORIGINAL_RESOURCE_GROUP
30
-
Write-Output"ResourceGroup parameter not provided. Using environment variable AZURE_ORIGINAL_RESOURCE_GROUP: $resourceGroup"
34
+
if ($includeVerboseResponseOutputs) {
35
+
Write-Output"ResourceGroup parameter not provided. Using environment variable AZURE_ORIGINAL_RESOURCE_GROUP: $resourceGroup"
36
+
}
31
37
}
32
38
33
-
if (-not$workspace) {
39
+
if (-not$workspace-and$env:AZURE_ORIGINAL_WORKSPACE_NAME) {
34
40
$workspace=$env:AZURE_ORIGINAL_WORKSPACE_NAME
35
-
Write-Output"Workspace parameter not provided. Using environment variable AZURE_ORIGINAL_WORKSPACE_NAME: $workspace"
41
+
if ($includeVerboseResponseOutputs) {
42
+
Write-Output"Workspace (Project) parameter not provided. Using environment variable AZURE_ORIGINAL_WORKSPACE_NAME: $workspace"
43
+
}
36
44
}
37
45
38
46
if (-not$tenant-or-not$subscription-or-not$resourceGroup-or-not$workspace) {
39
-
Write-Output"One or more required parameters are missing. Exiting script."
40
-
return
47
+
$response=Read-Host"Start with existing Project connections? [NOTE: This action cannot be undone after executing. To revert, create a new AZD environment and run the process again.] (yes/no)"
0 commit comments