Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 39 additions & 8 deletions src/AppConfiguration/examples/Get-AzAppConfigurationStore.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,49 @@
### Example 1: {{ Add title here }}
### Example 1: List all app configurations under a subscription
```powershell
PS C:\> {{ Add code here }}
PS C:\> Get-AzAppConfigurationStore

{{ Add output here }}
Name Type
---- ----
Location Name Type
-------- ---- ----
eastus appconfig-test01 Microsoft.AppConfiguration/configurationStores
eastus contoso-app-config Microsoft.AppConfiguration/configurationStores
```

{{ Add description here }}
This command lists all app configurations under a subscription.

### Example 2: {{ Add title here }}
### Example 2: List all app configurations under a resource group
```powershell
PS C:\> {{ Add code here }}
PS C:\> Get-AzAppConfigurationStore -ResourceGroupName lucas-manual-test

{{ Add output here }}
Location Name Type
-------- ---- ----
eastus appconfig-test01 Microsoft.AppConfiguration/configurationStores
eastus appconfig-test02 Microsoft.AppConfiguration/configurationStores
```

{{ Add description here }}
This command lists all app configurations under a resource group.

### Example 3: Get an app configuration under a resource group
```powershell
PS C:\> Get-AzAppConfigurationStore -ResourceGroupName lucas-manual-test -Name appconfig-test01

Location Name Type
-------- ---- ----
eastus appconfig-test01 Microsoft.AppConfiguration/configurationStores
```

This command gets an app configuration under a resource group.

### Example 4: Get an app configuration under a resource group
```powershell
PS C:\> Get-AzAppConfigurationStore -ResourceGroupName lucas-manual-test -Name appconfig-test01 | Get-AzAppConfigurationStore

Location Name Type
-------- ---- ----
eastus appconfig-test01 Microsoft.AppConfiguration/configurationStores
```

This command gets an app configuration under a resource group.


25 changes: 10 additions & 15 deletions src/AppConfiguration/examples/Get-AzAppConfigurationStoreKey.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
### Example 1: {{ Add title here }}
### Example 1: List all store keys under an app configuration
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
PS C:\> Get-AzAppConfigurationStoreKey -Name appconfig-test01 -ResourceGroupName lucas-manual-test

ConnectionString LastModified Name ReadOnly Value
---------------- ------------ ---- -------- -----
Endpoint=https://appconfig-test01.azconfig.io;Id=TvV0-l0-s0:osSixtp4xggJYFlsJyYl;Secret=Bfxnosrs952PTGxvb2bdFtlTDCBPFDTlBATuEO5kRbc= 5/7/2020 9:09:27 AM Primary False Bfxnosrs952PTGxvb2bdFtlTDCBPFDTlBATuEO5k...
Endpoint=https://appconfig-test01.azconfig.io;Id=gcxl-l0-s0:JfSn6JA9UFkRj7/3GVTu;Secret=0fH4qQ+LLvKUKEiT3kICQTEbV0WNMi4xNu9RZxPx6X0= 5/7/2020 9:09:27 AM Secondary False 0fH4qQ+LLvKUKEiT3kICQTEbV0WNMi4xNu9RZxPx...
Endpoint=https://appconfig-test01.azconfig.io;Id=Sl1p-l0-s0:jVozhIOYoXZ9k5pCjWa2;Secret=bAmj8BqcHguVraXNAJfuD1bDR+gzlfk2hf8ZSZhE9Ik= 5/7/2020 9:09:27 AM Primary Read Only True bAmj8BqcHguVraXNAJfuD1bDR+gzlfk2hf8ZSZhE...
Endpoint=https://appconfig-test01.azconfig.io;Id=htND-l0-s0:GN83PmhOFYlAlcXHN2/6;Secret=n2tp5evU2F4Z1QkctG2TgZkgMxojEkod3KTEaEgcSMQ= 5/7/2020 9:09:27 AM Secondary Read Only True n2tp5evU2F4Z1QkctG2TgZkgMxojEkod3KTEaEgc...
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

This command lists all store keys under an app configuration.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
### Example 1: Get a store key-value of app configuration
```powershell
PS C:\> Get-AzAppConfigurationStoreKeyValue -Name appconfig-test01 -ResourceGroupName lucas-manual-test -Key testapp

ContentType ETag Key Label LastModified Locked Value
----------- ---- --- ----- ------------ ------ -----
4K9S9uYw0SjZcxKFhLWm0XR42UH testapp 5/8/2020 6:03:35 AM False 1
```

This command gets a store key-value of app configuration.

### Example 2: Get a store key-value with label of app configuration
```powershell
PS C:\> Get-AzAppConfigurationStoreKeyValue -Name appconfig-test01 -ResourceGroupName lucas-manual-test -ListKeyValueParameter @{key="testapp02";label="dev"}

ContentType ETag Key Label LastModified Locked Value
----------- ---- --- ----- ------------ ------ -----
lucas ZmDiVYrByKI4Ho9HqlhGdzJjlaZ testapp02 dev 5/8/2020 6:10:44 AM False 2
```

This command gets a store key-value with label of app configuration.
20 changes: 6 additions & 14 deletions src/AppConfiguration/examples/New-AzAppConfigurationStore.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
### Example 1: {{ Add title here }}
### Example 1: Create an app configuration
```powershell
PS C:\> {{ Add code here }}
PS C:\> New-AzAppConfigurationStore -Name appconfig-test03 -ResourceGroupName lucas-manual-test -Location eastus

{{ Add output here }}
Location Name Type
-------- ---- ----
eastus appconfig-test03 Microsoft.AppConfiguration/configurationStores
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

This command creates an app configuration.
21 changes: 7 additions & 14 deletions src/AppConfiguration/examples/New-AzAppConfigurationStoreKey.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
### Example 1: {{ Add title here }}
### Example 1: Regenerate store key of app configuration
```powershell
PS C:\> {{ Add code here }}
PS C:\> $keys= Get-AzAppConfigurationStoreKey -Name appconfig-test01 -ResourceGroupName lucas-manual-test
PS C:\> New-AzAppConfigurationStoreKey -Name appconfig-test01 -ResourceGroupName lucas-manual-test -Id $keys[0].id

{{ Add output here }}
ConnectionString LastModified Name ReadOnly Value
---------------- ------------ ---- -------- -----
Endpoint=https://appconfig-test01.azconfig.io;Id=09pv-l0-s0:opFCQMC6+9485xJgN5Ws;Secret=GcoE9e9t7GLRNJ910M46IrbHO/Vg0tt4HujRdsaCoTY= 5/8/2020 5:47:15 AM Secondary False GcoE9e9t7GLRNJ910M46IrbHO/Vg0tt4HujRdsaCoTY=
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

This command regenerate store key of app configuration.
15 changes: 6 additions & 9 deletions src/AppConfiguration/examples/Remove-AzAppConfigurationStore.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
### Example 1: {{ Add title here }}
### Example 1: Remove an app configuration
```powershell
PS C:\> {{ Add code here }}
PS C:\> Remove-AzAppConfigurationStore -Name appconfig-test03 -ResourceGroupName lucas-manual-test

{{ Add output here }}
```

{{ Add description here }}
This command removes an app configuration.

### Example 2: {{ Add title here }}
### Example 2: Remove an app configuration
```powershell
PS C:\> {{ Add code here }}
PS C:\> Get-AzAppConfigurationStore -Name appconfig-test02 -ResourceGroupName lucas-manual-test | Remove-AzAppConfigurationStore

{{ Add output here }}
```

{{ Add description here }}

This command removes an app configuration.
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
### Example 1: {{ Add title here }}
### Example 1: Test availability of the application configuration store name
```powershell
PS C:\> {{ Add code here }}
PS C:\> Test-AzAppConfigurationStoreNameAvailability -Name appconfig-test01

{{ Add output here }}
```

{{ Add description here }}
Message NameAvailable Reason
------- ------------- ------
The specified name is already in use. False AlreadyExists

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
PS C:\> Test-AzAppConfigurationStoreNameAvailability -Name asxmd-asd

{{ Add output here }}
Message NameAvailable Reason
------- ------------- ------
The specified name is available. True
```

{{ Add description here }}

This command test availability of the application configuration store name.
22 changes: 13 additions & 9 deletions src/AppConfiguration/examples/Update-AzAppConfigurationStore.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
### Example 1: {{ Add title here }}
### Example 1: Update an app configuration
```powershell
PS C:\> {{ Add code here }}
PS C:\> Update-AzAppConfigurationStore -Name appconfig-test01 -ResourceGroupName lucas-manual-test -SubscriptionId 9e223dbe-3399-4e19-88eb-0975f02ac87f

{{ Add output here }}
Location Name Type
-------- ---- ----
eastus appconfig-test01 Microsoft.AppConfiguration/configurationStores
```

{{ Add description here }}
This command updates an app configuration.

### Example 2: {{ Add title here }}
### Example 2: Update an app configuration
```powershell
PS C:\> {{ Add code here }}
PS C:\> $app = Get-AzAppConfigurationStore -Name appconfig-test01 -ResourceGroupName lucas-manual-test
PS C:\>Update-AzAppConfigurationStore -InputObject $app

{{ Add output here }}
Location Name Type
-------- ---- ----
eastus appconfig-test01 Microsoft.AppConfiguration/configurationStores
```

{{ Add description here }}

This command updates an app configuration.