(Get-AzAppServicePlan -ResourceGroupName "<resource group name>" -Name "<app service plan name>").Sku.Capacity
This PowerShell script will collect usage information on all of the storage accounts you have access to as well as getting their location and SKU. It will output in a table format
First, you will need to install the ARMClient.exe application. This is what makes the REST calls to the the metrics APIs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$vmInfo = @() | |
class vmdata { | |
[string]$subscription | |
[string]$resourceGroupName | |
[string]$Name | |
[string]$Location | |
[string]$Size | |
[string]$OS | |
[string]$PowerState |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.CommandLine; | |
using System.CommandLine.Builder; | |
using System.CommandLine.Help; | |
using System.CommandLine.NamingConventionBinder; | |
namespace SysCmdLine | |
{ | |
class Program | |
{ | |
public static void Main(string[] args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Receives your Windows username as only parameter. | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/linux/amd64/kubectl | |
chmod +x ./kubectl | |
sudo mv ./kubectl /usr/local/bin/kubectl | |
windowsUser=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param keyvaultName string | |
param currentIpAddress string | |
param identityClientId string | |
param subNet1Id string | |
param subNet2Id string | |
param subNet3Id string | |
param subNet4Id string | |
param location string = resourceGroup().location | |
resource keyVaultResource 'Microsoft.KeyVault/vaults@2019-09-01' = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param keyvaultName string | |
param currentIpAddress string | |
param identityClientId string | |
param subNet1Id string | |
param subNet2Id string | |
param subNet3Id string | |
param subNet4Id string | |
param location string = resourceGroup().location | |
resource keyVaultResource 'Microsoft.KeyVault/vaults@2019-09-01' = { |
OlderNewer