Académique Documents
Professionnel Documents
Culture Documents
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'."
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'."
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