Skip to content

Unable to create Azure Managed Cassandra Cluster with CLI and Azure PIPELINE #30454

@manishvishnoi

Description

@manishvishnoi

Describe the bug

I am getting a strange error when trying to create Azure Managed Cassandra Cluster from Azure CLI or Auzre Devops pipeline. Here is the error message :-

Related command

The command i am trying to execute from both CLI and pipeline is as follows:-

az managed-cassandra cluster create --cluster-name TEST1234 --resource-group <> --location westeurope --delegated-management-subnet-id ‘/subscriptions//resourceGroups/<>/providers/Microsoft.Network/virtualNetworks/TEST1234’ --initial-cassandra-admin-password cassandra --cassandra-version ‘4.0’ --debug

Errors

Message: Unable to cast object of type ‘Microsoft.Azure.Cosmos.ServiceFramework.Workflow.Core.EmptyOperation’ to type ‘Microsoft.Azure.Cosmos.ServiceFramework.Workflow.Core.Operation`1[System.String]’.

Issue script & Debug output

CLI :-

cli.azure.cli.core.azclierror: (InternalServerError) Unable to cast object of type ‘Microsoft.Azure.Cosmos.ServiceFramework.Workflow.Core.EmptyOperation’ to type ‘Microsoft.Azure.Cosmos.ServiceFramework.Workflow.Core.Operation`1[System.String]’.

ActivityId: 5856118a-ad6b-11ef-90be-a02919dd7a54, Microsoft.Azure.Documents.Common/2.14.0

Code: InternalServerError

Message: Unable to cast object of type ‘Microsoft.Azure.Cosmos.ServiceFramework.Workflow.Core.EmptyOperation’ to type ‘Microsoft.Azure.Cosmos.ServiceFramework.Workflow.Core.Operation`1[System.String]’.

ActivityId: 5856118a-ad6b-11ef-90be-a02919dd7a54, Microsoft.Azure.Documents.Common/2.14.0

az_command_data_logger: (InternalServerError) Unable to cast object of type ‘Microsoft.Azure.Cosmos.ServiceFramework.Workflow.Core.EmptyOperation’ to type ‘Microsoft.Azure.Cosmos.ServiceFramework.Workflow.Core.Operation`1[System.String]’.

ActivityId: 5856118a-ad6b-11ef-90be-a02919dd7a54, Microsoft.Azure.Documents.Common/2.14.0

Code: InternalServerError

Message: Unable to cast object of type ‘Microsoft.Azure.Cosmos.ServiceFramework.Workflow.Core.EmptyOperation’ to type ‘Microsoft.Azure.Cosmos.ServiceFramework.Workflow.Core.Operation`1[System.String]’.

ActivityId: 5856118a-ad6b-11ef-90be-a02919dd7a54, Microsoft.Azure.Documents.Common/2.14.0

Pipeline:-

Unable to cast object of type ‘Microsoft.Azure.Cosmos.ServiceFramework.Workflow.Core.EmptyOperation’ to type ‘Microsoft.Azure.Cosmos.ServiceFramework.Workflow.Core.Operation`1[System.String]’.\r\nActivityId: 84ef274a-ad6a-11ef-b705-a02919dd7a54, Microsoft.Azure.Documents.Common/2.14.0

Expected behavior

Cassandra cluster created

Environment Summary

Azure Devops and CLI with following details:-

PS C:\Users\mavishnoi\agent> az --version
azure-cli 2.57.0 *

core 2.57.0 *
telemetry 1.1.0

Extensions:
account 0.2.5

Dependencies:
msal 1.26.0
azure-mgmt-resource 23.1.0b2

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\mavishnoi.azure\cliextensions'

Python (Windows) 3.11.7 (tags/v3.11.7:fa7a6f2, Dec 4 2023, 19:24:49) [MSC v.1937 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-ResolveAuto resolve by botService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions