Azure / Azure/azure-cli

az sql copy db does not support Serverless

Open
#13,119 5 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad customer-reported Service Attention SQL
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

## Describe the bug
az sql copy db does not seem to support Serverless.

If using --compute-model Serverless the command expects -e -f -c as parameters.
If -e GeneralPurpose is submitted the argument is unregonized. without -e it tries to create in Premium tier.

**Command Name**
`az sql db copy`

**Errors:**
```
az: error: unrecognized arguments: -e GeneralPurpose
```

## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

- _Put any pre-requisite steps here..._
- `az sql db copy --compute-model Serverless -g {} -s {} --name {} --dest-resource-group {} --dest-name {} --dest-server {} -e {} -f {} -c {} --auto-pause-delay {}`

## Expected Behavior
DB-Copy is created.

## Environment Summary
```
Linux-4.15.0-1077-azure-x86_64-with-debian-stretch-sid
Python 3.6.5

azure-cli 2.2.0 *

```
## Additional Context
If using az db sql **create** the parameters work as expected.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.