Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
.prompt.md - Prompt - OpenSmartRoute
Promptv1.0.0
.prompt.md
Create a PowerShell script that: 1. Authenticates to Azure using the Az PowerShell module 2. Retrieves all accessible Azure subscriptions 3. For each subscription: - Lists the subscription name and ID
Authenticates to Azure using the Az PowerShell module
Retrieves all accessible Azure subscriptions
For each subscription:
Lists the subscription name and ID
Queries all available regions
Maps each region's availability zones to their physical zone locations
Outputs the results in a structured format showing:
Subscription details
Region name
Available AZ count
Physical zone mappings
Handles errors gracefully with appropriate try-catch blocks
Includes logging for diagnostic purposes
Requirements:
Az PowerShell module must be installed and updated
User must have sufficient Azure RBAC permissions
Script should support both interactive and non-interactive authentication
Results should be exportable to CSV format
Follow Azure PowerShell best practices for performance and rate limiting
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
Create a PowerShell script that:
1. Authenticates to Azure using the Az PowerShell module
2. Retrieves all accessible Azure subscriptions
3. For each subscription:
- Lists the subscription name and ID
- Queries all available regions
- Maps each region's availability zones to their physical zone locations
4. Outputs the results in a structured format showing:
- Subscription details
- Region name
- Available AZ count
- Physical zone mappings
5. Handles errors gracefully with appropriate try-catch blocks
6. Includes logging for diagnostic purposes
Requirements:
- Az PowerShell module must be installed and updated
- User must have sufficient Azure RBAC permissions
- Script should support both interactive and non-interactive authentication
- Results should be exportable to CSV format
- Follow Azure PowerShell best practices for performance and rate limiting
Manifest
The prompt text and its fill-in variables. Copy it or fetch it by URL from your own code.
{
"prompt": "Create a PowerShell script that:\n1. Authenticates to Azure using the Az PowerShell module\n2. Retrieves all accessible Azure subscriptions\n3. For each subscription:\n - Lists the subscription name and ID\n - Queries all available regions\n - Maps each region's availability zones to their physical zone locations\n4. Outputs the results in a structured format showing:\n - Subscription details\n - Region name\n - Available AZ count\n - Physical zone mappings\n5. Handles errors gracefully with appropriate try-catch blocks\n6. Includes logging for diagnostic purposes\n \nRequirements:\n- Az PowerShell module must be installed and updated\n- User must have sufficient Azure RBAC permissions\n- Script should support both interactive and non-interactive authentication\n- Results should be exportable to CSV format\n- Follow Azure PowerShell best practices for performance and rate limiting",
"variables": [],
"notes": "Create a PowerShell script that: 1. Authenticates to Azure using the Az PowerShell module 2. Retrieves all accessible Azure subscriptions 3. For each subscription: - Lists the subscription name and ID - Queries all available regions - Maps each region's availability zones to their physical zone locations 4. Outputs the results in a structured format showing: - Subscription details - Region name - Available AZ count - Physical zone mappings 5. Handles errors gracefully with appropriate try-catch blocks 6. Includes logging for diagnostic purposes",
"metadata": {
"source": {
"provider": "github-prompts",
"repository": "https://github.com/lenvolk/images-using-azure-image-builder",
"path": ".github/prompts/.prompt.md",
"ref": "1bede747ff5d011911026497589122b39f9435e8",
"url": "https://github.com/lenvolk/images-using-azure-image-builder/blob/1bede747ff5d011911026497589122b39f9435e8/.github/prompts/.prompt.md",
"key": "lenvolk/images-using-azure-image-builder/.github/prompts/.prompt.md"
}
}
}
Fetch it by URL: GET /api/v1/registry/lenvolk-images-using-azure-image-builder-prompt-md-prompt/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.