Skip to content

Commit eea5d5b

Browse files
Update 5-access-package.md
1 parent 9eab482 commit eea5d5b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

articles/governance/machine-configuration/how-to/develop-custom-package/5-access-package.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ This page provides a guide on how to provide access to Machine Configuration pac
44
# Prerequisites
55
- Azure subscription
66
- Azure Storage account with the Machine Configuration package
7+
78
# Steps to provide access to the package
8-
## Using a User Assigned Identity
9+
## Using a User Assigned Identity
910

1011
**1. Obtain a User-Assigned Managed Identity:**
12+
> [!IMPORTANT]
13+
> Please note that, unlike Azure VMs, Arc-connected machines currently do not support User Assigned Managed Identities.
14+
1115
To start, you need to obtain the existing resourceId a user-assigned managed identity or create a new. This identity will be used by your VMs to access the Azure storage blob. The following PowerShell command creates a new user-assigned managed identity in the specified resource group:
1216
```powershell
1317
$identity = New-AzUserAssignedIdentity -ResourceGroupName "YourResourceGroup" -Name "YourIdentityName"
@@ -17,7 +21,7 @@ You can also retrieve the resource ID of the user-assigned managed identity that
1721
$managedIdentityResourceId = (Get-AzUserAssignedIdentity -ResourceGroupName "YourResourceGroup" -Name "YourManagedIdentityName").Id
1822
```
1923

20-
**2. Assign the Managed Identity to Your VMs:**
24+
**2. Assign the Managed Identity to Your Azure VMs:**
2125
Next, you need to assign the created managed identity to your VMs. This allows the VMs to use the identity for accessing resources. The following command retrieves the VM and assigns the user-assigned identity to it:
2226
```powershell
2327
$vm = Get-AzVM -ResourceGroupName "YourResourceGroup" -Name "YourVMName"
@@ -39,7 +43,7 @@ $context = New-AzStorageContext -StorageAccountName "YourStorageAccountName" -Us
3943
$blob = Get-AzStorageBlob -Container "YourContainerName" -Blob "YourBlobName" -Context $context
4044
```
4145

42-
This setup ensures that your VMs can securely read from the specified blob container using the user-assigned managed identity.
46+
This setup ensures that your Azure VMs can securely read from the specified blob container using the user-assigned managed identity.
4347

4448
## Using a SAS Token
4549
While this next step is optional, you should add a shared access signature (SAS) token in the URL to ensure secure access to the package. The below example generates a blob SAS token with read access and returns the full blob URI with the shared access signature token. In this example, the token has a time limit of three years.

0 commit comments

Comments
 (0)