Skip to content

Commit f4b28a8

Browse files
Clean up and format
1 parent 9e8a9c8 commit f4b28a8

File tree

2 files changed

+30
-19
lines changed

2 files changed

+30
-19
lines changed

.devcontainer/post-start.sh

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# POST-START VERIFICATION
55
# ------------------------------
66

7+
echo ""
8+
echo ""
9+
echo ""
710
echo "🚀 APIM Samples environment starting..."
811

912
# Check if this is a prebuild-created environment
@@ -27,7 +30,6 @@ else
2730

2831
# Only run the interactive Azure configuration part
2932
if [ -t 0 ] && [ -t 1 ]; then
30-
echo "Running interactive Azure CLI configuration..."
3133
export APIM_SAMPLES_INITIAL_SETUP=true
3234
python3 .devcontainer/configure-azure-mount.py
3335
unset APIM_SAMPLES_INITIAL_SETUP
@@ -50,34 +52,40 @@ fi
5052
# QUICK VERIFICATION
5153
# ------------------------------
5254

53-
echo "✅ Verifying Python environment..."
55+
echo " ✅ Verifying Python environment..."
5456
python --version
5557

56-
echo "✅ Verifying Azure CLI..."
58+
echo ""
59+
echo " ✅ Verifying Azure CLI..."
5760
az --version | head -1
5861

59-
echo "✅ Verifying Python packages..."
62+
echo ""
63+
echo " ✅ Verifying Python packages..."
6064
python -c "import requests, jwt; print('✅ Core packages available')" || echo "⚠️ Some packages may need reinstalling"
6165

62-
echo "✅ Running environment verification..."
66+
echo ""
67+
echo " ✅ Running environment verification..."
6368
python .devcontainer/verify-setup.py
6469

6570
echo ""
66-
echo "🎉 APIM Samples environment is ready!"
71+
echo " 🎉 APIM Samples environment is ready!"
6772
echo ""
6873

6974
# ------------------------------
7075
# NEXT STEPS GUIDANCE
7176
# ------------------------------
7277

73-
echo "� Next steps:"
78+
echo "📋 Next steps:"
79+
echo ""
7480
if [ -f ".devcontainer/devcontainer.json" ] && grep -q '"mounts"' .devcontainer/devcontainer.json; then
75-
echo "✅ Azure CLI config mounting detected - your authentication should be available"
81+
echo " ✅ Azure CLI config mounting detected - your authentication should be available"
82+
echo ""
7683
echo "1. Verify Azure access and ensure correct tenant/subscription: az account show"
7784
echo "2. If needed, switch tenant: az login --tenant <your-tenant-id-or-domain>"
7885
echo "3. If needed, set subscription: az account set --subscription <your-subscription-id-or-name>"
7986
echo "4. Execute shared/jupyter/verify-az-account.ipynb to verify your Azure setup"
8087
else
88+
echo ""
8189
echo "1. Sign in to your specific Azure tenant: az login --tenant <your-tenant-id-or-domain>"
8290
echo "2. Set your target subscription: az account set --subscription <your-subscription-id-or-name>"
8391
echo "3. Verify your context: az account show"
@@ -88,3 +96,6 @@ echo "6. Explore the samples in the samples/ directory"
8896
echo ""
8997
echo "💡 Tip: The Python path has been configured to include shared/python modules automatically."
9098
echo "🔧 To reconfigure Azure CLI authentication, run: python3 .devcontainer/configure-azure-mount.py"
99+
echo ""
100+
echo " 🎉 ALL DONE!"
101+
echo ""

.devcontainer/verify-setup.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def check_jupyter_kernel():
122122

123123
def check_azure_cli():
124124
"""Check Azure CLI installation and extensions."""
125-
print("\n☁️ Checking Azure CLI...")
125+
print("\n☁️ Checking Azure CLI...")
126126
try:
127127
# Check Azure CLI
128128
result = subprocess.run(['az', '--version'],
@@ -166,16 +166,16 @@ def main():
166166
print("\n" + "="*50)
167167

168168
if all(checks):
169-
print("🎉 All checks passed! Your dev container is ready to use.")
170-
print("\n📋 Next steps:\n")
171-
print("1. Configure Azure CLI: python .devcontainer/configure-azure-mount.py")
172-
print("2. Or manually sign in with tenant-specific login:")
173-
print(" az login --tenant <your-tenant-id-or-domain>")
174-
print(" az account set --subscription <your-subscription-id-or-name>")
175-
print(" az account show # Verify your context")
176-
print("3. Execute shared/jupyter/verify-az-account.ipynb")
177-
print("4. If prompted, initialize the kernel according to the `Initialization` steps in the root README.md file")
178-
print("5. Explore the samples and infrastructure folders\n")
169+
# print("🎉 All checks passed! Your dev container is ready to use.")
170+
# print("\n📋 Next steps:\n")
171+
# print("1. Configure Azure CLI: python .devcontainer/configure-azure-mount.py")
172+
# print("2. Or manually sign in with tenant-specific login:")
173+
# print(" az login --tenant <your-tenant-id-or-domain>")
174+
# print(" az account set --subscription <your-subscription-id-or-name>")
175+
# print(" az account show # Verify your context")
176+
# print("3. Execute shared/jupyter/verify-az-account.ipynb")
177+
# print("4. If prompted, initialize the kernel according to the `Initialization` steps in the root README.md file")
178+
# print("5. Explore the samples and infrastructure folders\n")
179179
return 0
180180
else:
181181
print("❌ Some checks failed. Please review the output above.")

0 commit comments

Comments
 (0)