Help with VTLReplicationSettings.ps1 for Azure Target

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)

Post Reply
jpcapone
Posts: 5
Joined: Sat Nov 20, 2021 3:04 am

Sat Nov 20, 2021 3:13 am

I have been stumbling through the set up process for StarWind VTL free and I am down to configuring replication to Azure blob storage. Can someone please help me to understand what values should be used for the following variables in the VTLReplicationSettings script:

$accessKey= # is this under Access keys/key1
$secretAccessKey="YourSecretKey" #I dont know what this correlates to in Azure Lingo
$regionName="region", # would this be "East US"?
$serviceUrl= # is this under Endpoints file service i.e. https://{Container_Name}.file.core.windows.net/
$target=16 # I am assuming this is correct as the replication target is azure

Thanks in advance!!
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Sat Nov 20, 2021 6:32 pm

Welcome to StarWind Forum.
$accessKey= # is this under Access keys/key1
Yes.
$secretAccessKey="YourSecretKey" #I dont know what this correlates to in Azure Lingo
This is for AWS
$regionName="region", # would this be "East US"?
This can be selected per your preference
$serviceUrl= # is this under Endpoints file service i.e. https://{Container_Name}.file.core.windows.net/
This is for AWS.
jpcapone
Posts: 5
Joined: Sat Nov 20, 2021 3:04 am

Sat Nov 20, 2021 7:19 pm

Thank you.
I guess I am a but confused now. Since the serviceurl is for AWS how does StarWind VTL know what to connect to in Azure? I mean it seems that the only thing that wouid refer to the blob storage endpoint is the accesskey. is that enough information for StarWind VTL to connect to Azure Blob storage?
Looks like containerName refers to the actual container. Are there any examples of this script being used for Azure blob storage or which variables are required?

$deviceName="vtl1",
$target=[StarWindVtlReplicationTarget]::REPLICATION_TARGET_S3,
$accessKey="<redacted>",
$secretAccessKey="<redacted>",
$regionName="us-east-1",
$containerName="off-site-backup",
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Sat Nov 20, 2021 8:07 pm

You need to type the target name.
Feel free to comment unused fields.
jpcapone
Posts: 5
Joined: Sat Nov 20, 2021 3:04 am

Sat Nov 20, 2021 8:21 pm

thanks for the reply.
are you referring to this:
$target=[StarWindVtlReplicationTarget]::REPLICATION_TARGET_S3,

If so what would be an example of what should go in the target name field?
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Sat Nov 20, 2021 8:51 pm

Try the target name that can be retrieved from iSCSI Initiator.
jpcapone
Posts: 5
Joined: Sat Nov 20, 2021 3:04 am

Sat Nov 20, 2021 9:30 pm

I am little bit confused. Using the following as an example (from the CreateVirtualTapeLibrary.ps1 script) where would i put the target name for the initiator?
$deviceName="VTL1",
$target=16,
$accessKey="Access key from Azure",
#$secretAccessKey="YourSecretKey",
$regionName="East US",
$containerName="TestBlobContainer",
#$serviceUrl="", # S3 Generic clouds only

)
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Mon Nov 22, 2021 11:38 am

Sorry for misleading. Target is the destination for the VTL offload.
# $target=2 #[StarWindVtlReplicationTarget]::REPLICATION_TARGET_S3
# $target=4 #[StarWindVtlReplicationTarget]::REPLICATION_TARGET_BACKBLAZE
# $target=16 #[StarWindVtlReplicationTarget]::REPLICATION_TARGET_AZURE
# $target=32 #[StarWindVtlReplicationTarget]::REPLICATION_TARGET_S3GENERIC
jpcapone
Posts: 5
Joined: Sat Nov 20, 2021 3:04 am

Mon Nov 22, 2021 5:42 pm

ok gotcha. Does my example script look like it might work?
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Mon Nov 22, 2021 9:03 pm

Looks good, let me know if you have any problems.
Post Reply