Mark subscriptionID flag as not required

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2024-09-17 10:00:45 +02:00
parent 62ff48d5fe
commit 9644de5b5d
No known key found for this signature in database
GPG Key ID: 27D1FCF7F021E884

View File

@ -28,8 +28,7 @@ func newIAMCreateAzureCmd() *cobra.Command {
RunE: runIAMCreateAzure,
}
cmd.Flags().String("subscriptionID", "", "subscription ID of the Azure account (required)")
must(cobra.MarkFlagRequired(cmd.Flags(), "subscriptionID"))
cmd.Flags().String("subscriptionID", "", "subscription ID of the Azure account. Required if the 'ARM_SUBSCRIPTION_ID' environment variable is not set")
cmd.Flags().String("resourceGroup", "", "name prefix of the two resource groups your cluster / IAM resources will be created in (required)")
must(cobra.MarkFlagRequired(cmd.Flags(), "resourceGroup"))
cmd.Flags().String("region", "", "region the resources will be created in, e.g., westus (required)")