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
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
### Example 1: Get Azs ContainerRegistry Capacity
```powershell
PS C:\> Get-AzsContainerRegistryCapacity

{
"AllowPush": true,
"Id": "/subscriptions/7e41090c-4aa7-40bc-856a-a993f8fbd215/providers/Microsoft.ContainerRegistry.Admin/locations/redmond/capacities/Default",
"MaximumCapacityInGiB": 2000,
"Name": "redmond/Default",
"RegistriesConsumptionInGiB": 0,
"Type": "Microsoft.ContainerRegistry.Admin/locations/capacities"
}
```

Returns container registry capacity property.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
### Example 1: Get AzsContainerRegistry Configuration
```powershell
PS C:\> Get-AzsContainerRegistryConfiguration

{{
"Id": "/subscriptions/7e41090c-4aa7-40bc-856a-a993f8fbd215/providers/Microsoft.ContainerRegistry.Admin/locations/redmond/configurations/Default",
"MaximumCapacityInGiB": 2000,
"Name": "redmond/Default",
"Type": "Microsoft.ContainerRegistry.Admin/locations/configurations"
}
```

Returns the specified configuration details.


Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
### Example 1: Get List Azs ContainerRegistry Quotas
```powershell
PS C:\> Get-AzsContainerRegistryQuota

[
{
"CapacityPerRegistryInGiB": 20,
"Id": "/subscriptions/7e41090c-4aa7-40bc-856a-a993f8fbd215/providers/Microsoft.ContainerRegistry.Admin/locations/redmond/quotas/Default quota",
"Name": "redmond/Default quota",
"NumberOfRegistry": 20,
"Type": "Microsoft.ContainerRegistry.Admin/locations/quotas"
},
{
"CapacityPerRegistryInGiB": 30,
"Id": "/subscriptions/7e41090c-4aa7-40bc-856a-a993f8fbd215/providers/Microsoft.ContainerRegistry.Admin/locations/redmond/quotas/testquota",
"Name": "redmond/testquota",
"NumberOfRegistry": 30,
"Type": "Microsoft.ContainerRegistry.Admin/locations/quotas"
}
]
```

Returns a list of container registry quotas at the given location.

### Example 2: Get Azs ContainerRegistry Quota by Name
```powershell
PS C:\> Get-AzsContainerRegistryQuota -Name "Default quota"

{
"CapacityPerRegistryInGiB": 20,
"Id": "/subscriptions/7e41090c-4aa7-40bc-856a-a993f8fbd215/providers/Microsoft.ContainerRegistry.Admin/locations/redmond/quotas/Default quota",
"Name": "redmond/Default quota",
"NumberOfRegistry": 20,
"Type": "Microsoft.ContainerRegistry.Admin/locations/quotas"
}
```

Returns the specified container registry quota.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
### Example 1: Get Azs ContainerRegistry Setup Status
```powershell
PS C:\> Get-AzsContainerRegistrySetupStatus

{
"id": "/subscriptions/7e41090c-4aa7-40bc-856a-a993f8fbd215/providers/Microsoft.ContainerRegistry.Setup/locations/redmond/setup/value",
"name": "redmond/value",
"type": "Microsoft.ContainerRegistry.Setup/locations/setup",
"properties": {
"status": "Completed"
}
}
```

Returns the status of the container registry setup.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
### Example 1: New Azs ContainerRegistry Quota
```powershell
PS C:\> New-AzsContainerRegistryQuota -QuotaName testquota -CapacityPerRegistryInGib 20 -NumberOfRegistry 20

{
"CapacityPerRegistryInGiB": 20,
"Id": "/subscriptions/7e41090c-4aa7-40bc-856a-a993f8fbd215/providers/Microsoft.ContainerRegistry.Admin/locations/redmond/quotas/testquota",
"Name": "redmond/testquota",
"NumberOfRegistry": 20,
"Type": "Microsoft.ContainerRegistry.Admin/locations/quotas"
}
```

Create or update an existing container registry quota.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Example 1: Read List Azs Container Registries
```powershell
PS C:\> Read-AzsContainerRegistry

{
"CreationDate": "\/Date(1629160842681)\/",
"Id": "/subscriptions/7e41090c-4aa7-40bc-856a-a993f8fbd215/providers/Microsoft.ContainerRegistry.Admin/locations/redmond/registries/testregistry01",
"Location": "redmond",
"Name": "redmond/testregistry01",
"PropertiesName": "testregistry01",
"RegistryId": "/subscriptions/72b77b1b-3e43-4d00-8b5b-be6beceb7f3a/resourceGroups/acrtenanttestrg/providers/Microsoft.ContainerRegistry/registries/testregistry01",
"RegistrySizeInByte": 3011,
"ResourceGroup": "acrtenanttestrg",
"SubscriptionId": "72b77b1b-3e43-4d00-8b5b-be6beceb7f3a",
"Type": "Microsoft.ContainerRegistry.Admin/locations/registries"
}
```

Returns a list of container registries present in all tenant location.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Example 1: Remove Azs ContainerRegistry Configuration
```powershell
PS C:\> Remove-AzsContainerRegistryConfiguration -ConfigurationName default

```

Delete an existing container registry configuration.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Example 1: Remove Azs ContainerRegistry Configuration
```powershell
PS C:\> Remove-AzsContainerRegistryConfiguration -ConfigurationName default

```

Delete an existing container registry configuration.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### Example 1: Set Azs ContainerRegistry Configuration
```powershell
PS C:\> Set-AzsContainerRegistryConfiguration -MaximumCapacityInGib 30 -ConfigurationName default

{
"Id": "/subscriptions/7e41090c-4aa7-40bc-856a-a993f8fbd215/providers/Microsoft.ContainerRegistry.Admin/locations/redmond/configurations/Default",
"MaximumCapacityInGiB": 30,
"Name": "redmond/Default",
"Type": "Microsoft.ContainerRegistry.Admin/locations/configurations"
}
```

Configure container registry overall configuration properties.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
### Example 1: Set Azs ContainerRegistry Quota
```powershell
PS C:\> Set-AzsContainerRegistryQuota -QuotaName testquota -CapacityPerRegistryInGib 30 -NumberOfRegistry 30

{
"CapacityPerRegistryInGiB": 30,
"Id": "/subscriptions/7e41090c-4aa7-40bc-856a-a993f8fbd215/providers/Microsoft.ContainerRegistry.Admin/locations/redmond/quotas/testquota",
"Name": "redmond/testquota",
"NumberOfRegistry": 30,
"Type": "Microsoft.ContainerRegistry.Admin/locations/quotas"
}
```

Update an existing container registry quota.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
### Example 1: Start Azs ContainerRegistry Setup
```powershell
PS C:\> Start-AzsContainerRegistrySetup -Password $password -SslCertInputFile $pfx_cert_path

```

Invokes container registry certificate uploading and service deployment.