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

Use correct id for abfs mounts in the docs #1446

Merged
merged 2 commits into from
Jul 11, 2022
Merged

Use correct id for abfs mounts in the docs #1446

merged 2 commits into from
Jul 11, 2022

Conversation

sophher
Copy link
Contributor

@sophher sophher commented Jul 11, 2022

Change the input of resource_id to azurerm_storage_container.this.resource_manager_id, since the resource_id of databricks_mount expects an azure id.

id returns this format
https://xxx.blob.core.windows.net/xxx

while resource_manager_id returns this format
/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourceGroups/xxx/providers/Microsoft.Storage/storageAccounts/xxxx/blobServices/default/containers/xxx

which is expected by resource_id.

In the current setup, you get the following error:
Error: parsing failed for https://xxx.blob.core.windows.net/xxx. Invalid container resource Id format

Change the input of `resource_id` to `azurerm_storage_container.this.resource_manager_id`, since the `resource_id` of `databricks_mount` it expects an azure id.

`id` returns this format
`https://xxx.blob.core.windows.net/xxx`

while `resource_manager_id` returns this format
`/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourceGroups/xxx/providers/Microsoft.Storage/storageAccounts/xxxx/blobServices/default/containers/xxx`

which is expected by `resource_id`.
@codecov-commenter
Copy link

Codecov Report

Merging #1446 (9c2fb0b) into master (2a07542) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1446   +/-   ##
=======================================
  Coverage   90.12%   90.12%           
=======================================
  Files         126      126           
  Lines       10218    10218           
=======================================
  Hits         9209     9209           
  Misses        642      642           
  Partials      367      367           

@nfx nfx merged commit c933437 into databricks:master Jul 11, 2022
@nfx nfx mentioned this pull request Jul 15, 2022
michael-berk pushed a commit to michael-berk/terraform-provider-databricks that referenced this pull request Feb 15, 2023
…s#1446)

Change the input of `resource_id` to `azurerm_storage_container.this.resource_manager_id`, since the `resource_id` of `databricks_mount` it expects an azure id.

`id` returns this format
`https://xxx.blob.core.windows.net/xxx`

while `resource_manager_id` returns this format
`/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourceGroups/xxx/providers/Microsoft.Storage/storageAccounts/xxxx/blobServices/default/containers/xxx`

which is expected by `resource_id`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants