CmdID / az / az network / az network express-route / az network express-route port / az network express-route port link
az network express-route port link update
Manage MACsec configuration of an ExpressRoute Link. Azure CLI reference
2 examples 8 options Its page in the Azure CLI reference
Examples
Enable MACsec on ExpressRoute Direct Ports once at a time.
az network express-route port link update --resource-group MyResourceGroup --port-name MyExpressRoutePort --name link1 --macsec-ckn-secret-identifier MacSecCKNSecretID --macsec-cak-secret-identifier MacSecCAKSecretID --macsec-cipher GcmAes128Identify--resource-groupName of resource group.--port-nameExpressRoute port name.--nameThe link name of the ExpressRoute Port.--macsec-ckn-secret-identifierThe connectivity key name (CKN) that stored in the KeyVault.--macsec-cak-secret-identifierThe connectivity association key (CAK) ID that stored in the KeyVault.--macsec-cipherCipher Method.Enable administrative state of an ExpressRoute Link.
az network express-route port link update --resource-group MyResourceGroup --port-name MyExpressRoutePort --name link2 --admin-state EnabledIdentify--resource-groupName of resource group.--port-nameExpressRoute port name.--nameThe link name of the ExpressRoute Port.--admin-stateEnable/Disable administrative state of an ExpressRoute Link.Options
--admin-stateEnable/Disable administrative state of an ExpressRoute Link.--idsResource ID.--macsec-cak-secret-identifierThe connectivity association key (CAK) ID that stored in the KeyVault.--macsec-cipherCipher Method.--macsec-ckn-secret-identifierThe connectivity key name (CKN) that stored in the KeyVault.--macsec-sci-stateSci mode.--name, -nThe link name of the ExpressRoute Port.--port-nameExpressRoute port name.