Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| azure:az-104_2024:storage_access [2024/10/03 12:47] – removed - external edit (Unknown date) 127.0.0.1 | azure:az-104_2024:storage_access [2024/10/08 19:21] (current) – [Blob Storage Access] mmuze | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Storage Access ====== | ||
| + | ===== Blob Storage Access ===== | ||
| + | There are multiple ways to access //blob// storage. [[https:// | ||
| + | 👉 One way is to use the **account access key**. [[https:// | ||
| + | |||
| + | <callout type=" | ||
| + | |||
| + | 👉 Another way to access blob storage is through an Entra ID User Account and RBAC. | ||
| + | |||
| + | 👉 Using a //Shared Access Signature (SAS)// is another way to get access to blob storage that embeds the necessary credentials in a URL. It provides time-bounded access. | ||
| + | * By default a **SAS** is created based on the account access keys and can only be revoked by rotating the access keys used to generate it. But that could affect other things that were using the key, so it's not ideal. | ||
| + | * Alternatively, | ||
| + | * SAS can be assigned at the account or service level. | ||
| + | |||
| + | |||
| + | ====== Entra ID/RBAC Roles ====== | ||
| + | * [[https:// | ||
| + | * **Storage Account Contributor** - Permits management of storage accounts. Provides access to the account key, which can be used to access data via Shared Key authorization. | ||
| + | * **Storage Blob Data Contributor** - Read, write, and delete Azure Storage containers and blobs. | ||
| + | |||
| + | ---- | ||
| + | * The Reader role is an Azure Resource Manager role that permits users to view storage account resources, but not modify them. It doesn' | ||
| + | * [[https:// | ||
| + | |||
| + | <callout type=" | ||
| + | |||
| + | * **Reader and Data Access role** - Lets you view everything but will not let you delete or create a storage account or contained resource. It will also allow read/write access to all data contained in a storage account via access to storage account keys. | ||
| + | ====== §§§ ====== | ||
| + | |||
| + | * [[https:// | ||
| + | |||
| + | <callout type=" | ||
| + | |||
| + | ====== azcopy ====== | ||
| + | * The **azcopy** CLI tool only supports Entra ID and SAS for authentication for blob storage, not account keys. And it only supports SAS for file storage. | ||
| + | * You can use the <color :# | ||