Vous êtes sur la page 1sur 5

**********************

Windows PowerShell transcript start


Start time: 20190804114328
Username: DESKTOP-4D0K72P\suraj
RunAs User: DESKTOP-4D0K72P\suraj
Configuration Name:
Machine: DESKTOP-4D0K72P (Microsoft Windows NT 10.0.17763.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Process ID: 2508
PSVersion: 5.1.17763.592
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.17763.592
BuildVersion: 10.0.17763.592
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
Transcript started, output file is
C:\Users\suraj\Documents\PowerShell_transcript.DESKTOP-
4D0K72P.XscL94Hq.20190804114328.txt
PS C:\Windows\system32> Get-ExecutionPolicy
Restricted
PS C:\Windows\system32> Set-ExecutionPolicy RemoteSigned
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing
the execution policy might expose you to the security risks described in the
about_Execution_Policies help topic at https:/go.microsoft.com/fwlink/?
LinkID=135170. Do you want to change the execution policy?
&Yes Yes to &All &No No to A&ll &Suspend
Y
PS C:\Windows\system32> cle
cle : The term 'cle' 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:1
+ cle
+ ~~~
+ CategoryInfo : ObjectNotFound: (cle:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
cle : The term 'cle' 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:1
+ cle
+ ~~~
+ CategoryInfo : ObjectNotFound: (cle:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> cls
PS C:\Windows\system32> Install-Module azurerm
NuGet provider is required to continue
PowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with
NuGet-based repositories. The NuGet provider must be available in 'C:\Program
Files\PackageManagement\ProviderAssemblies' or
'C:\Users\suraj\AppData\Local\PackageManagement\ProviderAssemblies'. You can also
install the NuGet provider by running 'Install-PackageProvider -Name NuGet
-MinimumVersion 2.8.5.201 -Force'. Do you want PowerShellGet to install and import
the NuGet provider now?
&Yes &No &Suspend
Y
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this
repository, change its InstallationPolicy value by running the Set-PSRepository
cmdlet. Are you sure you want to install the modules from 'PSGallery'?
&Yes Yes to &All &No No to A&ll &Suspend
Y
PS C:\Windows\system32> Install-Module azure -AllowClobber
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this
repository, change its InstallationPolicy value by running the Set-PSRepository
cmdlet. Are you sure you want to install the modules from 'PSGallery'?
&Yes Yes to &All &No No to A&ll &Suspend
Y
PS C:\Windows\system32> Login-AzureRmAccount
PS C:\Windows\system32> TerminatingError(New-Item): "The running command stopped
because the preference variable "ErrorActionPreference" or common parameter is set
to Stop: Could not find a part of the path
'C:\Users\suraj\.Azure\AzInstallationChecks.json'."

Account SubscriptionName TenantId


Environment
------- ---------------- --------
-----------
jxj7342@bjc.org Microsoft Azure Enterprise 1984aac0-7e83-4a2b-925d-f834a5a9cbd4
AzureCloud

PS C:\Windows\system32> Get-AzureRmVM
PS C:\Windows\system32> TerminatingError(New-Item): "The running command stopped
because the preference variable "ErrorActionPreference" or common parameter is set
to Stop: Could not find a part of the path
'C:\Users\suraj\.Azure\AzInstallationChecks.json'."

ResourceGroupName Name Location VmSize OsType


NIC ProvisioningState Zone
----------------- ---- -------- ------ ------
--- ----------------- ----
RG-BJC-CU-MAINFRM-01 BJCAZCUMF01 centralus Standard_F4s_v2 Windows
bjcazcumf0142 Succeeded
RG-BJC-CU-MAINFRM-01 BJCAZCUMF02 centralus Standard_F4s_v2 Windows
bjcazcumf0220 Succeeded
RG-BJC-CU-MAINFRM-01 BJCAZCUMF03 centralus Standard_F4s_v2 Windows
bjcazcumf03295 Succeeded
RG-BJC-CU-MAINFRM-01 upazcumf01 centralus Standard_D2s_v3 Linux
upazcumf01206 Succeeded
RG-BJC-CU-MAINFRM-01 UPAZCUMFHN01 centralus Standard_DS13_v2 Linux
upazcumfhn0190 Succeeded
RG-BJC-CU-MAINFRM-01 UPAZCUMFHN02 centralus Standard_DS13_v2 Linux
upazcumfhn02331 Succeeded
RG-BJC-CU-MAINFRM-01 UPAZCUMFHN03 centralus Standard_DS13_v2 Linux
upazcumfhn0341 Succeeded
RG-BJC-CU-MAINFRM-01 UPAZCUMFHN04 centralus Standard_DS13_v2 Linux
upazcumfhn04856 Succeeded
PS C:\Windows\system32> TerminatingError(New-Item): "The running command stopped
because the preference variable "ErrorActionPreference" or common parameter is set
to Stop: Could not find a part of the path
'C:\Users\suraj\.Azure\AzInstallationChecks.json'."
PS C:\Windows\system32> Set-AzureRmResourceGroup -name RG-BJC-CU-MAINFRM-01bjec-
nextgen-01
>> TerminatingError(Set-AzureRmResourceGroup): "Cannot bind parameter 'Tag'. Cannot
convert the "#" value of type "System.String" to type
"System.Collections.Hashtable"."
Set-AzureRmResourceGroup : Cannot bind parameter 'Tag'. Cannot convert the "#"
value of type "System.String" to type
"System.Collections.Hashtable".
At line:1 char:1
+ Set-AzureRmResourceGroup -name RG-BJC-CU-MAINFRM-01bjec-nextgen-01
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-AzureRmResourceGroup],
ParameterBindingException
+ FullyQualifiedErrorId :
CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Imp
lementa
tion.SetAzureResourceGroupCmdlet
Set-AzureRmResourceGroup : Cannot bind parameter 'Tag'. Cannot convert the "#"
value of type "System.String" to type
"System.Collections.Hashtable".
At line:1 char:1
+ Set-AzureRmResourceGroup -name RG-BJC-CU-MAINFRM-01bjec-nextgen-01
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-AzureRmResourceGroup],
ParameterBindingException
+ FullyQualifiedErrorId :
CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Imp
lemen
tation.SetAzureResourceGroupCmdlet

PS C:\Windows\system32> Set-AzureRmResourceGroup -name RG-BJC-NEXTGEN-01


>> TerminatingError(Set-AzureRmResourceGroup): "Cannot bind parameter 'Tag'. Cannot
convert the "" value of type "System.String" to type
"System.Collections.Hashtable"."
Set-AzureRmResourceGroup : Cannot bind parameter 'Tag'. Cannot convert the "" value
of type "System.String" to type
"System.Collections.Hashtable".
At line:1 char:1
+ Set-AzureRmResourceGroup -name RG-BJC-NEXTGEN-01
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-AzureRmResourceGroup],
ParameterBindingException
+ FullyQualifiedErrorId :
CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Imp
lementa
tion.SetAzureResourceGroupCmdlet
Set-AzureRmResourceGroup : Cannot bind parameter 'Tag'. Cannot convert the "" value
of type "System.String" to type
"System.Collections.Hashtable".
At line:1 char:1
+ Set-AzureRmResourceGroup -name RG-BJC-NEXTGEN-01
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-AzureRmResourceGroup],
ParameterBindingException
+ FullyQualifiedErrorId :
CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Imp
lemen
tation.SetAzureResourceGroupCmdlet

PS C:\Windows\system32> Set-AzureRmResourceGroup -name RG-BJC-NEXTGEN-01


>> TerminatingError(Set-AzureRmResourceGroup): "Cannot bind parameter 'Tag'. Cannot
convert the "?" value of type "System.String" to type
"System.Collections.Hashtable"."
Set-AzureRmResourceGroup : Cannot bind parameter 'Tag'. Cannot convert the "?"
value of type "System.String" to type
"System.Collections.Hashtable".
At line:1 char:1
+ Set-AzureRmResourceGroup -name RG-BJC-NEXTGEN-01
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-AzureRmResourceGroup],
ParameterBindingException
+ FullyQualifiedErrorId :
CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Imp
lementa
tion.SetAzureResourceGroupCmdlet
Set-AzureRmResourceGroup : Cannot bind parameter 'Tag'. Cannot convert the "?"
value of type "System.String" to type
"System.Collections.Hashtable".
At line:1 char:1
+ Set-AzureRmResourceGroup -name RG-BJC-NEXTGEN-01
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-AzureRmResourceGroup],
ParameterBindingException
+ FullyQualifiedErrorId :
CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Imp
lemen
tation.SetAzureResourceGroupCmdlet

PS C:\Windows\system32> cls
PS C:\Windows\system32> az keyvault create -n templatedeploy -g rg-bjc-nextgen-01
-l 'East US' --enabled-for-template-deployment true
az : The term 'az' 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:1
+ az keyvault create -n templatedeploy -g rg-bjc-nextgen-01 -l 'East US ...
+ ~~
+ CategoryInfo : ObjectNotFound: (az:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
az : The term 'az' 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:1
+ az keyvault create -n templatedeploy -g rg-bjc-nextgen-01 -l 'East US ...
+ ~~
+ CategoryInfo : ObjectNotFound: (az:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Windows\system32> New-AzureRmKeyVault -VaultName 'TemplateDeploy'
-ResourceGroup 'RG0-BJC-NEXTGEN-01' -Location 'West US'
New-AzureRmKeyVault : The client 'jxj7342@bjc.org' with object id '98e28df3-5c15-
413b-8626-78d7a4dbfdb3' does not have
authorization to perform action 'Microsoft.KeyVault/vaults/write' over scope
'/subscriptions/6c99cf12-4d99-428c-a31a-5a8
3d8ad5fed/resourceGroups/RG0-BJC-NEXTGEN-
01/providers/Microsoft.KeyVault/vaults/TemplateDeploy' or the scope is
invalid. If access was recently granted, please refresh your credentials.
At line:1 char:1
+ New-AzureRmKeyVault -VaultName 'TemplateDeploy' -ResourceGroup 'RG0-B ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureRmKeyVault], CloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.KeyVault.NewAzureKeyVault
New-AzureRmKeyVault : The client 'jxj7342@bjc.org' with object id '98e28df3-5c15-
413b-8626-78d7a4dbfdb3' does not have
authorization to perform action 'Microsoft.KeyVault/vaults/write' over scope
'/subscriptions/6c99cf12-4d99-428c-a31a-5a
83d8ad5fed/resourceGroups/RG0-BJC-NEXTGEN-
01/providers/Microsoft.KeyVault/vaults/TemplateDeploy' or the scope is
invalid. If access was recently granted, please refresh your credentials.
At line:1 char:1
+ New-AzureRmKeyVault -VaultName 'TemplateDeploy' -ResourceGroup 'RG0-B ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureRmKeyVault], CloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.KeyVault.NewAzureKeyVault

PS C:\Windows\system32> New-AzureRmKeyVault -VaultName 'TemplateDeploy'


-ResourceGroup 'RG0-BJC-NEXTGEN-01' -Location 'east US'
New-AzureRmKeyVault : The client 'jxj7342@bjc.org' with object id '98e28df3-5c15-
413b-8626-78d7a4dbfdb3' does not have
authorization to perform action 'Microsoft.KeyVault/vaults/write' over scope
'/subscriptions/6c99cf12-4d99-428c-a31a-5a8
3d8ad5fed/resourceGroups/RG0-BJC-NEXTGEN-
01/providers/Microsoft.KeyVault/vaults/TemplateDeploy' or the scope is
invalid. If access was recently granted, please refresh your credentials.
At line:1 char:1
+ New-AzureRmKeyVault -VaultName 'TemplateDeploy' -ResourceGroup 'RG0-B ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureRmKeyVault], CloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.KeyVault.NewAzureKeyVault
New-AzureRmKeyVault : The client 'jxj7342@bjc.org' with object id '98e28df3-5c15-
413b-8626-78d7a4dbfdb3' does not have authorization to perform action
'Microsoft.KeyVault/vaults/write' over scope
'/subscriptions/6c99cf12-4d99-428c-a31a-5a83d8ad5fed/resourceGroups/RG0-BJC-
NEXTGEN-01/providers/Microsoft.KeyVault/vaults/TemplateDeploy' or the scope is
invalid. If access was
recently granted, please refresh your credentials.
At line:1 char:1
+ New-AzureRmKeyVault -VaultName 'TemplateDeploy' -ResourceGroup 'RG0-B ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureRmKeyVault], CloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.KeyVault.NewAzureKeyVault

Vous aimerez peut-être aussi