public override void ExecuteCmdlet() { ExecutionBlock(() => { try { ResourceIdentifier resourceIdentifier = new ResourceIdentifier(VaultId); string vaultName = resourceIdentifier.ResourceName; string resourceGroupName = resourceIdentifier.ResourceGroupName; string resourceGuardMappingName = "VaultProxy"; ResourceGuardProxyBaseResource param = new ResourceGuardProxyBaseResource(); param.Properties = new ResourceGuardProxyBase(); param.Properties.ResourceGuardResourceId = ResourceGuardId; ResourceGuardProxyBaseResource resourceGuardMapping = ServiceClientAdapter.CreateResourceGuardMapping(vaultName, resourceGroupName, resourceGuardMappingName, param, Token); WriteObject(resourceGuardMapping); } catch (Exception exception) { WriteExceptionError(exception); } }, ShouldProcess(VaultId, VerbsCommon.Set)); }