Detailed Workflows: Create Foundry Resource
Table of Contents: Workflow 1: Create Resource Group · Workflow 2: Create Foundry Resource · Workflow 3: Register Resource Provider
Workflow 1: Create Resource Group - Detailed Steps
Step 1: Ask user preference
Ask the user which option they prefer:
- Use an existing resource group
- Create a new resource group
Step 2a: If user chooses "Use existing resource group"
Count and list existing resource groups:
bash
# Count total resource groups
TOTAL_RG_COUNT=$(az group list --query "length([])" -o tsv)
# Get list of resource groups (up to 5 most recent)
az group list --query "[-5:].{Name:name, Location:location}" --out tableHandle based on count:
If 0 resources found:
- Inform user: "No existing resource groups found"
- Ask if they want to create a new one, then proceed to Step 2b
If 1-4 resources found:
- Display all X resource groups to the user
- Let user select from the list
- Fetch the selected resource group details:bash