Azure / autorest.powershell

AutoRest PowerShell Generator
MIT License
113 stars 86 forks source link

Issue while running autorest command to generate powershell commandlets #1374

Closed us6193 closed 2 months ago

us6193 commented 2 months ago

We are BillingRP team and recently working on generating Powershell commandlets from swagger documentation.

This is TSG being followed: https://eng.ms/docs/cloud-ai-platform/azure-core/azure-management-and-platforms/control-plane-bburns/azure-cli-tools-azure-cli-powershell-and-terraform/azure-cli-tools/onboarding/azurepowershell/dev_guidance_codegen#scenario-1

Now as per the guidance I did entire setup till step https://github.com/Azure/autorest/pull/4.

Now when I run autorest command I see this below error which has no details on what's causing the failure.

Here's how my powershell repo looks like: https://github.com/us6193/azure-powershell/blob/generation/src/Billing/Billing.Autorest/README.md

Github azure spec repo commit if referring to: https://github.com/us6193/azure-rest-api-specs/tree/main/specification/billing/resource-manager

warning | PreCheck/CheckDuplicateSchemas | Checking for duplicate schemas, this could take a (long) while. Run with --verbose for more detail. warning | PreCheck/PropertyRedeclarationWarning | Schema 'BillingSubscriptionAliasProperties' has a property 'provisioningState' that is already declared the parent schema 'BillingSubscriptionProperties' but isn't significantly different. The property has been removed from BillingSubscriptionAliasProperties warning | UsingTemporaryFlag | modelerfour.treat-type-object-as-anything options is a temporary flag. It WILL be removed in the future. fatal | Error: An error needs to be more specific fatal | Process() cancelled due to failure error | Error: Plugin powershell-v2 reported failure. error | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing. PS C:\Users\umangshah\source\repos\us6193\azure-powershell\src\Billing\Billing.Autorest>

Please provide as much information as you can. This would be:

Additional context Add any other context about the problem here.