зеркало из
1
0
Форкнуть 0

[2301] update Azs.Network.Admin to 1.1.0

This commit is contained in:
Ian 2022-03-30 11:45:36 -06:00 коммит произвёл Wei Shi
Родитель 4b756404a9
Коммит a0fb995958
40 изменённых файлов: 3044 добавлений и 1378 удалений

1
.gitignore поставляемый
Просмотреть файл

@ -4,6 +4,7 @@ obj
generated
internal
exports
src/**/utils
src/**/tools
src/**/resources
.gitignore

Просмотреть файл

@ -0,0 +1,41 @@
# Custom
This directory contains custom implementation for non-generated cmdlets for the `Azs.Network.Admin` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Azs.Network.Admin.custom.psm1`. This file should not be modified.
## Info
- Modifiable: yes
- Generated: partial
- Committed: yes
- Packaged: yes
## Details
For `Azs.Network.Admin` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*.
For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Azs.Network.Admin.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder.
For script cmdlets, these are loaded via the `Azs.Network.Admin.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build.
## Purpose
This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder.
## Usage
The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters:
- Break
- DefaultProfile
- HttpPipelineAppend
- HttpPipelinePrepend
- Proxy
- ProxyCredential
- ProxyUseDefaultCredentials
These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Azs.Network.Admin`. For C#, follow the usage seen in the `ProcessRecordAsync` method.
### Attributes
For processing the cmdlets, we've created some additional attributes:
- `Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.DescriptionAttribute`
- Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
- `Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.DoNotExportAttribute`
- Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Azs.Network.Admin`.
- `Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.InternalExportAttribute`
- Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Azs.Network.Admin`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder.
- `Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.ProfileAttribute`
- Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.

Просмотреть файл

@ -1,6 +1,6 @@
---
Module Name: Azs.Network.Admin
Module Guid: 818c880d-2aa0-4aa3-961c-cc58c4ef12b2
Module Guid: 70926bce-bc6d-44d9-9c7c-04173e27f5c9
Download Help Link: https://docs.microsoft.com/en-us/powershell/module/azs.network.admin
Help Version: 1.0.0.0
Locale: en-US
@ -8,7 +8,7 @@ Locale: en-US
# Azs.Network.Admin Module
## Description
Preview release of the Network operators module which allows operators to monitor network resources and manage network quotas.
Microsoft AzureStack PowerShell: Network Admin cmdlets
## Azs.Network.Admin Cmdlets
### [Get-AzsLoadBalancer](Get-AzsLoadBalancer.md)
@ -26,6 +26,9 @@ List of public IP addresses.
### [Get-AzsVirtualNetwork](Get-AzsVirtualNetwork.md)
Get a list of all virtual networks.
### [Get-AzsVirtualNetworkGatewayConnection](Get-AzsVirtualNetworkGatewayConnection.md)
Returns a list of all Virtual Network Gateway Connections.
### [New-AzsNetworkQuota](New-AzsNetworkQuota.md)
Create or update a quota.

Просмотреть файл

@ -22,13 +22,34 @@ Get a list of all load balancers.
## EXAMPLES
### -------------------------- EXAMPLE 1 --------------------------
### Example 1: Default Get
```powershell
Get-AzsLoadBalancer
To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/azs.network.admin/get-azsloadbalancer
PS C:\> Get-AzsLoadBalancer
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/resourceGroups/AppServiceLH01/providers/Microsoft.Network/loadBalancers/aps-sql-lb
Location :
Name : aps-sql-lb
ProvisioningState : Succeeded
PublicIPAddress : {}
SubscriptionId : 3ff3b1de-e7f5-43ad-b057-ace4767e7d01
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
TenantResourceUri : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/resourceGroups/AppServiceLH01/providers/Microsoft.Network/loadBalancers/aps-sql-lb
Type : Microsoft.Network.Admin/adminLoadBalancers
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/resourceGroups/AppServiceLH01/providers/Microsoft.Network/loadBalancers/FrontEndServersLoadBalanc
er
Location :
Name : FrontEndServersLoadBalancer
ProvisioningState : Succeeded
PublicIPAddress : {100.81.128.40}
SubscriptionId : 3ff3b1de-e7f5-43ad-b057-ace4767e7d01
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
TenantResourceUri : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/resourceGroups/AppServiceLH01/providers/Microsoft.Network/loadBalancers/FrontEndServersLoadBalanc
er
Type : Microsoft.Network.Admin/adminLoadBalancers
```
Returns all of the virtual networks.
## PARAMETERS
@ -45,7 +66,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Filter
@ -61,7 +81,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -InlineCount
@ -77,7 +96,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -OrderBy
@ -93,7 +111,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Skip
@ -109,7 +126,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -SubscriptionId
@ -126,7 +142,6 @@ Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Top
@ -142,7 +157,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### CommonParameters
@ -154,9 +168,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ILoadBalancer
## ALIASES
## NOTES
ALIASES
## RELATED LINKS

Просмотреть файл

@ -28,13 +28,49 @@ Get an overview of the state of the network resource provider.
## EXAMPLES
### -------------------------- EXAMPLE 1 --------------------------
### Example 1: Default Get
```powershell
Get-AzsNetworkAdminOverview
To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/azs.network.admin/get-azsnetworkadminoverview
PS C:\> Get-AzsNetworkAdminOverview
BackendIPUsageInUseResourceCount : 40
BackendIPUsageTotalResourceCount : 282
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/providers/Microsoft.Network.Admin/adminOverview/
LoadBalancerMuxHealthErrorResourceCount : 0
LoadBalancerMuxHealthHealthyResourceCount : 2
LoadBalancerMuxHealthTotalResourceCount : 2
LoadBalancerMuxHealthUnknownCount : 0
LoadBalancerMuxHealthWarningResourceCount : 0
Location :
MacAddressUsageInUseResourceCount : 95
MacAddressUsageTotalResourceCount : 4063232
Name :
ProvisioningState : Succeeded
PublicIPAddressUsageInUseResourceCount : 65
PublicIPAddressUsageTotalResourceCount : 1023
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
Type : Microsoft.Network.Admin/adminOverview
VirtualGatewayHealthErrorResourceCount : 0
VirtualGatewayHealthHealthyResourceCount : 2
VirtualGatewayHealthTotalResourceCount : 3
VirtualGatewayHealthUnknownCount : 1
VirtualGatewayHealthWarningResourceCount : 0
VirtualNetworkHealthErrorResourceCount : 0
VirtualNetworkHealthHealthyResourceCount : 0
VirtualNetworkHealthTotalResourceCount : 31
VirtualNetworkHealthUnknownCount : 31
VirtualNetworkHealthWarningResourceCount : 0
```
Returns an overview of Network Admin.
### Example 2: Get a specific value
```powershell
PS C:\> (Get-AzsNetworkAdminOverview).BackendIPUsageTotalResourceCount
282
```
Returns the total resource count of the backend IPs.
## PARAMETERS
@ -51,7 +87,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -InputObject
@ -68,7 +103,6 @@ Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Dynamic: False
```
### -SubscriptionId
@ -85,7 +119,6 @@ Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### CommonParameters
@ -99,14 +132,16 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IAdminOverview
## ALIASES
## NOTES
### COMPLEX PARAMETER PROPERTIES
ALIASES
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
#### INPUTOBJECT <INetworkAdminIdentity>: Identity Parameter
INPUTOBJECT <INetworkAdminIdentity>: Identity Parameter
- `[Id <String>]`: Resource identity path
- `[Location <String>]`: Location of the resource.
- `[ResourceName <String>]`: Name of the resource.

Просмотреть файл

@ -0,0 +1,220 @@
---
external help file:
Module Name: Azs.Network.Admin
online version: https://docs.microsoft.com/en-us/powershell/module/azs.network.admin/get-azsnetworkquota
schema: 2.0.0
---
# Get-AzsNetworkQuota
## SYNOPSIS
Get a quota by name.
## SYNTAX
### List (Default)
```
Get-AzsNetworkQuota [-Location <String>] [-SubscriptionId <String[]>] [-Filter <String>]
[-DefaultProfile <PSObject>] [<CommonParameters>]
```
### Get
```
Get-AzsNetworkQuota -Name <String> [-Location <String>] [-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>] [<CommonParameters>]
```
### GetViaIdentity
```
Get-AzsNetworkQuota -InputObject <INetworkAdminIdentity> [-DefaultProfile <PSObject>] [<CommonParameters>]
```
## DESCRIPTION
Get a quota by name.
## EXAMPLES
### Example 1: Get by location
```powershell
PS C:\> Get-AzsNetworkQuota -Location northwest
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/providers/Microsoft.Network.Admin/locations/northwest/quotas/Def
ault Quota
Location : northwest
MaxLoadBalancersPerSubscription : 50
MaxNicsPerSubscription : 100
MaxPublicIpsPerSubscription : 50
MaxSecurityGroupsPerSubscription : 50
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
MaxVirtualNetworkGatewaysPerSubscription : 1
MaxVnetsPerSubscription : 50
MigrationPhase : None
Name : northwest/Default Quota
ProvisioningState : Succeeded
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
Type : Microsoft.Network.Admin/quotas
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/providers/Microsoft.Network.Admin/locations/northwest/quotas/Vaa
SSDKTestNetworkQuota
Location : northwest
MaxLoadBalancersPerSubscription : 50
MaxNicsPerSubscription : 100
MaxPublicIpsPerSubscription : 50
MaxSecurityGroupsPerSubscription : 50
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
MaxVirtualNetworkGatewaysPerSubscription : 1
MaxVnetsPerSubscription : 50
MigrationPhase : None
Name : northwest/VaaSSDKTestNetworkQuota
ProvisioningState : Succeeded
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
Type : Microsoft.Network.Admin/quotas
```
Returns all of the network quotas in northwest.
### Example 2: Get by location and name
```powershell
PS C:\> Get-AzsNetworkQuota -Location northwest -Name VaaSSDKTestNetworkQuota
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/providers/Microsoft.Network.Admin/locations/northwest/quotas/Vaa
SSDKTestNetworkQuota
Location : northwest
MaxLoadBalancersPerSubscription : 50
MaxNicsPerSubscription : 100
MaxPublicIpsPerSubscription : 50
MaxSecurityGroupsPerSubscription : 50
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
MaxVirtualNetworkGatewaysPerSubscription : 1
MaxVnetsPerSubscription : 50
MigrationPhase : None
Name : northwest/VaaSSDKTestNetworkQuota
ProvisioningState : Succeeded
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
Type : Microsoft.Network.Admin/quotas
```
Returns network quotas in the northwest that are named VaaSSDKTestNetworkQuota.
## PARAMETERS
### -DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
```yaml
Type: System.Management.Automation.PSObject
Parameter Sets: (All)
Aliases: AzureRMContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Filter
OData filter parameter.
```yaml
Type: System.String
Parameter Sets: List
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.INetworkAdminIdentity
Parameter Sets: GetViaIdentity
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
### -Location
Location of the resource.
```yaml
Type: System.String
Parameter Sets: Get, List
Aliases:
Required: False
Position: Named
Default value: (Get-AzLocation)[0].Location
Accept pipeline input: False
Accept wildcard characters: False
```
### -Name
Name of the resource.
```yaml
Type: System.String
Parameter Sets: Get
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SubscriptionId
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
```yaml
Type: System.String[]
Parameter Sets: Get, List
Aliases:
Required: False
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.INetworkAdminIdentity
## OUTPUTS
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IQuota
## NOTES
ALIASES
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
INPUTOBJECT <INetworkAdminIdentity>: Identity Parameter
- `[Id <String>]`: Resource identity path
- `[Location <String>]`: Location of the resource.
- `[ResourceName <String>]`: Name of the resource.
- `[SubscriptionId <String>]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
## RELATED LINKS

Просмотреть файл

@ -0,0 +1,209 @@
---
external help file:
Module Name: Azs.Network.Admin
online version: https://docs.microsoft.com/en-us/powershell/module/azs.network.admin/get-azspublicipaddress
schema: 2.0.0
---
# Get-AzsPublicIPAddress
## SYNOPSIS
List of public IP addresses.
## SYNTAX
```
Get-AzsPublicIPAddress [-SubscriptionId <String[]>] [-Filter <String>] [-InlineCount <String>]
[-OrderBy <String>] [-Skip <String>] [-Top <String>] [-DefaultProfile <PSObject>] [<CommonParameters>]
```
## DESCRIPTION
List of public IP addresses.
## EXAMPLES
### Example 1: Default Get
```powershell
PS C:\> Get-AzsPublicIPAddress
AllocationMethod : Dynamic
IPAddress : 100.81.128.46
IPPool : 731fb401-ff66-4626-95f4-bd5d1e812c1c
Id : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/publicIPAddresses/sqlvmpubip
Location :
Name : sqlvmpubip
ProvisioningState : Succeeded
SubscriptionId : 0c4ca7ea-4314-4940-a5dc-29886cfe7c42
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
TenantResourceUri : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/publicIPAddresses/sqlvmpubip
Type : Microsoft.Network.Admin/adminPublicIPAddresses
AllocationMethod : Dynamic
IPAddress :
IPPool :
Id : /subscriptions/26f17619-330c-4db7-8699-9b012e94cb6d/resourceGroups/cloudinittest1/providers/Microsoft.Network/publicIPAddresses/cloudinittest-ip
Location :
Name : cloudinittest-ip
ProvisioningState : Succeeded
SubscriptionId : 26f17619-330c-4db7-8699-9b012e94cb6d
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
TenantResourceUri : /subscriptions/26f17619-330c-4db7-8699-9b012e94cb6d/resourceGroups/cloudinittest1/providers/Microsoft.Network/publicIPAddresses/cloudinittest-ip
Type : Microsoft.Network.Admin/adminPublicIPAddresses
AllocationMethod : Static
IPAddress : 100.81.128.48
IPPool : 731fb401-ff66-4626-95f4-bd5d1e812c1c
Id : /subscriptions/26f17619-330c-4db7-8699-9b012e94cb6d/resourceGroups/kub/providers/Microsoft.Network/publicIPAddresses/vmd-publicIPtf7yd2q2ruluu
Location :
Name : vmd-publicIPtf7yd2q2ruluu
ProvisioningState : Succeeded
SubscriptionId : 26f17619-330c-4db7-8699-9b012e94cb6d
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
TenantResourceUri : /subscriptions/26f17619-330c-4db7-8699-9b012e94cb6d/resourceGroups/kub/providers/Microsoft.Network/publicIPAddresses/vmd-publicIPtf7yd2q2ruluu
Type : Microsoft.Network.Admin/adminPublicIPAddresses
```
Returns all of the public IP addresses.
### Example 2: Get by filtering
```powershell
PS C:\> Get-AzsPublicIPAddress -Filter "Name eq 'sqlvmpubip'"
AllocationMethod : Dynamic
IPAddress : 100.81.128.46
IPPool : 731fb401-ff66-4626-95f4-bd5d1e812c1c
Id : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/publicIPAddresses/sqlvmpubip
Location :
Name : sqlvmpubip
ProvisioningState : Succeeded
SubscriptionId : 0c4ca7ea-4314-4940-a5dc-29886cfe7c42
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
TenantResourceUri : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/publicIPAddresses/sqlvmpubip
Type : Microsoft.Network.Admin/adminPublicIPAddresses
```
Returns public IP addresses that are named sqlvmpubip.
## PARAMETERS
### -DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
```yaml
Type: System.Management.Automation.PSObject
Parameter Sets: (All)
Aliases: AzureRMContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Filter
OData filter parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -InlineCount
OData inline count parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -OrderBy
OData orderBy parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Skip
OData skip parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SubscriptionId
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
```yaml
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
```
### -Top
OData top parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IPublicIPAddress
## NOTES
ALIASES
## RELATED LINKS

Просмотреть файл

@ -0,0 +1,206 @@
---
external help file:
Module Name: Azs.Network.Admin
online version: https://docs.microsoft.com/en-us/powershell/module/azs.network.admin/get-azsvirtualnetwork
schema: 2.0.0
---
# Get-AzsVirtualNetwork
## SYNOPSIS
Get a list of all virtual networks.
## SYNTAX
```
Get-AzsVirtualNetwork [-SubscriptionId <String[]>] [-Filter <String>] [-InlineCount <String>]
[-OrderBy <String>] [-Skip <String>] [-Top <String>] [-DefaultProfile <PSObject>] [<CommonParameters>]
```
## DESCRIPTION
Get a list of all virtual networks.
## EXAMPLES
### Example 1: Default Get
```powershell
PS C:\> Get-AzsVirtualNetwork
ConfigurationStateHostError : {}
ConfigurationStateLastUpdatedTime : 2/10/2020 11:44:06 PM
ConfigurationStateStatus : Success
ConfigurationStateVirtualNetworkInterfaceError : {}
Id : /subscriptions/074e4440-77f1-422a-8622-0d146946698c/resourceGroups/vaasrg468c/providers/Microsoft.Network/virtualNetwork
s/vnetc4b363rprjk3q
Location :
Name : vnetc4b363rprjk3q
ProvisioningState : Succeeded
SubscriptionId : 074e4440-77f1-422a-8622-0d146946698c
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
TenantResourceUri : /subscriptions/074e4440-77f1-422a-8622-0d146946698c/resourceGroups/vaasrg468c/providers/Microsoft.Network/virtualNetwork
s/vnetc4b363rprjk3q
Type : Microsoft.Network.Admin/adminVirtualNetworks
ConfigurationStateHostError : {}
ConfigurationStateLastUpdatedTime : 2/10/2020 11:44:07 PM
ConfigurationStateStatus : Success
ConfigurationStateVirtualNetworkInterfaceError : {}
Id : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/v
irtualNetworks/4wxzf2ukegiemvnet
Location :
Name : 4wxzf2ukegiemvnet
ProvisioningState : Succeeded
SubscriptionId : 0c4ca7ea-4314-4940-a5dc-29886cfe7c42
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
TenantResourceUri : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/v
irtualNetworks/4wxzf2ukegiemvnet
Type : Microsoft.Network.Admin/adminVirtualNetworks
```
Returns all of the virtual networks.
### Example 2: Get by filtering
```powershell
PS C:\> Get-AzsVirtualNetwork -Filter "Name eq '4wxzf2ukegiemvnet'"
ConfigurationStateHostError : {}
ConfigurationStateLastUpdatedTime : 2/10/2020 11:49:20 PM
ConfigurationStateStatus : Success
ConfigurationStateVirtualNetworkInterfaceError : {}
Id : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/v
irtualNetworks/4wxzf2ukegiemvnet
Location :
Name : 4wxzf2ukegiemvnet
ProvisioningState : Succeeded
SubscriptionId : 0c4ca7ea-4314-4940-a5dc-29886cfe7c42
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
TenantResourceUri : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/v
irtualNetworks/4wxzf2ukegiemvnet
Type : Microsoft.Network.Admin/adminVirtualNetworks
```
Returns virtual networks that are named 4wxzf2ukegiemvnet.
## PARAMETERS
### -DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
```yaml
Type: System.Management.Automation.PSObject
Parameter Sets: (All)
Aliases: AzureRMContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Filter
OData filter parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -InlineCount
OData inline count parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -OrderBy
OData orderBy parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Skip
OData skip parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SubscriptionId
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
```yaml
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
```
### -Top
OData top parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IVirtualNetwork
## NOTES
ALIASES
## RELATED LINKS

Просмотреть файл

@ -0,0 +1,186 @@
---
external help file:
Module Name: Azs.Network.Admin
online version: https://docs.microsoft.com/en-us/powershell/module/azs.network.admin/get-azsvirtualnetworkgatewayconnection
schema: 2.0.0
---
# Get-AzsVirtualNetworkGatewayConnection
## SYNOPSIS
Returns a list of all Virtual Network Gateway Connections.
## SYNTAX
```
Get-AzsVirtualNetworkGatewayConnection [-SubscriptionId <String[]>] [-Filter <String>] [-OrderBy <String>]
[-Top <String>] [-DefaultProfile <PSObject>] [<CommonParameters>]
```
## DESCRIPTION
Returns a list of all Virtual Network Gateway Connections.
## EXAMPLES
### Example 1: Default Get
```powershell
PS C:\> Get-AzSVirtualNetworkGatewayConnection | Format-List *
CapacityReserved : 400
ConnectionErrorDetailedInfo :
ConnectionErrorLastUpdatedTime :
ConnectionErrorStatus :
ConnectionStateActiveGateway : n22r1602-Gwy01
ConnectionStateStatus : Connected
Id : /subscriptions/dc5ecb41-8865-454a-995c-8a5bb6f322d2/resourceGroups/ExampleRG/providers/Microsoft.Network/connections/Tokyo-Hub-Conn
LocalNetworkGatewayIPAddress : 10.10.54.52
LocalNetworkGatewayName : TokyoLNG
Location :
Name : Tokyo-Hub-Conn
ProvisioningState : Succeeded
ResourceGroup : ExampleRG
Sku : HighPerformance
SubscriptionId : dc5ecb41-8865-454a-995c-8a5bb6f322d2
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
TotalStampCapacity : 4000
Type : Microsoft.Network.Admin/adminVirtualNetworkGatewayConnections
VirtualNetworkGatewayIPAddress : 100.74.96.130
VirtualNetworkGatewayName : HubVNG
```
Returns a list of all Virtual Network Gateway Connections on the stamp.
To expand all properties, pipe the output into Format-List.
### Example 2: Use filters to Get specific connections
```powershell
PS C:\> Get-AzSVirtualNetworkGatewayConnection -Filter "Name eq 'Tokyo-Hub-Conn'" | Format-List *
CapacityReserved : 400
ConnectionErrorDetailedInfo : {Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20220201.VirtualNetworkGatewayConnectionConfigurationStateInfo}
ConnectionErrorLastUpdatedTime : 3/30/2022 4:32:29 PM
ConnectionErrorStatus : Failure
ConnectionStateActiveGateway : n22r1602-Gwy01
ConnectionStateStatus : Disconnected
Id : /subscriptions/dc5ecb41-8865-454a-995c-8a5bb6f322d2/resourceGroups/ExampleRG/providers/Microsoft.Network/connections/Tokyo-Hub-Conn
LocalNetworkGatewayIPAddress : 10.10.54.52
LocalNetworkGatewayName : TokyoLNG
Location :
Name : Tokyo-Hub-Conn
ProvisioningState : Succeeded
ResourceGroup : ExampleRG
Sku : HighPerformance
SubscriptionId : dc5ecb41-8865-454a-995c-8a5bb6f322d2
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
TotalStampCapacity : 4000
Type : Microsoft.Network.Admin/adminVirtualNetworkGatewayConnections
VirtualNetworkGatewayIPAddress : 100.74.96.130
VirtualNetworkGatewayName : HubVNG
```
Returns a list of all Virtual Network Gateway Connections that match the filter.
To expand all properties, pipe the output into Format-List.
### Example 2: Get a specific property
```powershell
PS C:\> (Get-AzSVirtualNetworkGatewayConnection -Filter "Name eq 'Tokyo-Hub-Conn'").ConnectionErrorDetailedInfo | Format-List
Code : 13801
Message : IKE authentication credentials are unacceptable.
Source : Network Controller
```
Returns the specified property.
## PARAMETERS
### -DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
```yaml
Type: System.Management.Automation.PSObject
Parameter Sets: (All)
Aliases: AzureRMContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Filter
OData filter parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -OrderBy
OData orderBy parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SubscriptionId
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
```yaml
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
```
### -Top
OData top parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20220201.IVirtualNetworkGatewayConnection
## NOTES
ALIASES
## RELATED LINKS

Просмотреть файл

@ -28,41 +28,58 @@ New-AzsNetworkQuota -Name <String> -Quota <IQuota> [-Location <String>] [-Subscr
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
```
### CreateViaIdentity
```
New-AzsNetworkQuota -InputObject <INetworkAdminIdentity> -Quota <IQuota> [-DefaultProfile <PSObject>]
[-Confirm] [-WhatIf] [<CommonParameters>]
```
### CreateViaIdentityExpanded
```
New-AzsNetworkQuota -InputObject <INetworkAdminIdentity> [-MaxLoadBalancersPerSubscription <Int64>]
[-MaxNicsPerSubscription <Int64>] [-MaxPublicIpsPerSubscription <Int64>]
[-MaxSecurityGroupsPerSubscription <Int64>] [-MaxVirtualNetworkGatewayConnectionsPerSubscription <Int64>]
[-MaxVirtualNetworkGatewaysPerSubscription <Int64>] [-MaxVnetsPerSubscription <Int64>] [-Tag <Hashtable>]
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
```
## DESCRIPTION
Create or update a quota.
## EXAMPLES
### -------------------------- EXAMPLE 1 --------------------------
```
New-AzsNetworkQuota -Name NetworkQuotaDefaultValues
### Example 1: Default New
```powershell
PS C:\> New-AzsNetworkQuota -Name NetworkQuotaDefaultValues
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/providers/Microsoft.Network.Admin/locations/northwest/quotas/Net
workQuotaDefaultValues
Location : northwest
MaxLoadBalancersPerSubscription : 50
MaxNicsPerSubscription : 100
MaxPublicIpsPerSubscription : 50
MaxSecurityGroupsPerSubscription : 50
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
MaxVirtualNetworkGatewaysPerSubscription : 1
MaxVnetsPerSubscription : 50
MigrationPhase : None
Name : northwest/NetworkQuotaDefaultValues
ProvisioningState : Succeeded
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
Type : Microsoft.Network.Admin/quotas
```
Create a new network quota with all the default values.
Returns the created object's values.
### -------------------------- EXAMPLE 2 --------------------------
```
New-AzsNetworkQuota -Name NetworkQuota1 -MaxNicsPerSubscription 150 -MaxPublicIpsPerSubscription 150
### Example 2: Create new Quota with parameters
```powershell
PS C:\> New-AzsNetworkQuota -Name NetworkQuota1 -MaxNicsPerSubscription 150 -MaxPublicIpsPerSubscription 150
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/providers/Microsoft.Network.Admin/locations/northwest/quotas/Net
workQuota1
Location : northwest
MaxLoadBalancersPerSubscription : 50
MaxNicsPerSubscription : 150
MaxPublicIpsPerSubscription : 150
MaxSecurityGroupsPerSubscription : 50
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
MaxVirtualNetworkGatewaysPerSubscription : 1
MaxVnetsPerSubscription : 50
MigrationPhase : None
Name : northwest/NetworkQuota1
ProvisioningState : Succeeded
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
Type : Microsoft.Network.Admin/quotas
```
Create a new network quota with non default values for quota.
## PARAMETERS
### -DefaultProfile
@ -78,24 +95,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.INetworkAdminIdentity
Parameter Sets: CreateViaIdentity, CreateViaIdentityExpanded
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Dynamic: False
```
### -Location
@ -103,15 +102,14 @@ Location of the resource.
```yaml
Type: System.String
Parameter Sets: Create, CreateExpanded
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: (Get-AzLocation)[0].Name
Default value: (Get-AzLocation)[0].Location
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -MaxLoadBalancersPerSubscription
@ -119,7 +117,7 @@ Maximum number of load balancers a tenant subscription can provision.
```yaml
Type: System.Int64
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
Parameter Sets: CreateExpanded
Aliases:
Required: False
@ -127,7 +125,6 @@ Position: Named
Default value: 50
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -MaxNicsPerSubscription
@ -135,7 +132,7 @@ Maximum number of NICs a tenant subscription can provision.
```yaml
Type: System.Int64
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
Parameter Sets: CreateExpanded
Aliases:
Required: False
@ -143,7 +140,6 @@ Position: Named
Default value: 100
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -MaxPublicIpsPerSubscription
@ -151,7 +147,7 @@ Maximum number of public IP addresses a tenant subscription can provision.
```yaml
Type: System.Int64
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
Parameter Sets: CreateExpanded
Aliases:
Required: False
@ -159,7 +155,6 @@ Position: Named
Default value: 50
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -MaxSecurityGroupsPerSubscription
@ -167,7 +162,7 @@ Maximum number of security groups a tenant subscription can provision.
```yaml
Type: System.Int64
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
Parameter Sets: CreateExpanded
Aliases:
Required: False
@ -175,7 +170,6 @@ Position: Named
Default value: 50
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -MaxVirtualNetworkGatewayConnectionsPerSubscription
@ -183,7 +177,7 @@ Maximum number of virtual network gateway Connections a tenant subscription can
```yaml
Type: System.Int64
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
Parameter Sets: CreateExpanded
Aliases:
Required: False
@ -191,7 +185,6 @@ Position: Named
Default value: 2
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -MaxVirtualNetworkGatewaysPerSubscription
@ -199,7 +192,7 @@ Maximum number of virtual network gateways a tenant subscription can provision.
```yaml
Type: System.Int64
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
Parameter Sets: CreateExpanded
Aliases:
Required: False
@ -207,7 +200,6 @@ Position: Named
Default value: 1
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -MaxVnetsPerSubscription
@ -215,7 +207,7 @@ Maximum number of virtual networks a tenant subscription can provision.
```yaml
Type: System.Int64
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
Parameter Sets: CreateExpanded
Aliases:
Required: False
@ -223,7 +215,6 @@ Position: Named
Default value: 50
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Name
@ -231,7 +222,7 @@ Name of the resource.
```yaml
Type: System.String
Parameter Sets: Create, CreateExpanded
Parameter Sets: (All)
Aliases:
Required: True
@ -239,7 +230,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Quota
@ -248,7 +238,7 @@ To construct, see NOTES section for QUOTA properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IQuota
Parameter Sets: Create, CreateViaIdentity
Parameter Sets: Create
Aliases:
Required: True
@ -256,7 +246,6 @@ Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Dynamic: False
```
### -SubscriptionId
@ -265,7 +254,7 @@ The subscription ID forms part of the URI for every service call.
```yaml
Type: System.String
Parameter Sets: Create, CreateExpanded
Parameter Sets: (All)
Aliases:
Required: False
@ -273,7 +262,6 @@ Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Tag
@ -281,7 +269,7 @@ List of key value pairs.
```yaml
Type: System.Collections.Hashtable
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
Parameter Sets: CreateExpanded
Aliases:
Required: False
@ -289,7 +277,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Confirm
@ -305,7 +292,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -WhatIf
@ -322,7 +308,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### CommonParameters
@ -332,26 +317,20 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IQuota
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.INetworkAdminIdentity
## OUTPUTS
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IQuota
## ALIASES
## NOTES
### COMPLEX PARAMETER PROPERTIES
ALIASES
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
#### INPUTOBJECT <INetworkAdminIdentity>: Identity Parameter
- `[Id <String>]`: Resource identity path
- `[Location <String>]`: Location of the resource.
- `[ResourceName <String>]`: Name of the resource.
- `[SubscriptionId <String>]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
#### QUOTA <IQuota>: Network quota resource.
QUOTA <IQuota>: Network quota resource.
- `[Tag <IResourceTags>]`: List of key value pairs.
- `[(Any) <String>]`: This indicates any property can be added to this object.
- `[MaxLoadBalancersPerSubscription <Int64?>]`: Maximum number of load balancers a tenant subscription can provision.

Просмотреть файл

@ -29,27 +29,24 @@ Delete a quota by name.
## EXAMPLES
### -------------------------- EXAMPLE 1 --------------------------
```
Remove-AzsNetworkQuota -Name NetworkQuota1
### Example 1: Default Delete
```powershell
PS C:\> Remove-AzsNetworkQuota -Name NetworkQuota1
```
Remove a network quota by name.
### -------------------------- EXAMPLE 2 --------------------------
```
Get-AzsNetworkQuota -Name NetworkQuota1 | Remove-AzsNetworkQuota
### Example 2: Create new Quota with parameters
```powershell
PS C:\> Get-AzsNetworkQuota -Name NetworkQuota1 | Remove-AzsNetworkQuota
```
Remove a network quota using a pipe.
### -------------------------- EXAMPLE 3 --------------------------
```
Remove-AzsNetworkQuota -Name NetworkQuota1
```
Remove a network quota.
## PARAMETERS
### -AsJob
@ -65,7 +62,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -DefaultProfile
@ -81,7 +77,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -InputObject
@ -98,7 +93,6 @@ Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Dynamic: False
```
### -Location
@ -111,10 +105,9 @@ Aliases:
Required: False
Position: Named
Default value: (Get-AzLocation)[0].Name
Default value: (Get-AzLocation)[0].Location
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Name
@ -130,7 +123,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -NoWait
@ -146,7 +138,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -PassThru
@ -162,7 +153,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -SubscriptionId
@ -179,7 +169,6 @@ Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Confirm
@ -195,7 +184,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -WhatIf
@ -212,7 +200,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### CommonParameters
@ -226,14 +213,16 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
### System.Boolean
## ALIASES
## NOTES
### COMPLEX PARAMETER PROPERTIES
ALIASES
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
#### INPUTOBJECT <INetworkAdminIdentity>: Identity Parameter
INPUTOBJECT <INetworkAdminIdentity>: Identity Parameter
- `[Id <String>]`: Resource identity path
- `[Location <String>]`: Location of the resource.
- `[ResourceName <String>]`: Name of the resource.

Просмотреть файл

@ -0,0 +1,189 @@
---
external help file:
Module Name: Azs.Network.Admin
online version: https://docs.microsoft.com/en-us/powershell/module/azs.network.admin/set-azsnetworkquota
schema: 2.0.0
---
# Set-AzsNetworkQuota
## SYNOPSIS
Create or update a quota.
## SYNTAX
```
Set-AzsNetworkQuota -Quota <IQuota> [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm]
[-WhatIf] [<CommonParameters>]
```
## DESCRIPTION
Create or update a quota.
## EXAMPLES
### Example 1: Set value for MaxNicsPerSubscription using Quota parameter
```powershell
PS C:\> $quota = Get-AzsNetworkQuota -Name MyQuota
PS C:\> $quota.MaxNicsPerSubscription = 30
PS C:\> Set-AzsNetworkQuota -Quota $quota
Id : /subscriptions/39c82aed-b2b7-4a66-abdb-611de00bf11e/providers/Microsoft.Network.Admin/locations/northwest/quotas/MyQuota
Location : northwest
MaxLoadBalancersPerSubscription : 50
MaxNicsPerSubscription : 30
MaxPublicIpsPerSubscription : 50
MaxSecurityGroupsPerSubscription : 50
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
MaxVirtualNetworkGatewaysPerSubscription : 1
MaxVnetsPerSubscription : 50
MigrationPhase : None
Name : northwest/MyQuota
ProvisioningState : Succeeded
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
Type : Microsoft.Network.Admin/quotas
```
Returns MyQuota with the MaxNicsPerSubscription changed to 30.
### Example 2: Set value for MaxNicsPerSubscription using a pipeline
```powershell
PS C:\> $quota = Get-AzsNetworkQuota -Name MyQuota
PS C:\> $quota.MaxNicsPerSubscription = 50
PS C:\> $quota | Set-AzsNetworkQuota
Id : /subscriptions/39c82aed-b2b7-4a66-abdb-611de00bf11e/providers/Microsoft.Network.Admin/locations/northwest/quotas/MyQuota
Location : northwest
MaxLoadBalancersPerSubscription : 50
MaxNicsPerSubscription : 50
MaxPublicIpsPerSubscription : 50
MaxSecurityGroupsPerSubscription : 50
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
MaxVirtualNetworkGatewaysPerSubscription : 1
MaxVnetsPerSubscription : 50
MigrationPhase : None
Name : northwest/MyQuota
ProvisioningState : Succeeded
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
Type : Microsoft.Network.Admin/quotas
```
Pipelines the quota variable to change the MaxNicsPerSubscription to 50.
## PARAMETERS
### -DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
```yaml
Type: System.Management.Automation.PSObject
Parameter Sets: (All)
Aliases: AzureRMContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Quota
Network quota resource.
To construct, see NOTES section for QUOTA properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IQuota
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
### -SubscriptionId
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IQuota
## OUTPUTS
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IQuota
## NOTES
ALIASES
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
QUOTA <IQuota>: Network quota resource.
- `[Tag <IResourceTags>]`: List of key value pairs.
- `[(Any) <String>]`: This indicates any property can be added to this object.
- `[MaxLoadBalancersPerSubscription <Int64?>]`: Maximum number of load balancers a tenant subscription can provision.
- `[MaxNicsPerSubscription <Int64?>]`: Maximum number of NICs a tenant subscription can provision.
- `[MaxPublicIpsPerSubscription <Int64?>]`: Maximum number of public IP addresses a tenant subscription can provision.
- `[MaxSecurityGroupsPerSubscription <Int64?>]`: Maximum number of security groups a tenant subscription can provision.
- `[MaxVirtualNetworkGatewayConnectionsPerSubscription <Int64?>]`: Maximum number of virtual network gateway Connections a tenant subscription can provision.
- `[MaxVirtualNetworkGatewaysPerSubscription <Int64?>]`: Maximum number of virtual network gateways a tenant subscription can provision.
- `[MaxVnetsPerSubscription <Int64?>]`: Maximum number of virtual networks a tenant subscription can provision.
## RELATED LINKS

Просмотреть файл

@ -1,196 +0,0 @@
---
external help file:
Module Name: Azs.Network.Admin
online version: https://docs.microsoft.com/en-us/powershell/module/azs.network.admin/get-azsnetworkquota
schema: 2.0.0
---
# Get-AzsNetworkQuota
## SYNOPSIS
Get a quota by name.
## SYNTAX
### List (Default)
```
Get-AzsNetworkQuota [-Location <String>] [-SubscriptionId <String[]>] [-Filter <String>]
[-DefaultProfile <PSObject>] [-PassThru] [<CommonParameters>]
```
### Get
```
Get-AzsNetworkQuota -Name <String> [-Location <String>] [-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>] [-PassThru] [<CommonParameters>]
```
### GetViaIdentity
```
Get-AzsNetworkQuota -InputObject <INetworkAdminIdentity> [-DefaultProfile <PSObject>] [-PassThru]
[<CommonParameters>]
```
## DESCRIPTION
List all quotas.
Limit the list by passing a name or filter.
## EXAMPLES
### -------------------------- EXAMPLE 1 --------------------------
```
Get-AzsNetworkQuota
```
Lists all the network quotas.
### -------------------------- EXAMPLE 2 --------------------------
```
Get-AzsNetworkQuota -Name NetworkQuota1
```
Gets the specified network quota.
## PARAMETERS
### -DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
```yaml
Type: System.Management.Automation.PSObject
Parameter Sets: (All)
Aliases: AzureRMContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Filter
OData filter parameter.
```yaml
Type: System.String
Parameter Sets: List
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.INetworkAdminIdentity
Parameter Sets: GetViaIdentity
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Dynamic: False
```
### -Location
Location of the resource.
```yaml
Type: System.String
Parameter Sets: Get, List
Aliases:
Required: False
Position: Named
Default value: (Get-AzLocation)[0].Name
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Name
Name of the resource.
```yaml
Type: System.String
Parameter Sets: Get
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -PassThru
Returns true when the command succeeds
```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -SubscriptionId
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
```yaml
Type: System.String[]
Parameter Sets: Get, List
Aliases:
Required: False
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.INetworkAdminIdentity
## OUTPUTS
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IQuota
## ALIASES
## NOTES
### COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
#### INPUTOBJECT <INetworkAdminIdentity>: Identity Parameter
- `[Id <String>]`: Resource identity path
- `[Location <String>]`: Location of the resource.
- `[ResourceName <String>]`: Name of the resource.
- `[SubscriptionId <String>]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
## RELATED LINKS

Просмотреть файл

@ -1,162 +0,0 @@
---
external help file:
Module Name: Azs.Network.Admin
online version: https://docs.microsoft.com/en-us/powershell/module/azs.network.admin/get-azspublicipaddress
schema: 2.0.0
---
# Get-AzsPublicIPAddress
## SYNOPSIS
List of public ip addresses.
## SYNTAX
```
Get-AzsPublicIPAddress [-SubscriptionId <String[]>] [-Filter <String>] [-InlineCount <String>]
[-OrderBy <String>] [-Skip <String>] [-Top <String>] [-DefaultProfile <PSObject>] [<CommonParameters>]
```
## DESCRIPTION
List of public ip addresses.
## EXAMPLES
### -------------------------- EXAMPLE 1 --------------------------
```powershell
Get-AzsPublicIPAddress
To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/azs.network.admin/get-azspublicipaddress
```
Get the list of public ip addresses, either allocated or not allocated.
## PARAMETERS
### -DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
```yaml
Type: System.Management.Automation.PSObject
Parameter Sets: (All)
Aliases: AzureRMContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Filter
OData filter parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -InlineCount
OData inline count parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -OrderBy
OData orderBy parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Skip
OData skip parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -SubscriptionId
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
```yaml
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Top
OData top parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IPublicIPAddress
## ALIASES
## NOTES
## RELATED LINKS

Просмотреть файл

@ -1,162 +0,0 @@
---
external help file:
Module Name: Azs.Network.Admin
online version: https://docs.microsoft.com/en-us/powershell/module/azs.network.admin/get-azsvirtualnetwork
schema: 2.0.0
---
# Get-AzsVirtualNetwork
## SYNOPSIS
Get a list of all virtual networks.
## SYNTAX
```
Get-AzsVirtualNetwork [-SubscriptionId <String[]>] [-Filter <String>] [-InlineCount <String>]
[-OrderBy <String>] [-Skip <String>] [-Top <String>] [-DefaultProfile <PSObject>] [<CommonParameters>]
```
## DESCRIPTION
Get a list of all virtual networks.
## EXAMPLES
### -------------------------- EXAMPLE 1 --------------------------
```powershell
Get-AzsVirtualNetwork
To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/azs.network.admin/get-azsvirtualnetwork
```
Return a list of virtual networks for the Azure Stack stamp.
## PARAMETERS
### -DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
```yaml
Type: System.Management.Automation.PSObject
Parameter Sets: (All)
Aliases: AzureRMContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Filter
OData filter parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -InlineCount
OData inline count parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -OrderBy
OData orderBy parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Skip
OData skip parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -SubscriptionId
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
```yaml
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Top
OData top parameter.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IVirtualNetwork
## ALIASES
## NOTES
## RELATED LINKS

Просмотреть файл

@ -1,325 +0,0 @@
---
external help file:
Module Name: Azs.Network.Admin
online version: https://docs.microsoft.com/en-us/powershell/module/azs.network.admin/set-azsnetworkquota
schema: 2.0.0
---
# Set-AzsNetworkQuota
## SYNOPSIS
Create or update a quota.
## SYNTAX
### UpdateExpanded (Default)
```
Set-AzsNetworkQuota -Name <String> [-Location <String>] [-SubscriptionId <String>]
[-MaxLoadBalancersPerSubscription <Int64>] [-MaxNicsPerSubscription <Int64>]
[-MaxPublicIpsPerSubscription <Int64>] [-MaxSecurityGroupsPerSubscription <Int64>]
[-MaxVirtualNetworkGatewayConnectionsPerSubscription <Int64>]
[-MaxVirtualNetworkGatewaysPerSubscription <Int64>] [-MaxVnetsPerSubscription <Int64>] [-Tag <Hashtable>]
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
```
### Update
```
Set-AzsNetworkQuota -Name <String> -Quota <IQuota> [-Location <String>] [-SubscriptionId <String>]
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
```
## DESCRIPTION
Create or update a quota.
## EXAMPLES
### -------------------------- EXAMPLE 1 --------------------------
```
Set-AzsNetworkQuota -Name NetworkQuota1 -MaxVnetsPerSubscription 20
```
Update a network quota by name.
### -------------------------- EXAMPLE 2 --------------------------
```
Set-AzsNetworkQuota -Name NetworkQuota1 -MaxPublicIpsPerSubscription 75 -MaxNicsPerSubscription 100
```
Update a network quota by name.
## PARAMETERS
### -DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
```yaml
Type: System.Management.Automation.PSObject
Parameter Sets: (All)
Aliases: AzureRMContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Location
Location of the resource.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: (Get-AzLocation)[0].Name
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -MaxLoadBalancersPerSubscription
Maximum number of load balancers a tenant subscription can provision.
```yaml
Type: System.Int64
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -MaxNicsPerSubscription
Maximum number of NICs a tenant subscription can provision.
```yaml
Type: System.Int64
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -MaxPublicIpsPerSubscription
Maximum number of public IP addresses a tenant subscription can provision.
```yaml
Type: System.Int64
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -MaxSecurityGroupsPerSubscription
Maximum number of security groups a tenant subscription can provision.
```yaml
Type: System.Int64
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -MaxVirtualNetworkGatewayConnectionsPerSubscription
Maximum number of virtual network gateway Connections a tenant subscription can provision.
```yaml
Type: System.Int64
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -MaxVirtualNetworkGatewaysPerSubscription
Maximum number of virtual network gateways a tenant subscription can provision.
```yaml
Type: System.Int64
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -MaxVnetsPerSubscription
Maximum number of virtual networks a tenant subscription can provision.
```yaml
Type: System.Int64
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Name
Name of the resource.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Quota
Network quota resource.
To construct, see NOTES section for QUOTA properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IQuota
Parameter Sets: Update
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Dynamic: False
```
### -SubscriptionId
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Tag
List of key value pairs.
```yaml
Type: System.Collections.Hashtable
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IQuota
## OUTPUTS
### Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IQuota
## ALIASES
## NOTES
### COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
#### QUOTA <IQuota>: Network quota resource.
- `[Tag <IResourceTags>]`: List of key value pairs.
- `[(Any) <String>]`: This indicates any property can be added to this object.
- `[MaxLoadBalancersPerSubscription <Int64?>]`: Maximum number of load balancers a tenant subscription can provision.
- `[MaxNicsPerSubscription <Int64?>]`: Maximum number of NICs a tenant subscription can provision.
- `[MaxPublicIpsPerSubscription <Int64?>]`: Maximum number of public IP addresses a tenant subscription can provision.
- `[MaxSecurityGroupsPerSubscription <Int64?>]`: Maximum number of security groups a tenant subscription can provision.
- `[MaxVirtualNetworkGatewayConnectionsPerSubscription <Int64?>]`: Maximum number of virtual network gateway Connections a tenant subscription can provision.
- `[MaxVirtualNetworkGatewaysPerSubscription <Int64?>]`: Maximum number of virtual network gateways a tenant subscription can provision.
- `[MaxVnetsPerSubscription <Int64?>]`: Maximum number of virtual networks a tenant subscription can provision.
## RELATED LINKS

Просмотреть файл

@ -1,5 +1,5 @@
# Docs
This directory contains the documentation of the cmdlets for the `Azs.Network.Admin` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overriden on regeneration*. To update documentation examples, please use the `..\examples` folder.
This directory contains the documentation of the cmdlets for the `Azs.Network.Admin` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder.
## Info
- Modifiable: no
@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Azs.Network.Ad
- Packaged: yes
## Details
The process of documentation generation loads `Azs.Network.Admin` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder.
The process of documentation generation loads `Azs.Network.Admin` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder.

Просмотреть файл

@ -0,0 +1,67 @@
### Example 1: Default Get
```powershell
PS C:\> Get-AzSVirtualNetworkGatewayConnection | Format-List *
CapacityReserved : 400
ConnectionErrorDetailedInfo :
ConnectionErrorLastUpdatedTime :
ConnectionErrorStatus :
ConnectionStateActiveGateway : n22r1602-Gwy01
ConnectionStateStatus : Connected
Id : /subscriptions/dc5ecb41-8865-454a-995c-8a5bb6f322d2/resourceGroups/ExampleRG/providers/Microsoft.Network/connections/Tokyo-Hub-Conn
LocalNetworkGatewayIPAddress : 10.10.54.52
LocalNetworkGatewayName : TokyoLNG
Location :
Name : Tokyo-Hub-Conn
ProvisioningState : Succeeded
ResourceGroup : ExampleRG
Sku : HighPerformance
SubscriptionId : dc5ecb41-8865-454a-995c-8a5bb6f322d2
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
TotalStampCapacity : 4000
Type : Microsoft.Network.Admin/adminVirtualNetworkGatewayConnections
VirtualNetworkGatewayIPAddress : 100.74.96.130
VirtualNetworkGatewayName : HubVNG
```
Returns a list of all Virtual Network Gateway Connections on the stamp. To expand all properties, pipe the output into Format-List.
### Example 2: Use filters to Get specific connections
```powershell
PS C:\> Get-AzSVirtualNetworkGatewayConnection -Filter "Name eq 'Tokyo-Hub-Conn'" | Format-List *
CapacityReserved : 400
ConnectionErrorDetailedInfo : {Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20220201.VirtualNetworkGatewayConnectionConfigurationStateInfo}
ConnectionErrorLastUpdatedTime : 3/30/2022 4:32:29 PM
ConnectionErrorStatus : Failure
ConnectionStateActiveGateway : n22r1602-Gwy01
ConnectionStateStatus : Disconnected
Id : /subscriptions/dc5ecb41-8865-454a-995c-8a5bb6f322d2/resourceGroups/ExampleRG/providers/Microsoft.Network/connections/Tokyo-Hub-Conn
LocalNetworkGatewayIPAddress : 10.10.54.52
LocalNetworkGatewayName : TokyoLNG
Location :
Name : Tokyo-Hub-Conn
ProvisioningState : Succeeded
ResourceGroup : ExampleRG
Sku : HighPerformance
SubscriptionId : dc5ecb41-8865-454a-995c-8a5bb6f322d2
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
TotalStampCapacity : 4000
Type : Microsoft.Network.Admin/adminVirtualNetworkGatewayConnections
VirtualNetworkGatewayIPAddress : 100.74.96.130
VirtualNetworkGatewayName : HubVNG
```
Returns a list of all Virtual Network Gateway Connections that match the filter. To expand all properties, pipe the output into Format-List.
### Example 2: Get a specific property
```powershell
PS C:\> (Get-AzSVirtualNetworkGatewayConnection -Filter "Name eq 'Tokyo-Hub-Conn'").ConnectionErrorDetailedInfo | Format-List
Code : 13801
Message : IKE authentication credentials are unacceptable.
Source : Network Controller
```
Returns the specified property.

Просмотреть файл

@ -0,0 +1,58 @@
# How-To
This document describes how to develop for `Azs.Network.Admin`.
## Building `Azs.Network.Admin`
To build, run the `build-module.ps1` at the root of the module directory. This will generate the proxy script cmdlets that are the cmdlets being exported by this module. After the build completes, the proxy script cmdlets will be output to the `exports` folder. To read more about the proxy script cmdlets, look at the [README.md](exports/README.md) in the `exports` folder.
## Creating custom cmdlets
To add cmdlets that were not generated by the REST specification, use the `custom` folder. This folder allows you to add handwritten `.ps1` and `.cs` files. Currently, we support using `.ps1` scripts as new cmdlets or as additional low-level variants (via `ParameterSet`), and `.cs` files as low-level (variants) cmdlets that the exported script cmdlets call. We do not support exporting any `.cs` (dll) cmdlets directly. To read more about custom cmdlets, look at the [README.md](custom/README.md) in the `custom` folder.
## Generating documentation
To generate documentation, the process is now integrated into the `build-module.ps1` script. If you don't want to run this process as part of `build-module.ps1`, you can provide the `-NoDocs` switch. If you want to run documentation generation after the build process, you may still run the `generate-help.ps1` script. Overall, the process will look at the documentation comments in the generated and custom cmdlets and types, and create `.md` files into the `docs` folder. Additionally, this pulls in any examples from the `examples` folder and adds them to the generated help markdown documents. To read more about examples, look at the [README.md](examples/README.md) in the `examples` folder. To read more about documentation, look at the [README.md](docs/README.md) in the `docs` folder.
## Testing `Azs.Network.Admin`
To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [README.md](examples/README.md) in the `examples` folder.
## Packing `Azs.Network.Admin`
To pack `Azs.Network.Admin` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://docs.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team.
## Module Script Details
There are multiple scripts created for performing different actions for developing `Azs.Network.Admin`.
- `build-module.ps1`
- Builds the module DLL (`./bin/Azs.Network.Admin.private.dll`), creates the exported cmdlets and documentation, generates custom cmdlet test stubs and exported cmdlet example stubs, and updates `Azs.Network.Admin.psd1` with Azure profile information.
- **Parameters**: [`Switch` parameters]
- `-Run`: After building, creates an isolated PowerShell session and loads `Azs.Network.Admin`.
- `-Test`: After building, runs the `Pester` tests defined in the `test` folder.
- `-Docs`: After building, generates the Markdown documents for the modules into the `docs` folder.
- `-Pack`: After building, packages the module into a `.nupkg`.
- `-Code`: After building, opens a VSCode window with the module's directory and runs (see `-Run`) the module.
- `-Release`: Builds the module in `Release` configuration (as opposed to `Debug` configuration).
- `-NoDocs`: Supresses writing the documentation markdown files as part of the cmdlet exporting process.
- `-Debugger`: Used when attaching the debugger in Visual Studio to the PowerShell session, and running the build process without recompiling the DLL. This suppresses running the script as an isolated process.
- `run-module.ps1`
- Creates an isolated PowerShell session and loads `Azs.Network.Admin` into the session.
- Same as `-Run` in `build-module.ps1`.
- **Parameters**: [`Switch` parameters]
- `-Code`: Opens a VSCode window with the module's directory.
- Same as `-Code` in `build-module.ps1`.
- `generate-help.ps1`
- Generates the Markdown documents for the modules into the `docs` folder.
- Same as `-Docs` in `build-module.ps1`.
- `test-module.ps1`
- Runs the `Pester` tests defined in the `test` folder.
- Same as `-Test` in `build-module.ps1`.
- `pack-module.ps1`
- Packages the module into a `.nupkg` for distribution.
- Same as `-Pack` in `build-module.ps1`.
- `generate-help.ps1`
- Generates the Markdown documents for the modules into the `docs` folder.
- Same as `-Docs` in `build-module.ps1`.
- This process is now integrated into `build-module.ps1` automatically. To disable, use `-NoDocs` when running `build-module.ps1`.
- `export-surface.ps1`
- Generates Markdown documents for both the cmdlet surface and the model (class) surface of the module.
- These files are placed into the `resources` folder.
- Used for investigating the surface of your module. These are *not* documentation for distribution.
- `check-dependencies.ps1`
- Used in `run-module.ps1` and `test-module.ps1` to verify dependent modules are available to run those tasks.
- It will download local (within the module's directory structure) versions of those modules as needed.
- This script *does not* need to be ran by-hand.

Просмотреть файл

@ -0,0 +1,227 @@
MICROSOFT SOFTWARE LICENSE TERMS
MICROSOFT AZURE POWERSHELL
These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any.
BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE.
-----------------START OF LICENSE--------------------------
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
-------------------END OF LICENSE------------------------------------------
----------------START OF THIRD PARTY NOTICE--------------------------------
The software includes the AutoMapper library ("AutoMapper"). The MIT License set out below is provided for informational purposes only. It is not the license that governs any part of the software.
Provided for Informational Purposes Only
AutoMapper
The MIT License (MIT)
Copyright (c) 2010 Jimmy Bogard
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
***************
The software includes Newtonsoft.Json. The MIT License set out below is provided for informational purposes only. It is not the license that governs any part of the software.
Newtonsoft.Json
The MIT License (MIT)
Copyright (c) 2007 James Newton-King
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-------------END OF THIRD PARTY NOTICE----------------------------------------

Просмотреть файл

@ -16,6 +16,9 @@ This directory contains the PowerShell module for the NetworkAdmin service.
## Detail
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
## Module Requirements
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.2.3 or greater
## Authentication
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
@ -52,7 +55,7 @@ metadata:
### PSD1 metadata changes
subject-prefix: ''
module-version: 1.0.2
module-version: 1.1.0
service-name: NetworkAdmin
### File Renames

Просмотреть файл

@ -30,6 +30,9 @@ $global:TestQuotaMaxSecurityGroupsPerSubscription = 2
$global:PutAndDeleteQuotaName = "TestQuotaForRemoval"
$global:PutAndDeleteQuotaWithParamsName = "TestQuotaForRemovalWithParams"
$global:CreateAndUpdateQuotaName = "TestQuotaUpdate"
$global:PutNewQuotaName = "TestQuotaPutNew"
$global:SetQuotaName = "TestQuotaSet"
$global:DeleteQuotaName = "TestQuotaDelete"
$global:MaxNicsPerSubscription = 8
# Common functions

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1,16 +1,17 @@
{
"Get-AzsNetworkAdminOverview+[NoContext]+TestGetAdminOverview+$GET+https://management.azure.com/subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/providers/Microsoft.Network.Admin/adminOverview?api-version=2015-06-15+1": {
"Get-AzsNetworkAdminOverview+[NoContext]+TestGetAdminOverview+$GET+https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/adminOverview?api-version=2015-06-15+1": {
"Request": {
"Method": "GET",
"RequestUri": "https://management.azure.com/subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/providers/Microsoft.Network.Admin/adminOverview?api-version=2015-06-15",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/adminOverview?api-version=2015-06-15",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "4" ],
"x-ms-client-request-id": [ "4210b97e-0e05-4974-a834-446b16a49785" ],
"x-ms-unique-id": [ "2" ],
"x-ms-client-request-id": [ "6097d670-6909-4256-86ce-7f025aca1703" ],
"CommandName": [ "Get-AzsNetworkAdminOverview" ],
"FullCommandName": [ "Get-AzsNetworkAdminOverview_Get" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowerShell/Az4.0.0-preview" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
@ -19,24 +20,26 @@
"Response": {
"StatusCode": 200,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-correlation-request-id": [ "8bebaff7-698b-4770-8c2f-7dbea1c6fd64" ],
"x-ms-request-id": [ "b1b9a4b5-ec70-4779-8a7d-aea65992d311" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "14823" ],
"x-ms-routing-request-id": [ "REDMOND:20200207T231517Z:8bebaff7-698b-4770-8c2f-7dbea1c6fd64" ],
"x-ms-correlation-request-id": [ "6d2683e5-5550-41f6-be83-19b7e998d95e" ],
"x-ms-request-id": [ "328c3979-e202-41b9-98d6-447ebdea96a5" ],
"x-ms-arm-service-request-id": [ "0c4fe5df-16e8-42ff-97cd-fb82ece78664" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv8hNMgN3gF6rZVV0S9fCcIYbGOiCrm3SNAXrfS1pqR9vI9eI0pcMAIZyf3YVD2SIC150s1RLNIpGTULbLrlqqlfY6rJQNMVPMebQZlWyHLGrhyFyV64GZVaSJDfvSvFxcX4/Pb20MnXcqBFBs0zq1" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "14697" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232221Z:6d2683e5-5550-41f6-be83-19b7e998d95e" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Cache-Control": [ "no-cache" ],
"Date": [ "Fri, 07 Feb 2020 23:15:16 GMT" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvnCEdwfwP058QSgML7vGXI90e7vIODZiJTvdxwFLmS0rzue7Wl69CqgbGrkfpyvGXp2NYTSnTWP/TxGMkiudYFiQXCQPdSZMFScJg6jFBq9Stm0P9VgQdYaxbokz6fi542aqDwoK+2j+Uonxip6rN" ]
"Date": [ "Thu, 31 Mar 2022 23:22:20 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "1183" ],
"Content-Length": [ "1180" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\r\n \"name\": \"\",\r\n \"type\": \"Microsoft.Network.Admin/adminOverview\",\r\n \"location\": \"\",\r\n \"id\": \"/subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/providers/Microsoft.Network.Admin/adminOverview/\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"virtualNetworkHealth\": {\r\n \"totalResourceCount\": 22,\r\n \"healthyResourceCount\": 0,\r\n \"errorResourceCount\": 0,\r\n \"warningResourceCount\": 0,\r\n \"healthUnknownCount\": 22\r\n },\r\n \"loadBalancerMuxHealth\": {\r\n \"totalResourceCount\": 2,\r\n \"healthyResourceCount\": 2,\r\n \"errorResourceCount\": 0,\r\n \"warningResourceCount\": 0,\r\n \"healthUnknownCount\": 0\r\n },\r\n \"virtualGatewayHealth\": {\r\n \"totalResourceCount\": 3,\r\n \"healthyResourceCount\": 2,\r\n \"errorResourceCount\": 0,\r\n \"warningResourceCount\": 0,\r\n \"healthUnknownCount\": 1\r\n },\r\n \"publicIpAddressUsage\": {\r\n \"totalResourceCount\": 1023,\r\n \"inUseResourceCount\": 59\r\n },\r\n \"backendIpUsage\": {\r\n \"totalResourceCount\": 282,\r\n \"inUseResourceCount\": 23\r\n },\r\n \"macAddressUsage\": {\r\n \"totalResourceCount\": 4063232,\r\n \"inUseResourceCount\": 50\r\n }\r\n }\r\n}"
"Content": "{\r\n \"name\": \"\",\r\n \"type\": \"Microsoft.Network.Admin/adminOverview\",\r\n \"location\": \"\",\r\n \"id\": \"/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/adminOverview/\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"virtualNetworkHealth\": {\r\n \"totalResourceCount\": 10,\r\n \"healthyResourceCount\": 0,\r\n \"errorResourceCount\": 0,\r\n \"warningResourceCount\": 0,\r\n \"healthUnknownCount\": 10\r\n },\r\n \"loadBalancerMuxHealth\": {\r\n \"totalResourceCount\": 2,\r\n \"healthyResourceCount\": 0,\r\n \"errorResourceCount\": 0,\r\n \"warningResourceCount\": 0,\r\n \"healthUnknownCount\": 2\r\n },\r\n \"virtualGatewayHealth\": {\r\n \"totalResourceCount\": 3,\r\n \"healthyResourceCount\": 2,\r\n \"errorResourceCount\": 0,\r\n \"warningResourceCount\": 0,\r\n \"healthUnknownCount\": 1\r\n },\r\n \"publicIpAddressUsage\": {\r\n \"totalResourceCount\": 127,\r\n \"inUseResourceCount\": 71\r\n },\r\n \"backendIpUsage\": {\r\n \"totalResourceCount\": 282,\r\n \"inUseResourceCount\": 23\r\n },\r\n \"macAddressUsage\": {\r\n \"totalResourceCount\": 65536,\r\n \"inUseResourceCount\": 39\r\n }\r\n }\r\n}",
"isContentBase64": false
}
}
}

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,88 @@
{
"Get-AzsVirtualNetworkGatewayConnection+[NoContext]+TestGetAllVirtualNetworkGatewayConnections+$GET+https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/adminVirtualNetworkGatewayConnections?api-version=2022-02-01+1": {
"Request": {
"Method": "GET",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/adminVirtualNetworkGatewayConnections?api-version=2022-02-01",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "25" ],
"x-ms-client-request-id": [ "22a71fb0-f5ba-4760-9f54-615e7913e8cf" ],
"CommandName": [ "Get-AzSVirtualNetworkGatewayConnection" ],
"FullCommandName": [ "Get-AzsVirtualNetworkGatewayConnection_List" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 200,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-correlation-request-id": [ "c20b785d-29c6-467a-81f1-65bfbbc2bad8" ],
"x-ms-request-id": [ "6ea58fd9-3e43-4803-96cc-371a958e94c6" ],
"x-ms-arm-service-request-id": [ "df9802e6-2f4e-4511-9d26-a2195d52af0a" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvb2s5VMF1f1TY0HdAzqBneURsovkXEGvz+vizwvNoShiM4aCWfb5EQw4cjdJFuQLt2bEeoyEhyYhSKRxn/vnh9jX8tTUdvMs8nFBZ46cUMYG069NHyBa7wzoU+gXxRsyeOmZVonrBqIlQZ3YXkwOl" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "14805" ],
"x-ms-routing-request-id": [ "REDMOND:20220401T164805Z:c20b785d-29c6-467a-81f1-65bfbbc2bad8" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Fri, 01 Apr 2022 16:48:04 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "1810" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"conn1\",\r\n \"type\": \"Microsoft.Network.Admin/adminVirtualNetworkGatewayConnections\",\r\n \"location\": \"\",\r\n \"id\": \"/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/resourceGroups/VPNRG1/providers/Microsoft.Network/connections/conn1\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connectionState\": {\r\n \"status\": \"Connected\",\r\n \"activeGateway\": \"n22r1603-Gwy02\"\r\n },\r\n \"subscriptionId\": \"5b3555c5-5833-471a-87ea-3c3d9b7a63ba\",\r\n \"resourceGroup\": \"VPNRG1\",\r\n \"localNetworkGatewayIPAddress\": \"10.10.54.52\",\r\n \"localNetworkGatewayName\": \"LNG1\",\r\n \"virtualNetworkGatewayIPAddress\": \"100.74.97.2\",\r\n \"virtualNetworkGatewayName\": \"VNG\",\r\n \"sku\": \"HighPerformance\",\r\n \"capacityReserved\": 400,\r\n \"totalStampCapacity\": 4000\r\n }\r\n },\r\n {\r\n \"name\": \"Tokyo-Hub-Conn\",\r\n \"type\": \"Microsoft.Network.Admin/adminVirtualNetworkGatewayConnections\",\r\n \"location\": \"\",\r\n \"id\": \"/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/resourceGroups/VPNRG1/providers/Microsoft.Network/connections/Tokyo-Hub-Conn\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connectionState\": {\r\n \"status\": \"Connected\",\r\n \"activeGateway\": \"n22r1603-Gwy01\"\r\n },\r\n \"subscriptionId\": \"5b3555c5-5833-471a-87ea-3c3d9b7a63ba\",\r\n \"resourceGroup\": \"VPNRG1\",\r\n \"localNetworkGatewayIPAddress\": \"10.10.54.53\",\r\n \"localNetworkGatewayName\": \"LNG2\",\r\n \"virtualNetworkGatewayIPAddress\": \"100.74.97.2\",\r\n \"virtualNetworkGatewayName\": \"VNG\",\r\n \"sku\": \"HighPerformance\",\r\n \"capacityReserved\": 400,\r\n \"totalStampCapacity\": 4000\r\n }\r\n }\r\n ]\r\n}",
"isContentBase64": false
}
},
"Get-AzsVirtualNetworkGatewayConnection+[NoContext]+TestGetAllVirtualNetworkGatewayConnectionsOData+$GET+https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/adminVirtualNetworkGatewayConnections?api-version=2022-02-01\u0026$top=1+1": {
"Request": {
"Method": "GET",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/adminVirtualNetworkGatewayConnections?api-version=2022-02-01\u0026$top=1",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "26" ],
"x-ms-client-request-id": [ "5aa4e2ba-00f5-42e7-b43d-78284f8c78fa" ],
"CommandName": [ "Get-AzSVirtualNetworkGatewayConnection" ],
"FullCommandName": [ "Get-AzsVirtualNetworkGatewayConnection_List" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 200,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-correlation-request-id": [ "5185b442-22db-4f50-941b-f930e91946a9" ],
"x-ms-request-id": [ "041f1318-73ce-4ece-afe7-00e26783e6d2" ],
"x-ms-arm-service-request-id": [ "4e74490a-57d6-46bd-a447-96d1cb437786" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvvNbSmqUHxXhe1pdffe+lQC+8Rrs98a5n/UPdWyeYlhFtclS0mnrPlEzYFhqID5LALomWNRoNetNiBmQm9W89B+vagFyGR4t8HCj5nRr8nHxkldbxklUpsEsU03eSHXL8pbUdYul8G5WPOIsh7WEr" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "14804" ],
"x-ms-routing-request-id": [ "REDMOND:20220401T164805Z:5185b442-22db-4f50-941b-f930e91946a9" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Fri, 01 Apr 2022 16:48:04 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "907" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\r\n \"value\": [\r\n {\r\n \"name\": \"conn1\",\r\n \"type\": \"Microsoft.Network.Admin/adminVirtualNetworkGatewayConnections\",\r\n \"location\": \"\",\r\n \"id\": \"/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/resourceGroups/VPNRG1/providers/Microsoft.Network/connections/conn1\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connectionState\": {\r\n \"status\": \"Connected\",\r\n \"activeGateway\": \"n22r1603-Gwy02\"\r\n },\r\n \"subscriptionId\": \"5b3555c5-5833-471a-87ea-3c3d9b7a63ba\",\r\n \"resourceGroup\": \"VPNRG1\",\r\n \"localNetworkGatewayIPAddress\": \"10.10.54.52\",\r\n \"localNetworkGatewayName\": \"LNG1\",\r\n \"virtualNetworkGatewayIPAddress\": \"100.74.97.2\",\r\n \"virtualNetworkGatewayName\": \"VNG\",\r\n \"sku\": \"HighPerformance\",\r\n \"capacityReserved\": 400,\r\n \"totalStampCapacity\": 4000\r\n }\r\n }\r\n ]\r\n}",
"isContentBase64": false
}
}
}

Просмотреть файл

@ -0,0 +1,80 @@
$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1'
if (-Not (Test-Path -Path $loadEnvPath)) {
$loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1'
}
. ($loadEnvPath)
$TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzsVirtualNetworkGatewayConnection.Recording.json'
$currentPath = $PSScriptRoot
while(-not $mockingPath) {
$mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File
$currentPath = Split-Path -Path $currentPath -Parent
}
. ($mockingPath | Select-Object -First 1).FullName
Describe 'Get-AzsVirtualNetworkGatewayConnection' {
. $PSScriptRoot\Common.ps1
BeforeEach {
function ValidateConnectionState {
param(
$state
)
$state | Should Not Be $null
$state.ConnectionStateStatus | Should Not Be $null
$state.ProvisioningState | Should Not Be $null
$state.ConnectionStateActiveGateway | Should Not Be $null
if ($state.ConnectionStateStatus -eq "Disconnected")
{
$state.ConnectionErrorDetailedInfo | Should Not Be $null
$state.ConnectionErrorStatus | Should Not Be $null
$state.ConnectionErrorLastUpdatedTime | Should Not Be $null
}
}
function ValidateResourceInfo {
param(
$resource
)
$resource | Should Not Be $null
$resource.CapacityReserved | Should Not Be $null
$resource.Id | Should Not Be $null
$resource.LocalNetworkGatewayIPAddress | Should Not Be $null
$resource.LocalNetworkGatewayName | Should Not Be $null
$resource.VirtualNetworkGatewayIPAddress | Should Not Be $null
$resource.VirtualNetworkGatewayName | Should Not Be $null
$resource.Name | Should Not Be $null
$resource.ResourceGroup | Should Not Be $null
$resource.Sku | Should Not Be $null
$resource.SubscriptionId | Should Not Be $null
$resource.TotalStampCapacity | Should Not Be $null
}
}
AfterEach {
$global:Client = $null
}
It "TestGetAllVirtualNetworkGatewayConnections" -Skip:$('TestGetAllVirtualNetworkGatewayConnections' -in $global:SkippedTests) {
$global:TestName = "TestGetAllVirtualNetworkGatewayConnections"
$connections = Get-AzSVirtualNetworkGatewayConnection
foreach ($conn in $connections) {
ValidateResourceInfo $conn
ValidateConnectionState $conn
}
}
It "TestGetAllVirtualNetworkGatewayConnectionsOData" -Skip:$("TestGetAllVirtualNetworkGatewayConnectionsOData" -in $global:SkippedTests) {
$global:TestName = "TestGetAllVirtualNetworkGatewayConnectionsOData"
$connections = Get-AzSVirtualNetworkGatewayConnection -Top 1
foreach ($conn in $connections) {
ValidateResourceInfo $conn
ValidateConnectionState $conn
}
}
}

Просмотреть файл

@ -0,0 +1,213 @@
{
"New-AzsNetworkQuota+[NoContext]+TestPutNewQuota+$DELETE+https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaPutNew?api-version=2015-06-15+1": {
"Request": {
"Method": "DELETE",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaPutNew?api-version=2015-06-15",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "27" ],
"x-ms-client-request-id": [ "d8e9cb7c-54ca-4970-9a3f-76bac17fa9f8" ],
"CommandName": [ "Remove-AzsNetworkQuota" ],
"FullCommandName": [ "Remove-AzsNetworkQuota_Delete" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 204,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-correlation-request-id": [ "c3aaf00d-69a4-4883-8588-c9a64ab8a03e" ],
"x-ms-request-id": [ "6c0821f9-3aab-44e4-9d96-449d3b122659" ],
"x-ms-arm-service-request-id": [ "c83e1397-4e72-4325-9625-f72ae2b57198" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv7ftWG7HV4DtDRvPe1Px9TN35uLjF5hmPVFE4iVdYLW+DeS+xQoFbwBIlacf0RSymBRRsZwBXwetNb5nmoi7etMWznFkK9QeECg31m/f527/euJu3CJKoZijCBjHXfNcTZmPIpK6BQ3aMtPzVleVl" ],
"x-ms-ratelimit-remaining-subscription-deletes": [ "14961" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232257Z:c3aaf00d-69a4-4883-8588-c9a64ab8a03e" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:22:56 GMT" ]
},
"ContentHeaders": {
"Expires": [ "-1" ]
},
"Content": null,
"isContentBase64": false
}
},
"New-AzsNetworkQuota+[NoContext]+TestPutNewQuota+$PUT+https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaPutNew?api-version=2015-06-15+2": {
"Request": {
"Method": "PUT",
"RequestUri": "https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaPutNew?api-version=2015-06-15",
"Content": "{\r\n \"properties\": {\r\n \"maxPublicIpsPerSubscription\": 32,\r\n \"maxVnetsPerSubscription\": 32,\r\n \"maxVirtualNetworkGatewaysPerSubscription\": 16,\r\n \"maxVirtualNetworkGatewayConnectionsPerSubscription\": 32,\r\n \"maxLoadBalancersPerSubscription\": 32,\r\n \"maxNicsPerSubscription\": 4,\r\n \"maxSecurityGroupsPerSubscription\": 2\r\n }\r\n}",
"isContentBase64": false,
"Headers": {
},
"ContentHeaders": {
"Content-Type": [ "application/json" ],
"Content-Length": [ "341" ]
}
},
"Response": {
"StatusCode": 201,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-correlation-request-id": [ "16025572-160e-45b0-93a8-faec84ba5388" ],
"x-ms-request-id": [ "32979df8-2ed3-401c-a5b4-503557439a49" ],
"Azure-AsyncOperation": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/32979df8-2ed3-401c-a5b4-503557439a49?api-version=2015-06-15" ],
"x-ms-arm-service-request-id": [ "546fe050-8307-4131-914f-51d5567dcc84" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvdOhPM9CKH6FcQ14Pzua9FDqpJNagbktEFpClU8XYBmYMoiW1fzW3ipLCL7zezttg1/pELlNzWOshpbChegVgMh3EwmyJc+uaa/rQZcwetF0JDAWVSrGo646HtMNPfkbXtC3VtHLMS0XEKDVnp+eH" ],
"x-ms-ratelimit-remaining-subscription-writes": [ "1168" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232258Z:16025572-160e-45b0-93a8-faec84ba5388" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:22:58 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "716" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\r\n \"name\": \"redmond/TestQuotaPutNew\",\r\n \"etag\": \"W/\\\"b2d11501-81df-446e-90cb-b8ab243126cf\\\"\",\r\n \"type\": \"Microsoft.Network.Admin/quotas\",\r\n \"location\": \"redmond\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"maxPublicIpsPerSubscription\": 32,\r\n \"maxVnetsPerSubscription\": 32,\r\n \"maxVirtualNetworkGatewaysPerSubscription\": 16,\r\n \"maxVirtualNetworkGatewayConnectionsPerSubscription\": 32,\r\n \"maxLoadBalancersPerSubscription\": 32,\r\n \"maxNicsPerSubscription\": 4,\r\n \"maxSecurityGroupsPerSubscription\": 2,\r\n \"migrationPhase\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaPutNew\"\r\n}",
"isContentBase64": false
}
},
"New-AzsNetworkQuota+[NoContext]+TestPutNewQuota+$DELETE+https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaPutNew?api-version=2015-06-15+3": {
"Request": {
"Method": "DELETE",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaPutNew?api-version=2015-06-15",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "30" ],
"x-ms-client-request-id": [ "f6e04ccb-8dc9-46cf-818a-776851b0de4d" ],
"CommandName": [ "Remove-AzsNetworkQuota" ],
"FullCommandName": [ "Remove-AzsNetworkQuota_Delete" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 202,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"Location": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operationResults/fce3cfe0-a573-4cc9-a141-bade5695bebf?api-version=2015-06-15" ],
"Retry-After": [ "10" ],
"x-ms-correlation-request-id": [ "fef258f9-5565-4bb0-ab24-ff8fac0c8d56" ],
"x-ms-request-id": [ "fce3cfe0-a573-4cc9-a141-bade5695bebf" ],
"Azure-AsyncOperation": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/fce3cfe0-a573-4cc9-a141-bade5695bebf?api-version=2015-06-15" ],
"x-ms-arm-service-request-id": [ "96797731-893a-4468-a082-0775429097b3" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv9rpmP4UKntVLrTOQKu7O3njAlooZSX8XsnveXUn5l/yQB1zDD4zaqoDFpgMQKX/SD/CamwRpIobxUlkDooQa0IvIv4VWz9ij3P60EI2CXt+CuT4oXU4Ji3jk4+Djoy75o9fKnZlb33pAyz5k6dUL" ],
"x-ms-ratelimit-remaining-subscription-deletes": [ "14960" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232258Z:fef258f9-5565-4bb0-ab24-ff8fac0c8d56" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:22:58 GMT" ]
},
"ContentHeaders": {
"Expires": [ "-1" ],
"Content-Length": [ "0" ]
},
"Content": null,
"isContentBase64": false
}
},
"New-AzsNetworkQuota+[NoContext]+TestPutNewQuota+$GET+https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/fce3cfe0-a573-4cc9-a141-bade5695bebf?api-version=2015-06-15+4": {
"Request": {
"Method": "GET",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/fce3cfe0-a573-4cc9-a141-bade5695bebf?api-version=2015-06-15",
"Content": null,
"isContentBase64": false,
"Headers": {
"Authorization": [ "[Filtered]" ],
"x-ms-unique-id": [ "31" ],
"x-ms-client-request-id": [ "f6e04ccb-8dc9-46cf-818a-776851b0de4d" ],
"CommandName": [ "Remove-AzsNetworkQuota" ],
"FullCommandName": [ "Remove-AzsNetworkQuota_Delete" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 200,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-correlation-request-id": [ "c5651980-9762-46d2-90c7-c6f05b147981" ],
"x-ms-request-id": [ "9a299f51-e815-4e69-80ea-5a902d458618" ],
"x-ms-arm-service-request-id": [ "9e87943c-ee76-4a52-9bf0-7a8625b7a1ac" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvjc493dQyO8pXVkZA0aNAZEz6HR6w384Lej+M3ftKC808sP603xDPGOvNPYUOMGZvnCNIBJ6B2v9uW01qo1aelSzQnabeeTgiI0XoloFrhAdhOtUkfzfozHU6E415Q8KkkxyT4UtJhdPPx5hixEUi" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "14677" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232309Z:c5651980-9762-46d2-90c7-c6f05b147981" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:23:08 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "29" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\r\n \"status\": \"Succeeded\"\r\n}",
"isContentBase64": false
}
},
"New-AzsNetworkQuota+[NoContext]+TestPutNewQuota+$GET+https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operationResults/fce3cfe0-a573-4cc9-a141-bade5695bebf?api-version=2015-06-15+5": {
"Request": {
"Method": "GET",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operationResults/fce3cfe0-a573-4cc9-a141-bade5695bebf?api-version=2015-06-15",
"Content": null,
"isContentBase64": false,
"Headers": {
"Authorization": [ "[Filtered]" ],
"x-ms-unique-id": [ "32" ],
"x-ms-client-request-id": [ "f6e04ccb-8dc9-46cf-818a-776851b0de4d" ],
"CommandName": [ "Remove-AzsNetworkQuota" ],
"FullCommandName": [ "Remove-AzsNetworkQuota_Delete" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 204,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"Location": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operationResults/fce3cfe0-a573-4cc9-a141-bade5695bebf?api-version=2015-06-15" ],
"x-ms-correlation-request-id": [ "fef258f9-5565-4bb0-ab24-ff8fac0c8d56" ],
"x-ms-request-id": [ "fce3cfe0-a573-4cc9-a141-bade5695bebf" ],
"Azure-AsyncOperation": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/fce3cfe0-a573-4cc9-a141-bade5695bebf?api-version=2015-06-15" ],
"x-ms-arm-service-request-id": [ "96797731-893a-4468-a082-0775429097b3" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvIwJMBjC/DjurpwVpR/JSti6QAz+DcTanamJO1xg8Zsfr9O2Q1b/FAC9d4WoJRkIfa6KK6Fp4muAt5q8yxlppQ5q6V9x0jScYk9qagJIYBVFXAkfuWHDaoo9S8tFjzBtfqumcIdqoc2zHmQn/9aXj" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "14676" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232309Z:c99c1348-2c2f-4565-ba84-3b96b5ebfd65" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:23:08 GMT" ]
},
"ContentHeaders": {
"Expires": [ "-1" ]
},
"Content": null,
"isContentBase64": false
}
}
}

Просмотреть файл

@ -0,0 +1,58 @@
. (Join-Path $PSScriptRoot 'loadEnvJson.ps1')
$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzsNetworkQuota.Recording.json'
$currentPath = $PSScriptRoot
while(-not $mockingPath) {
$mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File
$currentPath = Split-Path -Path $currentPath -Parent
}
. ($mockingPath | Select-Object -First 1).FullName
Describe 'New-AzsNetworkQuota' {
. $PSScriptRoot\Common.ps1
BeforeEach {
function AssertQuotaWasCreated {
param(
$quota
)
$quota.MaxLoadBalancersPerSubscription -eq $global:TestQuotaMaxLoadBalancersPerSubscription | Should Be $true
$quota.MaxNicsPerSubscription -eq $global:TestQuotaMaxNicsPerSubscription | Should Be $true
$quota.MaxPublicIpsPerSubscription -eq $global:TestQuotaMaxPublicIpsPerSubscription | Should Be $true
$quota.MaxSecurityGroupsPerSubscription -eq $global:TestQuotaMaxSecurityGroupsPerSubscription | Should Be $true
$quota.MaxVirtualNetworkGatewayConnectionsPerSubscription -eq $global:TestQuotaMaxVirtualNetworkGatewayConnectionsPerSubscription | Should Be $true
$quota.MaxVirtualNetworkGatewaysPerSubscription -eq $global:TestQuotaMaxVirtualNetworkGatewaysPerSubscription | Should Be $true
$quota.MaxVnetsPerSubscription -eq $global:TestQuotaMaxVnetsPerSubscription | Should Be $true
}
}
AfterEach {
$global:Client = $null
}
It "TestPutNewQuota" -Skip:$('TestPutNewQuota' -in $global:SkippedTests) {
$global:TestName = 'TestPutNewQuota'
# Remove the quota if it exists
Remove-AzsNetworkQuota -Name $global:PutNewQuotaName
# Create a new quota
$quota = New-AzsNetworkQuota -Name $global:PutNewQuotaName `
-MaxPublicIpsPerSubscription $global:TestQuotaMaxPublicIpsPerSubscription `
-MaxVnetsPerSubscription $global:TestQuotaMaxVnetsPerSubscription `
-MaxVirtualNetworkGatewaysPerSubscription $global:TestQuotaMaxVirtualNetworkGatewaysPerSubscription `
-MaxVirtualNetworkGatewayConnectionsPerSubscription $global:TestQuotaMaxVirtualNetworkGatewayConnectionsPerSubscription `
-MaxLoadBalancersPerSubscription $global:TestQuotaMaxLoadBalancersPerSubscription `
-MaxNicsPerSubscription $global:TestQuotaMaxNicsPerSubscription `
-MaxSecurityGroupsPerSubscription $global:TestQuotaMaxSecurityGroupsPerSubscription
# Validate the quota
AssertQuotaWasCreated $quota
# Cleanup
Remove-AzsNetworkQuota -Name $global:PutNewQuotaName
}
}

Просмотреть файл

@ -0,0 +1,17 @@
# Test
This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets.
## Info
- Modifiable: yes
- Generated: partial
- Committed: yes
- Packaged: no
## Details
We allow three testing modes: *live*, *record*, and *playback*. These can be selected using the `-Live`, `-Record`, and `-Playback` switches respectively on the `test-module.ps1` script. This script will run through any `.Tests.ps1` scripts in the `test` folder. If you choose the *record* mode, it will create a `.Recording.json` file of the REST calls between the client and server. Then, when you choose *playback* mode, it will use the `.Recording.json` file to mock the communication between server and client. The *live* mode runs the same as the *record* mode; however, it doesn't create the `.Recording.json` file.
## Purpose
Custom cmdlets generally encompass additional functionality not described in the REST specification, or combines functionality generated from the REST spec. To validate this functionality continues to operate as intended, creating tests that can be ran and re-ran against custom cmdlets is part of the framework.
## Usage
To execute tests, run the `test-module.ps1`. To write tests, [this example](https://github.com/pester/Pester/blob/8b9cf4248315e44f1ac6673be149f7e0d7f10466/Examples/Planets/Get-Planet.Tests.ps1#L1) from the Pester repository is very useful for getting started.

Просмотреть файл

@ -0,0 +1,256 @@
{
"Remove-AzsNetworkQuota+[NoContext]+TestDeleteQuota+$DELETE+https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaDelete?api-version=2015-06-15+1": {
"Request": {
"Method": "DELETE",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaDelete?api-version=2015-06-15",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "33" ],
"x-ms-client-request-id": [ "307eca3b-853e-4c3a-91ef-fab227131f9d" ],
"CommandName": [ "Remove-AzsNetworkQuota" ],
"FullCommandName": [ "Remove-AzsNetworkQuota_Delete" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 204,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-correlation-request-id": [ "7abfc46e-2088-4102-8633-6c46b95c2037" ],
"x-ms-request-id": [ "d8418600-8113-47e3-92a5-b9756d86ae16" ],
"x-ms-arm-service-request-id": [ "48b5d050-7707-4fa8-9360-998643022f3e" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvwx9xxKYSioKIl183LEnPtfu/HLdf3wyNHnCF63M24LgLcvq/qBW1EDs/VfIw4zF3q4jwV+VG602+hvqJcGpdwG7AUtZBK+6sVY9G2ygyPIAfSOHHFi0wevjrRE0nBDoX9rA0LALqmcQl5eBZrPxf" ],
"x-ms-ratelimit-remaining-subscription-deletes": [ "14959" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232309Z:7abfc46e-2088-4102-8633-6c46b95c2037" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:23:08 GMT" ]
},
"ContentHeaders": {
"Expires": [ "-1" ]
},
"Content": null,
"isContentBase64": false
}
},
"Remove-AzsNetworkQuota+[NoContext]+TestDeleteQuota+$PUT+https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaDelete?api-version=2015-06-15+2": {
"Request": {
"Method": "PUT",
"RequestUri": "https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaDelete?api-version=2015-06-15",
"Content": "{\r\n \"properties\": {\r\n \"maxPublicIpsPerSubscription\": 50,\r\n \"maxVnetsPerSubscription\": 50,\r\n \"maxVirtualNetworkGatewaysPerSubscription\": 1,\r\n \"maxVirtualNetworkGatewayConnectionsPerSubscription\": 2,\r\n \"maxLoadBalancersPerSubscription\": 50,\r\n \"maxNicsPerSubscription\": 100,\r\n \"maxSecurityGroupsPerSubscription\": 50\r\n }\r\n}",
"isContentBase64": false,
"Headers": {
},
"ContentHeaders": {
"Content-Type": [ "application/json" ],
"Content-Length": [ "342" ]
}
},
"Response": {
"StatusCode": 201,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-correlation-request-id": [ "3af28f70-4b4e-4cff-95ca-9a3d6417ac22" ],
"x-ms-request-id": [ "f2682e1f-ba0a-4a1b-bbcd-6d691802cee4" ],
"Azure-AsyncOperation": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/f2682e1f-ba0a-4a1b-bbcd-6d691802cee4?api-version=2015-06-15" ],
"x-ms-arm-service-request-id": [ "32c8e5cc-61e9-4da1-8c1e-7132cbb0416e" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvajaAxC4avAbHdlBv/EhjwfrsWLXvSX3nwmSWBFpGknaTgW4eWSIAwi2ZzhMDHp1jM+kArR9ROahXdmXMeJ7UOTYVYuffwsrn/L5tjgjwjsWl3cL8yHM8fKgzycwXcf7qILzjShcF26osDPfQzWWi" ],
"x-ms-ratelimit-remaining-subscription-writes": [ "1167" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232311Z:3af28f70-4b4e-4cff-95ca-9a3d6417ac22" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:23:10 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "717" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\r\n \"name\": \"redmond/TestQuotaDelete\",\r\n \"etag\": \"W/\\\"8029fa84-ee2f-4460-bdc8-7efa3696b2f5\\\"\",\r\n \"type\": \"Microsoft.Network.Admin/quotas\",\r\n \"location\": \"redmond\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"maxPublicIpsPerSubscription\": 50,\r\n \"maxVnetsPerSubscription\": 50,\r\n \"maxVirtualNetworkGatewaysPerSubscription\": 1,\r\n \"maxVirtualNetworkGatewayConnectionsPerSubscription\": 2,\r\n \"maxLoadBalancersPerSubscription\": 50,\r\n \"maxNicsPerSubscription\": 100,\r\n \"maxSecurityGroupsPerSubscription\": 50,\r\n \"migrationPhase\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaDelete\"\r\n}",
"isContentBase64": false
}
},
"Remove-AzsNetworkQuota+[NoContext]+TestDeleteQuota+$DELETE+https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaDelete?api-version=2015-06-15+3": {
"Request": {
"Method": "DELETE",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaDelete?api-version=2015-06-15",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "36" ],
"x-ms-client-request-id": [ "a5e95eb9-577f-460c-94ae-43ed6f540969" ],
"CommandName": [ "Remove-AzsNetworkQuota" ],
"FullCommandName": [ "Remove-AzsNetworkQuota_Delete" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 202,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"Location": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operationResults/c51ebc8a-ebb6-419d-8b63-10c721a69c90?api-version=2015-06-15" ],
"Retry-After": [ "10" ],
"x-ms-correlation-request-id": [ "57522422-fd47-4980-8675-48b71573d819" ],
"x-ms-request-id": [ "c51ebc8a-ebb6-419d-8b63-10c721a69c90" ],
"Azure-AsyncOperation": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/c51ebc8a-ebb6-419d-8b63-10c721a69c90?api-version=2015-06-15" ],
"x-ms-arm-service-request-id": [ "9f4b3ee3-125e-4543-9b78-5a8f4a2b3abd" ],
"x-ms-ratelimit-remaining-subscription-deletes": [ "14958" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvwUzMiPtUffFqMh+voMTP3EGCIHoq5ZGv67ZQO7BFhsR2ka4AZ/ZxlbGLCoinutPXKgQrXRtwQ1X2I/iWB6DkhbYaqxOnhSxTvtBno5GNq9fotF9aB+aSXouyj2P5xJkgmRhbcWTC4hqMZMzUwCuq" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232311Z:57522422-fd47-4980-8675-48b71573d819" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:23:10 GMT" ]
},
"ContentHeaders": {
"Expires": [ "-1" ],
"Content-Length": [ "0" ]
},
"Content": null,
"isContentBase64": false
}
},
"Remove-AzsNetworkQuota+[NoContext]+TestDeleteQuota+$GET+https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/c51ebc8a-ebb6-419d-8b63-10c721a69c90?api-version=2015-06-15+4": {
"Request": {
"Method": "GET",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/c51ebc8a-ebb6-419d-8b63-10c721a69c90?api-version=2015-06-15",
"Content": null,
"isContentBase64": false,
"Headers": {
"Authorization": [ "[Filtered]" ],
"x-ms-unique-id": [ "37" ],
"x-ms-client-request-id": [ "a5e95eb9-577f-460c-94ae-43ed6f540969" ],
"CommandName": [ "Remove-AzsNetworkQuota" ],
"FullCommandName": [ "Remove-AzsNetworkQuota_Delete" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 200,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-correlation-request-id": [ "afe8e94e-fe5b-42fe-869f-e9bcf6b906ca" ],
"x-ms-request-id": [ "244910a0-6ee2-446a-b03a-1b879bc2c655" ],
"x-ms-arm-service-request-id": [ "fe90dc5a-fc96-4b00-be28-03e240010be2" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvs9RgcN2Ct9Y5yV337CHtKmkByUfmBvnMbeKJcbQqURKopstTg4LOO1FZpGTacd/biJFsV6O4CyThYBSHuZCVOzIBgU9W+KpeJbNgjxBW2zGiNj4MXIhXS6MSOJ1uy+LqYgxEYSlYWCkvn6ZRphoZ" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "14673" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232321Z:afe8e94e-fe5b-42fe-869f-e9bcf6b906ca" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:23:21 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "29" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\r\n \"status\": \"Succeeded\"\r\n}",
"isContentBase64": false
}
},
"Remove-AzsNetworkQuota+[NoContext]+TestDeleteQuota+$GET+https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operationResults/c51ebc8a-ebb6-419d-8b63-10c721a69c90?api-version=2015-06-15+5": {
"Request": {
"Method": "GET",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operationResults/c51ebc8a-ebb6-419d-8b63-10c721a69c90?api-version=2015-06-15",
"Content": null,
"isContentBase64": false,
"Headers": {
"Authorization": [ "[Filtered]" ],
"x-ms-unique-id": [ "38" ],
"x-ms-client-request-id": [ "a5e95eb9-577f-460c-94ae-43ed6f540969" ],
"CommandName": [ "Remove-AzsNetworkQuota" ],
"FullCommandName": [ "Remove-AzsNetworkQuota_Delete" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 204,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"Location": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operationResults/c51ebc8a-ebb6-419d-8b63-10c721a69c90?api-version=2015-06-15" ],
"x-ms-correlation-request-id": [ "57522422-fd47-4980-8675-48b71573d819" ],
"x-ms-request-id": [ "c51ebc8a-ebb6-419d-8b63-10c721a69c90" ],
"Azure-AsyncOperation": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/c51ebc8a-ebb6-419d-8b63-10c721a69c90?api-version=2015-06-15" ],
"x-ms-arm-service-request-id": [ "9f4b3ee3-125e-4543-9b78-5a8f4a2b3abd" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvEcH86lIRRjOdQfdffindup80QNI8+As4bNTbwkj+Vvig0fZ4LpRa76spoxqvQeGmG0Ghrgh6KQwWQqB9dc+qw1bIbBpbe2hg9muD4MvqcrHtfcPW8CIQj4mJSTfxKwkKDLgDVkidhzM/WkMLEgPE" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "14672" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232321Z:6af6138a-99bd-49c3-afc9-128e4487ea68" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:23:21 GMT" ]
},
"ContentHeaders": {
"Expires": [ "-1" ]
},
"Content": null,
"isContentBase64": false
}
},
"Remove-AzsNetworkQuota+[NoContext]+TestDeleteQuota+$GET+https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaDelete?api-version=2015-06-15+6": {
"Request": {
"Method": "GET",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaDelete?api-version=2015-06-15",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "39" ],
"x-ms-client-request-id": [ "56adb431-70d6-4fa4-9e2f-edc5c7baf152" ],
"CommandName": [ "Azs.Network.Admin.internal\\Get-AzsNetworkQuota" ],
"FullCommandName": [ "Get-AzsNetworkQuota_Get" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 404,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-request-id": [ "2c7bebc5-5dd7-4c75-b1c0-883d53e344c1" ],
"x-ms-correlation-request-id": [ "0c1fbdd4-1119-4e20-82b8-05d78385abaa" ],
"x-ms-arm-service-request-id": [ "815d9a02-a445-42fc-8bec-46b1fb9319fd" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvyKZ6ZD2KLiH70gJCoW7CbZ0zUnOxEjLehZGPGyGcE6skKGq7BIR/mUCK9wtsmceJYJHKZel7FR/GeQGQG3F7RpCWd1IQHGwLcNZ14H9DWrZe7enSJ8pTETUS7S+MoxcyPNcPf7bWxN6peC2M82ui" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "14670" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232322Z:0c1fbdd4-1119-4e20-82b8-05d78385abaa" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:23:22 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "231" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"Resource /subscriptions/17f638c8-a0e3-404b-92b8-04c749c03b58/resourceGroups//providers/Microsoft.Network.Admin/quotas/TestQuotaDelete not found.\",\r\n \"details\": []\r\n }\r\n}",
"isContentBase64": false
}
}
}

Просмотреть файл

@ -0,0 +1,39 @@
. (Join-Path $PSScriptRoot 'loadEnvJson.ps1')
$TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzsNetworkQuota.Recording.json'
$currentPath = $PSScriptRoot
while(-not $mockingPath) {
$mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File
$currentPath = Split-Path -Path $currentPath -Parent
}
. ($mockingPath | Select-Object -First 1).FullName
Describe 'Remove-AzsNetworkQuota' {
. $PSScriptRoot\Common.ps1
It "TestDeleteQuota" -Skip:$('TestDeleteQuota' -in $global:SkippedTests) {
$global:TestName = 'TestDeleteQuota'
# Remove the quota if it exists
Remove-AzsNetworkQuota -Name $global:DeleteQuotaName
# Create a new quota
$quota = New-AzsNetworkQuota -Name $global:DeleteQuotaName
# Assert that the quota was created
$quota | Should not be $null
# Delete the quota
Remove-AzsNetworkQuota -Name $global:DeleteQuotaName
try
{
Get-AzsNetworkQuota -Name $global:DeleteQuotaName
}
catch
{
# Assert that we got a not found exception
$_ -like "*$global:DeleteQuotaName not found.*" | Should be $true
}
}
}

Просмотреть файл

@ -0,0 +1,252 @@
{
"Set-AzsNetworkQuota+[NoContext]+TestSetQuota+$DELETE+https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaSet?api-version=2015-06-15+1": {
"Request": {
"Method": "DELETE",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaSet?api-version=2015-06-15",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "40" ],
"x-ms-client-request-id": [ "47076143-11f6-4ee0-be13-26c0488bce02" ],
"CommandName": [ "Remove-AzsNetworkQuota" ],
"FullCommandName": [ "Remove-AzsNetworkQuota_Delete" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 204,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-correlation-request-id": [ "13e69d06-27ac-412a-beba-d79ebd13129f" ],
"x-ms-request-id": [ "284f7fa2-36f8-43e4-9eac-7131e0f7d298" ],
"x-ms-arm-service-request-id": [ "a9c0cf32-0d1a-4000-9bf8-11505065410f" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv401vbF5ahwpk424PwQXYEPqvVvmmM8jMVZldeOc8/pb9MapB6YqZ2v6bVzeUWmVmaMNTA0iPRSXYH6ymRrXKFcytxW1vKWnC98kvEU5VSbm7X7/Q6DNeaMEyRgziaKIAAMvRgKQLFh5TAiRw6zuX" ],
"x-ms-ratelimit-remaining-subscription-deletes": [ "14957" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232323Z:13e69d06-27ac-412a-beba-d79ebd13129f" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:23:22 GMT" ]
},
"ContentHeaders": {
"Expires": [ "-1" ]
},
"Content": null,
"isContentBase64": false
}
},
"Set-AzsNetworkQuota+[NoContext]+TestSetQuota+$PUT+https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaSet?api-version=2015-06-15+2": {
"Request": {
"Method": "PUT",
"RequestUri": "https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaSet?api-version=2015-06-15",
"Content": "{\r\n \"properties\": {\r\n \"maxPublicIpsPerSubscription\": 50,\r\n \"maxVnetsPerSubscription\": 50,\r\n \"maxVirtualNetworkGatewaysPerSubscription\": 1,\r\n \"maxVirtualNetworkGatewayConnectionsPerSubscription\": 2,\r\n \"maxLoadBalancersPerSubscription\": 50,\r\n \"maxNicsPerSubscription\": 100,\r\n \"maxSecurityGroupsPerSubscription\": 50\r\n }\r\n}",
"isContentBase64": false,
"Headers": {
},
"ContentHeaders": {
"Content-Type": [ "application/json" ],
"Content-Length": [ "342" ]
}
},
"Response": {
"StatusCode": 201,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-correlation-request-id": [ "9fe56907-7e84-4bbe-9995-69d6e2985a0e" ],
"x-ms-request-id": [ "47d81eba-1185-4d59-add5-4042a4141925" ],
"Azure-AsyncOperation": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/47d81eba-1185-4d59-add5-4042a4141925?api-version=2015-06-15" ],
"x-ms-arm-service-request-id": [ "a5306022-96c0-4567-9242-aab0da68d380" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvHkncuOywGqye3rVSfD/r2lqP6mF3CvJrZ6FSL74lLxF3Io4P/um5xUtxP8yuOJi/hOXprJQ2PegDZfDEiVL45Ef/J1KNFuQPQc3nukzfB2AgE6/7vNWMcthfhpXRilvhav+yuFepSF+r3EalFE0j" ],
"x-ms-ratelimit-remaining-subscription-writes": [ "1166" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232324Z:9fe56907-7e84-4bbe-9995-69d6e2985a0e" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:23:24 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "711" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\r\n \"name\": \"redmond/TestQuotaSet\",\r\n \"etag\": \"W/\\\"65c0ffd1-cdf6-456b-a2f4-81e656fe805c\\\"\",\r\n \"type\": \"Microsoft.Network.Admin/quotas\",\r\n \"location\": \"redmond\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"maxPublicIpsPerSubscription\": 50,\r\n \"maxVnetsPerSubscription\": 50,\r\n \"maxVirtualNetworkGatewaysPerSubscription\": 1,\r\n \"maxVirtualNetworkGatewayConnectionsPerSubscription\": 2,\r\n \"maxLoadBalancersPerSubscription\": 50,\r\n \"maxNicsPerSubscription\": 100,\r\n \"maxSecurityGroupsPerSubscription\": 50,\r\n \"migrationPhase\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaSet\"\r\n}",
"isContentBase64": false
}
},
"Set-AzsNetworkQuota+[NoContext]+TestSetQuota+$PUT+https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaSet?api-version=2015-06-15+3": {
"Request": {
"Method": "PUT",
"RequestUri": "https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaSet?api-version=2015-06-15",
"Content": "{\r\n \"properties\": {\r\n \"maxPublicIpsPerSubscription\": 50,\r\n \"maxVnetsPerSubscription\": 64,\r\n \"maxVirtualNetworkGatewaysPerSubscription\": 1,\r\n \"maxVirtualNetworkGatewayConnectionsPerSubscription\": 2,\r\n \"maxLoadBalancersPerSubscription\": 50,\r\n \"maxNicsPerSubscription\": 100,\r\n \"maxSecurityGroupsPerSubscription\": 50\r\n }\r\n}",
"isContentBase64": false,
"Headers": {
},
"ContentHeaders": {
"Content-Type": [ "application/json" ],
"Content-Length": [ "342" ]
}
},
"Response": {
"StatusCode": 200,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-correlation-request-id": [ "9902c014-1c10-48c1-9cbf-699b54f9e0b1" ],
"x-ms-request-id": [ "e40f69f7-f195-4f22-9727-22beb3d44678" ],
"Azure-AsyncOperation": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/e40f69f7-f195-4f22-9727-22beb3d44678?api-version=2015-06-15" ],
"x-ms-arm-service-request-id": [ "d54de41d-3941-4327-a77d-bac318ea879a" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvK1ulkiG6yopX+ZD4O0nfAQmw3p1iSwQOGXUqF4bXkwtQ3GvO9hVJoVCQelWpHLt2D5DNKk5SdlLET5086xr42vBWdfA8VTn+itPFs+DbCfjwReAXgwWlas5sWyJub33Z4aCDIS93B5HrXiCeCzF2" ],
"x-ms-ratelimit-remaining-subscription-writes": [ "1165" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232325Z:9902c014-1c10-48c1-9cbf-699b54f9e0b1" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:23:24 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "711" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\r\n \"name\": \"redmond/TestQuotaSet\",\r\n \"etag\": \"W/\\\"084e2662-5d4b-4ed9-867e-d6db328e4a53\\\"\",\r\n \"type\": \"Microsoft.Network.Admin/quotas\",\r\n \"location\": \"redmond\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"maxPublicIpsPerSubscription\": 50,\r\n \"maxVnetsPerSubscription\": 64,\r\n \"maxVirtualNetworkGatewaysPerSubscription\": 1,\r\n \"maxVirtualNetworkGatewayConnectionsPerSubscription\": 2,\r\n \"maxLoadBalancersPerSubscription\": 50,\r\n \"maxNicsPerSubscription\": 100,\r\n \"maxSecurityGroupsPerSubscription\": 50,\r\n \"migrationPhase\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaSet\"\r\n}",
"isContentBase64": false
}
},
"Set-AzsNetworkQuota+[NoContext]+TestSetQuota+$DELETE+https://management.azure.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaSet?api-version=2015-06-15+4": {
"Request": {
"Method": "DELETE",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network.Admin/locations/redmond/quotas/TestQuotaSet?api-version=2015-06-15",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "44" ],
"x-ms-client-request-id": [ "16befa87-0687-428d-8a1c-360eaa578250" ],
"CommandName": [ "Remove-AzsNetworkQuota" ],
"FullCommandName": [ "Remove-AzsNetworkQuota_Delete" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 202,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"Location": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operationResults/4d066a84-4d6f-4180-9f1e-46eaac81f709?api-version=2015-06-15" ],
"Retry-After": [ "10" ],
"x-ms-correlation-request-id": [ "8a701a3a-ba4d-4cd0-9805-330b03108321" ],
"x-ms-request-id": [ "4d066a84-4d6f-4180-9f1e-46eaac81f709" ],
"Azure-AsyncOperation": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/4d066a84-4d6f-4180-9f1e-46eaac81f709?api-version=2015-06-15" ],
"x-ms-arm-service-request-id": [ "5e6f6c3c-83dc-45c6-9a66-e9d1b0be508c" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvurCXKDUvt/IMJtphlK5T1bPodH/Y4NS7EPpWFL0iJU+3CZSqV6jRTXdxhHXpg1CEWXdCvui+EtD5uqx1ZQi4aAHdI7nylqPucEDw7wOHiHIEAn3la/JSdMOgPA9XWOZ1SI4rcx1PRhHYZPn1AQrP" ],
"x-ms-ratelimit-remaining-subscription-deletes": [ "14956" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232325Z:8a701a3a-ba4d-4cd0-9805-330b03108321" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:23:24 GMT" ]
},
"ContentHeaders": {
"Expires": [ "-1" ],
"Content-Length": [ "0" ]
},
"Content": null,
"isContentBase64": false
}
},
"Set-AzsNetworkQuota+[NoContext]+TestSetQuota+$GET+https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/4d066a84-4d6f-4180-9f1e-46eaac81f709?api-version=2015-06-15+5": {
"Request": {
"Method": "GET",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/4d066a84-4d6f-4180-9f1e-46eaac81f709?api-version=2015-06-15",
"Content": null,
"isContentBase64": false,
"Headers": {
"Authorization": [ "[Filtered]" ],
"x-ms-unique-id": [ "45" ],
"x-ms-client-request-id": [ "16befa87-0687-428d-8a1c-360eaa578250" ],
"CommandName": [ "Remove-AzsNetworkQuota" ],
"FullCommandName": [ "Remove-AzsNetworkQuota_Delete" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 200,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-correlation-request-id": [ "93bba4a4-5caf-40bf-ba7f-a96fdc9f1219" ],
"x-ms-request-id": [ "21e9cd68-f165-47ef-8c89-77025f1cf560" ],
"x-ms-arm-service-request-id": [ "b2e80278-50e9-46a1-9164-524352fb8c0f" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvfZP1q9covttAWSAbW2473/YQ+97nRa3tNxZUzYyPRmVqBR35OrU3+6MkE7KQJuAq8PjfVw54tpapgCsSKaMm3VaM9gdagHkXDuG4JKIkh8A3jPDU0SUEGXuu5bDKChQPPLCL60KFQN2I7B5jdu54" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "14667" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232335Z:93bba4a4-5caf-40bf-ba7f-a96fdc9f1219" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:23:34 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "29" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\r\n \"status\": \"Succeeded\"\r\n}",
"isContentBase64": false
}
},
"Set-AzsNetworkQuota+[NoContext]+TestSetQuota+$GET+https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operationResults/4d066a84-4d6f-4180-9f1e-46eaac81f709?api-version=2015-06-15+6": {
"Request": {
"Method": "GET",
"RequestUri": "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operationResults/4d066a84-4d6f-4180-9f1e-46eaac81f709?api-version=2015-06-15",
"Content": null,
"isContentBase64": false,
"Headers": {
"Authorization": [ "[Filtered]" ],
"x-ms-unique-id": [ "46" ],
"x-ms-client-request-id": [ "16befa87-0687-428d-8a1c-360eaa578250" ],
"CommandName": [ "Remove-AzsNetworkQuota" ],
"FullCommandName": [ "Remove-AzsNetworkQuota_Delete" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/Az4.0.0-preview" ]
},
"ContentHeaders": {
}
},
"Response": {
"StatusCode": 204,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"Location": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operationResults/4d066a84-4d6f-4180-9f1e-46eaac81f709?api-version=2015-06-15" ],
"x-ms-correlation-request-id": [ "8a701a3a-ba4d-4cd0-9805-330b03108321" ],
"x-ms-request-id": [ "4d066a84-4d6f-4180-9f1e-46eaac81f709" ],
"Azure-AsyncOperation": [ "https://adminmanagement.redmond.ext-n22r1603.masd.stbtest.microsoft.com/subscriptions/5b3555c5-5833-471a-87ea-3c3d9b7a63ba/providers/Microsoft.Network/locations/westus/operations/4d066a84-4d6f-4180-9f1e-46eaac81f709?api-version=2015-06-15" ],
"x-ms-arm-service-request-id": [ "5e6f6c3c-83dc-45c6-9a66-e9d1b0be508c" ],
"Server": [ "Microsoft-HTTPAPI/2.0" ],
"WWW-Authenticate": [ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvV3lQzB25kuo6qGcdjfDPHbkekECmLh9c/xSSIwVygBsL2Kabe8rjmn3UbWkWtTJI788PuXDodRr3qFMddL3Fc6F9u3rI/H91BmZUYDR803B8ZXPRKExFz6aCVcNcUFEzcB8g8SjKrxcksna9KjyB" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "14666" ],
"x-ms-routing-request-id": [ "REDMOND:20220331T232335Z:3d0d2595-2ca7-4f8f-8f6f-ea4443f8c3a0" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 31 Mar 2022 23:23:34 GMT" ]
},
"ContentHeaders": {
"Expires": [ "-1" ]
},
"Content": null,
"isContentBase64": false
}
}
}

Просмотреть файл

@ -0,0 +1,43 @@
. (Join-Path $PSScriptRoot 'loadEnvJson.ps1')
$TestRecordingFile = Join-Path $PSScriptRoot 'Set-AzsNetworkQuota.Recording.json'
$currentPath = $PSScriptRoot
while(-not $mockingPath) {
$mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File
$currentPath = Split-Path -Path $currentPath -Parent
}
. ($mockingPath | Select-Object -First 1).FullName
Describe 'Set-AzsNetworkQuota' {
. $PSScriptRoot\Common.ps1
BeforeEach {
function AssertQuotaWasModified {
param(
$quota,
$newMaxVnetsPerSubscription
)
$quota.MaxVnetsPerSubscription -eq $newMaxVnetsPerSubscription | Should Be $true
}
}
It "TestSetQuota" -Skip:$('TestSetQuota' -in $global:SkippedTests) {
$global:TestName = 'TestSetQuota'
# Remove the quota if it exists
Remove-AzsNetworkQuota -Name $global:SetQuotaName
# Create a new quota
$quota = New-AzsNetworkQuota -Name $global:SetQuotaName
$quota.MaxVnetsPerSubscription = 64
$quota | Set-AzsNetworkQuota
# Validate that the quota was modified
AssertQuotaWasModified -Quota $quota -newMaxVnetsPerSubscription 64
# Cleanup
Remove-AzsNetworkQuota -Name $global:SetQuotaName
}
}

Просмотреть файл

@ -1,6 +1,5 @@
{
"Tenant": "01884692-6d96-44fa-8c58-11b4e90fef19",
"SubscriptionId": "3ff3b1de-e7f5-43ad-b057-ace4767e7d01",
"ResourceGroup": "system.redmond",
"Location": "redmond"
}
"SubscriptionId": "5b3555c5-5833-471a-87ea-3c3d9b7a63ba",
"Location": "redmond",
"Tenant": "0326abce-4677-40c1-b353-dd3e3affe3fc"
}

Просмотреть файл

@ -1,21 +1,12 @@
# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.3, generator: @autorest/powershell@3.0.475)
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# ----------------------------------------------------------------------------------
$envFile = 'env.json'
Write-Host "Loading env.json"
if ($TestMode -eq 'live') {
$envFile = 'localEnv.json'
}
if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) {
$envFilePath = Join-Path $PSScriptRoot $envFile
} else {
@ -24,5 +15,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) {
$env = @{}
if (Test-Path -Path $envFilePath) {
$env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json
$PSDefaultParameterValues = @{"*:SubscriptionId" = $env.SubscriptionId; "*:Tenant" = $env.Tenant; "*:Location" = $env.Location; "*:ResourceGroupName" = $env.ResourceGroup }
$PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant}
}

Просмотреть файл

@ -0,0 +1,5 @@
{
"Location": "redmond",
"SubscriptionId": "5b3555c5-5833-471a-87ea-3c3d9b7a63ba",
"Tenant": "0326abce-4677-40c1-b353-dd3e3affe3fc"
}

Просмотреть файл

@ -1,3 +1,8 @@
# Release 2.4.0
* Requires AzureStack Update 2301+
## AzS.Network.Admin module
* Get-AzsVirtualNetworkGatewayConnection - Added support for admin to view all VPN resources created on the stamp
# Release 2.3.0
* Requires AzureStack Update 2206+
## Azs.Compute.Admin module