Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Cannot deploy mssqldatabase to elastic pool with default enclave #922

Open
1 task done
hobbesuk opened this issue Jan 30, 2025 · 0 comments
Open
1 task done
Labels
bug Something isn't working needs:triage

Comments

@hobbesuk
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Affected Resource(s)

sql.azure.upbound.io/v1beta1 - MSSQLDatabase

Resource MRs required to reproduce the bug

apiVersion: sql.azure.upbound.io/v1beta1
kind: MSSQLDatabase
metadata:
  name: {{ $name }}
  annotations:
    gotemplating.fn.crossplane.io/composition-resource-name: {{ $name }}-db
spec:
  forProvider:
    elasticPoolId:
      /subscriptions/xxx
    serverId:
      /subscriptions/xxx
    createMode: Default
    longTermRetentionPolicy:
      - weeklyRetention: P12W
      - immutableBackupsEnabled: true
    threatDetectionPolicy:
      - state: Enabled
      - emailAddresses:
        - [email protected]

Steps to Reproduce

Using azure elastic sql pool with secure enclaves off (or default) but when I use crossplane to create a database to put in this pool

What happened?

I get this error

async create failed: failed to create the resource: [{0 adding the Database (Subscription: "xxx"
Resource Group Name: "xxx"
Server Name: "xxx"
Database Name: "testtenantdb") with enclave type "VBS" to the Elastic Pool (Subscription: "xxx"
Resource Group Name: "xxx"
Server Name: "xxx"
Elastic Pool Name: "xxx") with enclave type "Default" is not supported. Before adding a database to an elastic pool please ensure that the 'enclave_type' is the same for both the database and the elastic pool  []}]

Relevant Error Output Snippet

Crossplane Version

1.16.0

Provider Version

1.11.0

Kubernetes Version

No response

Kubernetes Distribution

No response

Additional Info

No response

@hobbesuk hobbesuk added bug Something isn't working needs:triage labels Jan 30, 2025
@hobbesuk hobbesuk changed the title [Bug]: [Bug]: Cannot deploy mssqldatabase to elastic pool with default enclave Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage
Projects
None yet
Development

No branches or pull requests

1 participant