Hello can anyone help with this failure log please
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Windows\system32> Add-AzureRmAccount -EnvironmentName Azurecloud
Account SubscriptionName TenantId Environment
d*********************** AzureCloud
PS C:\Windows\system32> Register-AzureRmResourceProvider -ProviderNamespace Microsoft.AzureStack
Register-AzureRmResourceProvider : 'this.Client.SubscriptionId' cannot be null.
At line:1 char:1
- Register-AzureRmResourceProvider -ProviderNamespace 920c6041-ce2a-44b ...
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : CloseError: (:) [Register-AzureRmResourceProvider], ValidationException
- FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.RegisterAzureProviderCmd
let
PS C:\Windows\system32> Import-Module C:\AzureStack-Tools-master\Registration\RegisterWithAzure.psm1
PS C:\Windows\system32
PS C:\Windows\system32> $AzureContext = Get-AzureRmContext
PS C:\Windows\system32> $CloudAdminCred = Get-Credential -UserName AZURESTACK\CloudAdmin -Message "Enter the credentials to access the privileged endpoint."
PS C:\Windows\system32> $RegistrationName = baseodforstack
baseodforstack : The term 'baseodforstack' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:21
- $RegistrationName = baseodforstack
- ~~~~~~~~~~~~~~
- CategoryInfo : ObjectNotFound: (baseodforstack:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
PS C:\Windows\system32> Set-AzsRegistration >> -PrivilegedEndpointCredential $CloudAdminCred
>> -PrivilegedEndpoint AzS-ERCS01 >> -BillingModel Development
>> -RegistrationName $RegistrationName `
>> -UsageReportingEnabled:$true