This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
windows:powershell [2020/05/12 10:52] – [Commands] tmade | windows:powershell [2020/06/19 16:04] – [Module Path] tmade | ||
---|---|---|---|
Line 6: | Line 6: | ||
Get-Service -Name puppet | Get-Service -Name puppet | ||
Start-Service -Name puppet | Start-Service -Name puppet | ||
- | ====Commands==== | + | |
+ | ====Module Path==== | ||
- | | + | |
- | | + | |
- | Import-Module PowerShellGet -Force | + | |
- | Get-ExecutionPolicy | + | |
- | Set-ExecutionPolicy Unrestricted | + | |
- | Install-Module -Name AZureRM -AllowClobber | + | |
- | Import-Module -Name AzureRM | + | |
- | Login-AzureRmAccount | + | |
- | Get-AzureRmSubscription | + | |
- | New-AzureRMRecourceGroup -Name groupname -Location westeurope | + | |
- | Create Storageaccount: | + | ====Commands==== |
- | + | ||
- | < | + | |
- | Login-AzureRmAccount | + | |
- | + | ||
- | Get-AzureRmSubscription | + | |
- | + | ||
- | cd\ | + | |
- | cls | + | |
- | + | ||
- | $location | + | |
- | $group | + | |
- | + | ||
- | $account | + | |
- | + | ||
- | Get-AzureRMStorageAccount | Select StorageAccountName, | + | |
- | </ | + | |
- | ====Azure CLI==== | + | |
- | + | ||
- | https:// | + | |
- | + | ||
- | Powershell install: | + | |
- | + | ||
- | Invoke-WebRequest -Uri https:// | + | |
- | + | ||
- | az login --use-device-code | + | |
- | az login | + | |
- | az group list --out table #show resource groups | + | |
| | ||
- | Create resource groups: | + | Get-InstalledModule |
- | + | ||
- | < | + | |
- | #Azure CLI | + | |
- | + | ||
- | az login | + | |
- | + | ||
- | $group = "test-vm-rg" | + | |
- | $location = " | + | |
- | $account = " | + | |
- | + | ||
- | az storage account create --resource-group-name $group --location $location --sku Standard_LRS --name $account | + | |
- | + | ||
- | az storage account show --resource-group $group --name $account | + | |
- | </ | + |