copying cloudypad installation
I created my azuere instance with cloudypad on notebook A and would like to copy it over to notebook B (to launch the instance from there). I copied ~/.cloudypad and the keypair from ~/.ssh but get this error when cloudypad start Steam (Steam being the instance)
I did an az login beforehand
./cloudypad start Steam
2025-01-09 17:25:42.898 ERROR /dist/src/tools/azure.js:61 Steam Failed to start virtual machine Steam-vme43**2e1:
AggregateAuthenticationError ChainedTokenCredential authentication failed.
CredentialUnavailableError: EnvironmentCredential is unavailable. No underlying credential could be used. To troubleshoot, visit https://aka.ms/azsdk/js/identity/environmentcredential/troubleshoot.
CredentialUnavailableError: WorkloadIdentityCredential: is unavailable. tenantId, clientId, and federatedTokenFilePath are required parameters.
In DefaultAzureCredential and ManagedIdentityCredential, these can be provided as environment variables -
"AZURE_TENANT_ID",
"AZURE_CLIENT_ID",
"AZURE_FEDERATED_TOKEN_FILE". See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/workloadidentitycredential/troubleshoot
Did you use the same set of credentials to connect ? If not, do they have access to the same subscription?
The method you used should work (I use it occasionally for testing though it's not officially supported). That should not cause issue though, if you did connect to Azure beforehand. I did something very similar - on Azure as well - without issues.
Can you compare output of az account show on both A and B and report if there's a difference ? (remove personal info from output if you post something here)
anonymised it's the same, but the original has the tenant domain and name in it for some reason.
original:
$ az account show
{
"environmentName": "AzureCloud",
"homeTenantId": "***2635c-59**-4*89-9*bf-bc9de621**d7",
"id": "**65dae8-***-4e**-**15-1c719a3a**56",
"isDefault": true,
"managedByTenants": [],
"name": "Pay-As-You-Go",
"state": "Enabled",
"tenantDefaultDomain": "domain",
"tenantDisplayName": "Name",
"tenantId": "***2635c-59**-4*89-9*bf-bc9de621**d7",
"user": {
"name": "email",
"type": "user"
}
}
copy:
$ az account show
{
"environmentName": "AzureCloud",
"homeTenantId": "***2635c-59**-4*89-9*bf-bc9de621**d7",
"id": "**65dae8-***-4e**-**15-1c719a3a**56",
"isDefault": true,
"managedByTenants": [],
"name": "Pay-As-You-Go",
"state": "Enabled",
"tenantId": "***2635c-59**-4*89-9*bf-bc9de621**d7",
"user": {
"name": "email",
"type": "user"
}
}
but I see these errors when running cloudypad start Steam
CredentialUnavailableError: Please run 'az login' from a command prompt to authenticate before using this credential.
CredentialUnavailableError: Error: Unable to execute PowerShell. Ensure that it is installed in your system. To troubleshoot, visit https://aka.ms/azsdk/js/identity/powershellcredential/troubleshoot.
CredentialUnavailableError: Azure Developer CLI couldn't be found. To mitigate this issue, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot., CredentialUnavailableError: EnvironmentCredential is unavailable. No underlying credential could be used. To troubleshoot, visit https://aka.ms/azsdk/js/identity/environmentcredential/troubleshoot.,CredentialUnavailableError: WorkloadIdentityCredential: is unavailable. tenantId, clientId, and federatedTokenFilePath are required parameters.
is my notebook B missing something? I installed powershell for good measure but no change..
What are OSes of both notebook? Can you also give output of
az --version
which az
ok, interesting. This is all in wsl2/windows 11, but I seem to have installed the az binaries in adifferent way (don't know how, I use az in other projects as well). From the path name it looks as if I use the windows binary in linux? 😳
original:
$ az version
{
"azure-cli": "2.67.0",
"azure-cli-core": "2.67.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {}
}
$ which az
/usr/bin/az
$ cat /etc/issue
Ubuntu 22.04.5 LTS \n \l
copy:
$ az version
{
"azure-cli": "2.53.0",
"azure-cli-core": "2.53.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {}
}
$ which az
/mnt/c/Program Files (x86)/Microsoft SDKs/Azure/CLI2/wbin/az
$ cat /etc/issue
Ubuntu 22.04.4 LTS \n \l
```