The Add-AzExpressRoutePortAuthorization cmdlet adds an authorization to an ExpressRoutePort.
The owner of an ExpressRoutePort can create these authorizations which generate an
authorization key that can be used by a ExpressRoute circuit owner to create the circuit on
the ExpressRoutePort (with a different owner). Only one circuit can be created with one
ExpressRoutePort authorization.Add-AzExpressRoutePortAuthorization
adds a new authorization to a ExpressRoutePort and, at the same time, generates the corresponding
authorization key. These keys can be viewed at any time by running the
Get-AzExpressRoutePortAuthorization cmdlet and, as needed, can then be copied and forwarded
to the appropriate circuit owner.
Name : ContosoPortAuthorization
Id : /subscriptions/62364504-2406-418e-971c-05822ff72fad/resourceGroups/ContosoResourceGroup/provid
ers/Microsoft.Network/expressRoutePorts/ContosoPort/authorizations/ContosoPortAuthorization
Etag : W/"36ccc199-c371-4d19-88cc-90d51bfe7ea9"
AuthorizationKey : 10d01cd7-0b67-4c44-88ca-51e7effa452d
AuthorizationUseStatus : Available
ProvisioningState : Succeeded
CircuitResourceUri :
The commands in this example add a new authorization to an existing ExpressRoutePort. The first
command uses Get-AzExpressRoutePort to create an object reference to a ExpressRoutePort named
ContosoPort. That object reference is stored in a variable named $ERPort.
In the second command, the Add-AzExpressRoutePortAuthorization cmdlet is used to add a
new authorization (ContosoPortAuthorization) to the ExpressRoutePort.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.